← Zurück zur Akademie
A librarian traces the earlier section of a folded time-series chart while a learner positions a clear window before its dotted forecast.
KI-WissenKern28. Nov. 2026· 3 Min.

Forecast Evaluation With Time-Ordered Splits

Walk-forward evaluation trains on past weeks only and tests on the weeks that follow, mirroring real forecasting. A baseline and honest predictor availability keep the comparison fair.

walk-forward validationtime series forecastingbaseline comparison

Quellen

Vollständige Zusammenfassung

A library counts visitors every week. Suppose the director wants a forecast for week 41 using the 40 weekly counts already recorded. A random shuffle would scatter future weeks into the training set, so the model could learn from data it would never have had at decision time. Walk-forward evaluation avoids this. Train on weeks 1 to 20 and forecast week 21, then train on weeks 1 to 21 and forecast week 22, and continue to the end. Each training window expands and always ends before the week being predicted.

Predictor availability matters as much as the split. Imagine the model uses the number of events advertised that week. If the events calendar is published two weeks ahead, a forecast made for week 30 can use the calendar for weeks 30 and 31 but not the attendance figure from week 30 itself, which arrives after the forecast is issued. Write down the publication date of each predictor and compare it with the forecast date. A predictor that fails this check belongs in the model only if you can obtain it earlier in practice.

A gap parameter creates a buffer. If visitor counts are reported with a one-week delay, you might leave a one-week gap between training data and the test week so the model never sees a value that was unavailable when the forecast was issued. For a two-week gap with test week 30, training ends at week 27, leaving weeks 28 and 29 excluded. If training ends at week 28 and test week 30, only week 29 lies between them. The gap costs data, so keep it as small as the reporting delay allows and state the delay you assumed.

One-step and multi-step forecasts differ. A one-step forecast predicts week 21 from weeks 1 to 20. A three-step forecast predicts weeks 21, 22 and 23 from the same window, and the later predictions rest on weaker information. Across folds, one-step errors and three-step errors should be reported separately because they answer different questions. Averaging them hides which horizon is hard, and a model that is strong at one step may lose its advantage at three.

Include a baseline. A simple baseline predicts next week equals this week, or equals the average of the last four weeks. If a model cannot beat that baseline on the same walk-forward folds, its extra complexity has not earned its place. Walk-forward evaluation assumes the future resembles the past. If a holiday week falls in the test period, error may rise for reasons no split can fix, and you should say so rather than tune the split until numbers look tidy.

For a classroom task, give students 12 weekly counts on cards and ask pairs to build three folds by hand. They write the training weeks and test week on a grid, then mark which predictors were truly available on the forecast date. Each pair presents one fold and explains a choice. The visible grid makes their reasoning inspectable, and a quick vote on whether the baseline or the model wins prompts useful argument.