Time Series · Forecasting

Forecast Backtest (Rolling-Origin)

Rolling-origin (walk-forward) backtest: fits the chosen model on a training window, forecasts h steps ahead, rolls the window forward, and reports out-of-sample MAE/RMSE/MAPE/MASE per horizon again...

In the menus Time Series › Forecasting › Forecast Backtest (Rolling-Origin)

Also searched as backtest forecast accuracy rolling origin forecast evaluation mape

When to use it

You have a forecasting model (or are choosing between one) and want an honest, out-of-sample answer to 'how good are these forecasts really,' instead of trusting in-sample fit statistics like AIC or SSE.

When not to: The rows are not time-ordered (an ordinary regression or classification problem with exchangeable rows should use the cross-validation function's k-fold cross-validation instead), the series is too short to support even one full training window plus the forecast horizon, or you have not yet fit any candidate model and just want a first forecast (fit with ARIMA or exponential smoothing first, then come back here to validate it).

Step by step

  1. Open it from the menu

    Click Time Series in the menu bar; under Forecasting choose Forecast Backtest (Rolling-Origin).

  2. Fill in the form

    Choose the columns: Series over time, Dates or periods (optional). The form lists only columns whose type fits each field.

  3. Check the options

    The options start at their defaults: Model to backtest, Max horizon (h), Initial training window, Step, Window type, Seasonal period (m), ARIMA AR order (p), ARIMA differencing (d), ARIMA MA order (q). Change one only when your question needs it.

  4. Run the analysis

    Press Run analysis. The Result Card opens on its Results tab.

What to choose in the form

Fields of the Forecast Backtest (Rolling-Origin) form
Series over time Series requiredOne numeric column. The time-ordered numeric series to backtest
Dates or periods (optional) PeriodOne temporal or categorical or ordered categorical or numeric column. Optional date or period column (a date, 2023-01, Jan 2023, 2023Q1 or a year) that gives the series its calendar: used for the spacing check and the plot axis; it never changes the numbers.
Model to backtestThe forecasting method to evaluate out-of-sample Default: arima.
Max horizon (h)Score forecast accuracy at steps 1..h ahead of each fold Default: 4.
Initial training windowObservations in the first training window; 0 = auto (about half the series) Default: 0.
StepHow many observations to roll the origin forward each fold Default: 1.
Window typeexpanding = grow the training window each fold; sliding = fixed-size window that slides forward Default: expanding.
Seasonal period (m)Cycle length for the seasonal-naive baseline and seasonal/ARIMA-adjacent models Default: 12.
ARIMA AR order (p)Used only when model = ARIMA Default: 1.
ARIMA differencing (d)Used only when model = ARIMA Default: 1.
ARIMA MA order (q)Used only when model = ARIMA Default: 1.

How to read the card

The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.

What it assumes

Stationarity

If it does not hold: A structural break between the training folds and the test folds (a regime change, a level shift, a broken seasonal cycle) inflates the reported error for every method scored, baselines included, so a poor score does not automatically indict the candidate model alone.

How to check: Not checked by KernelStats: no structural-break or regime-change test runs before or during the backtest; only the resulting fold errors are reported, and a sudden jump in per-fold error across the series is the practical clue to look for.

A worked example

36 months of retail sales, backtested with ARIMA(1,1,1) using an expanding window, horizons 1 through 4, seasonal period 12.

Result: Averaged over the rolling folds, the ARIMA candidate scores MASE(1) = 0.81 and MASE(4) = 0.97, while the seasonal-naive baseline scores MASE(1) = 1.05 and MASE(4) = 0.93 over the identical folds.

On the same folds and scale, the illustrated ARIMA error is smaller than seasonal naive at horizon one (0.81 versus 1.05), while seasonal naive is smaller at horizon four (0.93 versus 0.97). These numbers alone say nothing about the unreported nonseasonal-naive error. A score below one is not itself a same-fold baseline comparison.

From the Statistics Library.

The code tabs

Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.

Understand the statistics

Ask Oobi

Type one of these into Ask Oobi beside your data:

  • Does my ARIMA model actually forecast next month's sales better than just assuming next month looks like this month?
  • Explain the forecast backtest (rolling-origin) in plain words.
  • What does misconception: a model's training-set accuracy is its real-world performance mean?

Last reviewed November 16, 2026.

Report an unclear step