Forecast accuracy, shown honestly

Walk-forward over 159 weeks against the previous-week carry-forward. For animals per week, 20.6 instead of 28.2 percent error, so 27 percent less. On the weekly total the simple carry-forward is marginally better, and that is stated here, not in a footnote.

Role
Modelling, measurement and presentation
Period
since 07/2025
Setting
Demand forecast of the platform from project A
weeks of walk-forward, all out of sample
159
How measured

Number of weeks tested. For every week the model learns only from data before it and is measured on exactly that week.

error at the decision level, instead of 28.2 % for carry-forward
20.6 %
How measured

Weighted mean absolute percentage error (WMAPE) at the animals-per-week level over the 159 weeks, computed the same way for model and carry-forward.

less error than the previous-week carry-forward
27 %
How measured

Relative difference of the two WMAPE values at the animals-per-week level: 20.6 instead of 28.2 percent.

Forecast error (WMAPE), lower is better
Animals per week (decision level)ModelModel: 20.6 %20.6 %Previous-week carry-forwardPrevious-week carry-forward: 28.2 %28.2 %

Walk-forward over 159 weeks out of sample, 27 % less error. On the weekly total the carry-forward is marginally better.

How the walk-forward runs
A strip of weeks. The model learns from the weeks before the test week and is tested on exactly that week. Then everything moves on by one week.Time→■ Training■ Test week■ not yet known

Every week the model learns only from weeks before and is tested on exactly one week it has never seen. Then the window moves on. Over 159 weeks that gives 159 tests, none of them with knowledge from the future.

Starting point

A forecast becomes an argument only once it is measured against something. The platform from project A computes demand forecasts. The decision at stake is the number of animals per week. The business side asked a simple question: is the model better than what we do today? Today meant carrying the previous week forward. That carry-forward is the yardstick. It is cheap, everyone understands it, and it is harder to beat than it sounds.

I wanted an answer that holds up in front of a technical interviewer and that a managing director can read without translation. That means the same measure for model and yardstick, a period long enough to matter, and a result that also shows the uncomfortable level.

Decision

Three things were fixed before a single number was computed.

First: walk-forward instead of a single split into training and test. For every week, the model learns only from data available before that week and is then applied to exactly that week. 159 weeks in sequence, all out of sample. The test looks like production.

Second: the previous-week carry-forward as the yardstick, not a second model. If the model does not beat the carry-forward, it has no value, however elegant it is.

Third: one error measure for all levels. I use the weighted mean absolute percentage error, WMAPE for short. Large quantities weigh more than small ones, and lower is better. The decision level, animals per week, matters most. The weekly total shows whether the model adds anything at large.

Implementation

The model learns from sales history and is refitted every week. The carry-forward needs no training. It takes the previous week as the forecast. Both get the same 159 weeks and the same evaluation.

Alongside, I built a gate: a classifier meant to decide up front whether any demand is to be expected for a customer and article at all. I measured it in six variants. None was better than the simple heuristic that had done this job before. So it is out. A discarded component that was measured is worth more to me than a built-in one that merely sounds plausible.

Three more ideas I tested the same way and discarded or reverted.

Weather: the assumption was that barbecue weather drives demand. Against a calendar baseline of weekday, calendar week and year, no signal of its own remains from the weather. What looked like a weather effect was seasonality, and that is already in the model. Result: no weather interface. Holidays do matter, but they are calendar-determined and need no external source.

One shared model across all sites: sounds like more data and a better forecast. In the walk-forward it was worse than the single-site model at every site and every horizon. I reverted it and retrained the single-site models.

Article level for the animal decision: a model on the finest level, rolled up to animals, was no better than a model directly on the decision level, and it had one more error-prone mapping step. The article level stays where it is needed, in sales. For the animals, I forecast on the level where the decision is made.

In September I extended the evaluation by the question of what an error costs. The usual error value measures kilograms. But the decision is made in animals, and there the direction is expensive: too few means buying in at the day’s price. The new measurement counts, per week, whether the animal number misses by more than an operationally justified threshold, separately by direction. The threshold is one slaughter day, for cattle 17.5 percent of the weekly volume. Over 160 test weeks this measurement ranks the models differently from the error value. Two approaches are almost level on the error value, at 70.3 and 67.3 percent. In the expensive direction one lands in 48.8 percent of the weeks, the other in 31.2 percent. To be honest: computed in euros, the models rank largely as with the old value. The gain lies in the direction, not the size.

The forecast delivers a range, not just one value. Until now the proposal was always the middle. That is not a neutral choice. The middle is only right if too little and too much cost the same, and for fresh and frozen goods that is not the case, in opposite directions. Now it can be set per species how surely the quantity should suffice. Without a setting it stays at the middle. The range ends at 10 and 90 percent, because the forecast has measured nothing beyond. Anyone who types more gets a rejection instead of a silent cut.

The order proposal for animals starts switched off. A proposal should only be pre-filled once its hit rate is measured. It is now measured at 84.4 percent over 320 observations. The automation is still not switched on. The best method underestimates by 10 percent on average, the almost unbiased one hits less often. That is a business trade-off, not a calculation, and it belongs to the business side.

Result and measurement

Level Model Previous-week carry-forward
Animals per week (decision level) 20.6 % 28.2 %
Weekly total marginally worse marginally better

At the decision level the model lowers the error from 28.2 to 20.6 percent. That is 27 percent less error, measured over 159 weeks out of sample.

On the weekly total the previous-week carry-forward is marginally better than the model. That belongs here, not in a footnote. The explanation is unspectacular: at large, much averages out, and there the previous week is a very good estimator. The model earns its keep one level down, where decisions are made. Anyone who only needs the total does not need the model. I tell the business side exactly that.

In September I measured again at all three sites. I turned that into a rule: the working pages show simple rules first. The model is added only once it beats them. The measurement over 159 weeks remains the solid statement on the animal number.

The forecast is only as good as the calculation after it. The page for the slaughter number was for a long time a factor of 2.7 above what is actually slaughtered. The calculation was right, the question was wrong: the page showed how many animals would be needed if even the scarcest cut had to suffice without any purchasing. A large part of the demand is bought in, though. With that quantity included, the calculation now hits within 6 percent. Both numbers stand side by side, clearly labelled.

What I would do differently

I would build the measurement frame before the first model. Walk-forward, yardstick and levels are then fixed before any model goes in. Every further model gets the same test automatically, and nobody gets to pick the level on which it looks good.

I would report the uncomfortable level from the start, as a fixed part of every evaluation, not as an afterthought. An evaluation that shows only the good levels loses the trust of the business side the first time someone checks.

With the gate I should have stopped earlier. Six variants were too many. If the first two do not beat the heuristic, that usually says it all.

I would have measured earlier what an error costs, not just how large it is. An error of 20.6 percent says how far the forecast is off on average. It does not say in which direction and how expensively. Since September I measure that. The models rank differently by it, and I would have liked to know that before choosing.

Technology

  • LightGBM
  • Python
  • Walk-forward validation
  • WMAPE