Forecast evaluation measures how well a model predicts observations it would have had to forecast in practice. A retailer ordering inventory, for example, may care about accuracy one week and four weeks ahead. A single holdout covers only one stretch of the series. Rolling origins let us repeat the comparison across different periods.
2 Definition and Properties
A forecast origin\(t\) is the last time at which an observation is available. A forecast \(\hat y_{t+h\mid t}\) predicts \(y_{t+h}\) at horizon\(h\). In rolling-origin evaluation, advance the origin through the series and repeat the training and forecasting procedure. At each origin, use only data or features that would have been available then.
Think of replaying the forecasting job as it happened. Fit the model with the data available at the end of January, make its forecasts, and score them once the actual values are known. Then repeat from the end of February. Compare models from the same origins and at the same horizons.
2.1 Windows, baselines, and metrics
An expanding window keeps all observations through the current origin. A sliding window keeps only a fixed number of recent observations. Treat preprocessing and parameter updates as part of the workflow. For example, estimate any scaling constants using the current training window.
A naïve forecast uses the latest observed value at every horizon. A seasonal naïve forecast uses the latest observed value from the matching season. Compare forecasts with a baseline appropriate to the series.
Let \(\mathcal T_h\) be the set of origins at which the actual value for horizon \(h\) is available. The mean absolute error (MAE) at that horizon is
Report errors by horizon. If you choose model settings using these scores, reserve a later period for a final evaluation. Overlapping forecast windows can also produce dependent errors, which matters when quantifying uncertainty about score differences.
3 Python Application
Simulate an AR(1) series and compare it with the naïve baseline at horizons 1 through 6. Start with 100 observations and refit the AR(1) every four observations. Use only origins for which all six targets are available so the horizons share the same evaluation period.
The result measures accuracy for this simulation, model, refitting schedule, and set of origins. Change the data-generating process or the refitting schedule and the comparison can change.