How to validate a time series forecasting model with rolling-origin (walk-forward) cross-validation

Quick Overview

Asks how to validate a time series forecasting model correctly and how rolling-origin (walk-forward) cross-validation works. Tests understanding of time-ordered splits, expanding and sliding windows, leakage inside folds, error by forecast horizon, and baseline comparisons.

How to validate a time series forecasting model with rolling-origin (walk-forward) cross-validation

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

How should you properly validate a time series forecasting model, and what is rolling-origin (walk-forward) cross-validation? ```hint What the model knows For each forecast, ask what information the model would actually have had at the moment the forecast was made. ``` ```hint One split is one draw Think about how many test periods a single train/test split gives you, and how the training window should move to get more of them. ``` ### What a Strong Answer Covers - Why shuffled K-fold cross-validation gives misleading results on time series. - The rolling-origin procedure: forecast origin, horizon, refitting, and how errors are aggregated. - Expanding versus sliding training windows and when each fits. - Leakage controls inside each fold: preprocessing, features available at forecast time, and gaps for reporting delays. - How to report results: errors by horizon, comparison with simple baselines, and a final untouched holdout period. ### Follow-up Questions - How would you set up validation if new data arrives with a two-day reporting delay? - How do you tune hyperparameters without overfitting to the walk-forward folds? - Which error metric would you use for a series with many zero values, and what goes wrong with MAPE there? - How would you validate a single model trained across thousands of related series?

Overview: Asks how to validate a time series forecasting model correctly and how rolling-origin (walk-forward) cross-validation works. Tests understanding of time-ordered splits, expanding and sliding windows, leakage inside folds, error by forecast horizon, and baseline comparisons.

PracHub logo
General
Nov 24, 2026
mediumData ScientistOtherStatistics & Math
0
0

How should you properly validate a time series forecasting model, and what is rolling-origin (walk-forward) cross-validation?

What a Strong Answer Covers Guidance

  • Why shuffled K-fold cross-validation gives misleading results on time series.
  • The rolling-origin procedure: forecast origin, horizon, refitting, and how errors are aggregated.
  • Expanding versus sliding training windows and when each fits.
  • Leakage controls inside each fold: preprocessing, features available at forecast time, and gaps for reporting delays.
  • How to report results: errors by horizon, comparison with simple baselines, and a final untouched holdout period.

Follow-up Questions Guidance

  • How would you set up validation if new data arrives with a two-day reporting delay?
  • How do you tune hyperparameters without overfitting to the walk-forward folds?
  • Which error metric would you use for a series with many zero values, and what goes wrong with MAPE there?
  • How would you validate a single model trained across thousands of related series?