Skip to content

How do you evaluate a forecasting model across different horizons?

A model that predicts tomorrow well can lose a week ahead. Separate forecast horizons before pooling errors or choosing a model.

Evaluate a forecasting model separately at each required lead time, using only information available when each forecast would have been issued. Compare candidates on the same forecast origins and target dates, then combine errors with weights chosen for the actual decision. A low average error dominated by tomorrow’s predictions does not establish that a model is useful a week ahead.

For researchers running model comparisons on Nodus, the useful output is a report that preserves those distinctions, not just a completed computation. Nodus can run your evaluation command as a Job and collect its report. You still define what counts as a valid historical forecast and which errors matter.

Define the forecast before choosing the metric

Section titled “Define the forecast before choosing the metric”

A forecast needs an issue time, a target and a horizon. The issue time is when the prediction becomes available. The target is what will be observed. The horizon is how far ahead that target lies.

Predicting demand for tomorrow and predicting demand for the seventh day ahead are different tasks, even when both predictions come from the same model. Predicting the total over the next week is different again. Daily errors can cancel in a weekly total, while a good weekly total can conceal the wrong daily allocation.

Write down the decision first. Replenishing stock for tomorrow may depend mostly on the shortest horizon. Booking transport in advance may require an accurate later forecast. If both decisions matter, report both rather than choosing whichever summary makes a candidate look strongest.

Also fix when the forecast must arrive. A prediction produced after the ordering cutoff is not usable for that order, regardless of its eventual accuracy. Track late or missing forecasts separately; do not quietly remove them from the comparison.

Recreate the information available at each issue time

Section titled “Recreate the information available at each issue time”

Historical evaluation should resemble issuing forecasts in the past. Move the issue time forward through a sequence of historical dates. At each point, allow only information that would have been available then, and score the future targets once their outcomes are known.

This is commonly called evaluation with a rolling forecasting origin. Forecasting: Principles and Practice explains the approach and why evaluation should include multi-step errors when those are the forecasts people need.

An observation’s date is not always its availability date. A sales total may arrive late, a measurement may be revised, and a planned promotion may change after the forecast was issued. Using the final corrected history throughout can give the model information the original decision maker did not have.

Future information is not automatically forbidden. A calendar date is known in advance. An announced promotion may be known too. The test is whether that exact information was available at the issue time, not whether its subject concerns the future.

Keep this distinction consistent across candidates. If historical information snapshots are unavailable, state the limitation. A backtest using revised data answers a narrower question than a faithful replay of past decisions.

Create a matched comparison: for each lead time, compare the candidates on the same series, issue times and targets. Otherwise, a model evaluated mainly during quiet periods can appear better than one evaluated through a demand spike.

Later horizons need more future observations before they can be scored. Near the end of the historical record, tomorrow’s outcome may be known while the seventh day’s outcome is not. Report the number of eligible and scored forecasts for each horizon. An unavailable future outcome is not a zero error.

For a clean horizon comparison, use origins with outcomes available for all required horizons. You can also show a separate, more recent short-horizon result, clearly labeled as a different period. Do not imply that changes between those results isolate the effect of lead time.

Choose retraining frequency and history length before examining final results. They are part of the candidate being tested. Selecting those settings on a development period is reasonable; repeatedly adjusting them against the final period turns that period into development data.

Worked example: the pooled winner can lose at the required horizon

Section titled “Worked example: the pooled winner can lose at the required horizon”

The following numbers are fictional and illustrative, not Nodus measurements or customer results. Assume matched forecasts for the same demand series within each horizon, measured in units of demand. Lower mean absolute error, or MAE, is better.

Forecast target Scored forecasts Model A MAE Model B MAE
Next day 900 5 8
Seventh day ahead 100 20 12

Pooling every scored forecast gives Model A an MAE of 6.5: 900 times 5 plus 100 times 20, divided by 1,000. Model B’s pooled MAE is 8.4. On that summary, A wins.

But the seventh-day comparison favors B: its MAE is 12 rather than 20. If the buying decision requires a forecast seven days ahead, the pooled winner answers the wrong question.

Giving the two horizon means equal weight changes the summary to 12.5 for A and 10 for B. That does not make equal weighting universally correct. It shows that an aggregation rule expresses a priority. Choose weights because they reflect decision value or an agreed evaluation objective, not because they produce the preferred winner.

Keep the horizon table next to any combined score. It makes the tradeoff visible even when a single ranking is necessary.

Separate error size, direction and business consequence

Section titled “Separate error size, direction and business consequence”

MAE describes the typical absolute miss in the target’s units. Signed error adds a different question: does the model systematically predict too much or too little? State the sign convention so readers know which direction a positive value represents.

Neither statistic alone captures every operational consequence. Underpredicting during a peak may be more costly than overpredicting during a quiet period. If the decision has asymmetric costs, define that loss before comparing candidates and show the ordinary error measures alongside it.

Across many series, a pooled error in raw units can be dominated by the largest series. An equal-series summary answers a different question. Report the aggregation choice and relevant series groups, especially when the intended decision applies to smaller series too.

Include a simple baseline, such as repeating the latest available observation or the corresponding observation from the previous seasonal cycle. Give it the same information cutoff and score it on the same cases. A more elaborate model should justify itself against the alternative the decision maker could actually use.

What should the evaluation report contain?

Section titled “What should the evaluation report contain?”

Save the issue period, information-availability assumptions, target definition, required horizons and retraining policy. Include per-horizon errors, forecast counts, missing or late predictions, baseline comparisons and the weights behind any combined score.

Keep results by time period as well. Neighboring forecasts can share much of their history and may predict some of the same future dates. A large count of overlapping forecasts is not the same as equally many independent tests. Show whether a claimed improvement persists across meaningful periods rather than attaching unwarranted certainty to a pooled average.

For running the comparison, the public Nodus Jobs guide describes submitting your command and following its progress. The outputs guide describes downloading files collected when a Job succeeds. Those capabilities support executing your evaluator and retrieving its report; they are not a managed forecasting evaluator or an accuracy guarantee. Output availability also follows the documented Job-retention rules.

If you need compute for a forecasting comparison, talk to Nodus about the execution requirements and the report you need to produce.

Is a random train-test split suitable for forecasting?

Section titled “Is a random train-test split suitable for forecasting?”

Not when it lets a prediction use observations that occur after its issue time. Evaluate forward from historical issue times with the information available then. A random split designed for a different prediction task does not establish forecasting performance.

Should every horizon receive equal weight?

Section titled “Should every horizon receive equal weight?”

Only if that matches the evaluation objective. A decision that requires the seventh-day forecast may put its acceptance requirement there. Multiple operational decisions may warrant separate acceptance criteria instead of one weighted winner.

Can I compare models using different historical periods?

Section titled “Can I compare models using different historical periods?”

You can describe their results, but cannot cleanly attribute the difference to the models. Use matched origins and targets for the main comparison, and label additional periods separately.

Does a better backtest guarantee better future forecasts?

Section titled “Does a better backtest guarantee better future forecasts?”

No. Historical evaluation tests performance under recorded conditions and stated assumptions. Changing demand, revised inputs or a different operating policy can change the result. Monitor the same required horizons after adoption.

More from the blog