MLCrack

    TIME SERIES & FORECASTING Β· INTERVIEW QUESTION

    What timestamps belong in a point-in-time feature join?

    🟑 intermediate · point-in-time feature correctness

    Hint: Every feature must be reconstructed using only information available at the forecast origin.

    Answer

    Distinguish event time, ingestion or availability time, forecast origin, and version time.

    Interview reasoning

    A past event received late may still have been unavailable to the historical predictor.

    Every feature must be reconstructed using only information available at the forecast origin.

    A forecasting row has both a target time and a forecast origin. Availability, rather than event time alone, determines which values belong in the feature vector. Construct historical vintages including publication delays; fit preprocessing inside the origin's training window.

    Worked example. A reading measured at 09:00 but delivered at 09:12 is unavailable for a 09:05 forecast.

    Validation

    Use rolling-origin backtests and point-in-time joins.

    Assert availability_time <= origin for contributing records as well as final aggregates. Compare vintage-aware scores with finalized-data scores.

    Common pitfalls

    Revised values and future aggregates leak information into training.

    Shifting a column one row does not repair publication delays, revised history, or cross-series aggregates built from future observations.

    Likely follow-up: Why can a centered rolling average leak information into a forecast?