MLCrack

    TIME SERIES & FORECASTING · INTERVIEW QUESTION

    A demand forecaster uses a monthly sales total that was finalized after the forecast date. Is that feature valid?

    🔴 advanced · point-in-time feature correctness

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

    Answer

    The finalized total contains unavailable information.

    Interview reasoning

    Reconstruct the published vintage at each origin, including reporting delays, and rerun the backtest.

    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 March total released April 5 cannot enter an April 1 forecast even though March has ended.

    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: What timestamps belong in a point-in-time feature join?