Diagnosing demand forecast errors in manufacturing
Hexwave Lab · Field noteKeep exceptional orders and stockouts visible when interpreting a demand estimate.
Sales recorded during a stockout can understate the demand a planner wanted to predict. Tag constrained periods, distinguish late shipments from cancelled orders and keep the forecast version used for the purchasing decision.
A worked scenario
A planner is assessing forecast error after a period of constrained supply.
| Review stage | Example |
|---|---|
| Source records | Observed sales, stockout periods and exceptional orders |
| Exception | An item was unavailable during the measurement window |
| Acceptance condition | The forecast evaluation preserves the difference between demand and fulfilled sales |
Ask which quantity a planner is trying to predict
Suppose a Delhi NCR manufacturer replenishes a bearing every four weeks. Sales records say a customer bought eight units in the third week of a month. The order desk says the customer originally requested fourteen and accepted eight because those were available. Dispatch records show eight shipped in that week and six later. These are three different observations. A forecast for dispatch capacity may care about eight now and six later. A replenishment decision needs to understand the request when it arrived.
Choose an operational target before selecting a forecasting method. Define the product identifier, ordering location, unit, planning horizon and the time at which the buyer must decide. If the same bearing is supplied as individual units and as sealed packs, use a reviewed conversion. Investigate product substitutions. The sales history of a discontinued bearing may look like a collapse in demand when the business has simply changed the code used to fulfil the same customer need.
Rebuild the history the planner could actually see
Take an old purchasing decision and gather the records available on its decision date. Exclude a forecast correction entered after the month closed. A confirmed promotion can inform a forecast if the planner knew about it at the time. A promotion label added retrospectively cannot. Keep record creation dates beside effective dates. A document describing last month’s demand may only have become available this week.
Mark constrained weeks explicitly. If a salesperson wrote down unfilled orders, retain those as observed requests with a note about cancellations and possible duplicates. If no one recorded lost orders, leave unconstrained demand unknown. It is tempting to fill the gap with a convenient estimate and then celebrate a model for predicting that estimate. Keep the assumptions visible and evaluate constrained periods separately.
Follow one illustrative four-week holdout
Assume the last training week ended with 12 units shipped. For an intentionally simple four-week forecast, repeat 12 in each week. Actual shipments are 11, 13, 8 and 16. Signed errors, using forecast minus shipment, are +1, −1, +4 and −4. Their sum is zero, which can look reassuring. The absolute errors total 10, giving a mean absolute error of 2.5 units per week. The zero signed total hides two sizeable misses.
Now look at the shortage. If the third week has reliable order records for fourteen units requested, then 8 shipments understate recorded requests by 6. Repeating 12 was an overforecast against shipments but an underforecast against those requests. If the six later units in week four are the delayed balance of that same order, avoid counting them a second time in an order-date series. Keep both series. The shipment target and the request target answer different planning questions.
Test the horizon that determines the purchase
Evaluating tomorrow’s demand does not test a decision that the buyer makes four weeks ahead. Select several historical order dates. At each date, hide later records and produce the forecast using only information then available. Compare forecasts at the actual lead time. Rolling the cutoff across dates helps reveal whether a method’s advantage survives different trading conditions. Hyndman and Athanasopoulos explain this evaluation design in their chapter on time-series cross-validation. Forecasting: Principles and Practice.
Keep a baseline simple enough for the planner to reproduce. In a seasonal business it might use the corresponding point in the previous cycle, subject to a carefully documented calendar alignment. For intermittent spare parts it might simply carry an agreed historical average. Evaluate on the same items, dates and horizons. A method tested on high-volume products alone cannot establish that it will improve ordering for slow-moving spares.
Inspect the decision alongside the error
Two forecasts can have the same absolute error but lead to different purchases. Suppose orders must be placed in packs of ten, and the planner can share a shipment across two nearby facilities. A forecast that changes by one unit might cross a pack boundary. A larger change at another facility might fit within current stock. During evaluation reconstruct the order the planner would actually have raised, including approved stock on hand, open purchase orders and the minimum pack rule.
Record which adjustment came from the model and which came from a planner. A planned factory closure, a large one-off order or a customer switching product lines may be known to the sales team earlier than it is reflected in stock transactions. Let the planner attach the reason and an expiry to an override. At the next cycle review whether the information helped, whether it was available earlier, or whether the override merely reacted to an old shipment.
Read the exceptions before choosing a model
Sort misses by product family, unit, constrained availability and horizon. One set of apparently dramatic errors may come from a duplicate forecast line after a code migration. Another may arise because some sites count customer returns as negative demand in the week the item reaches the warehouse. Solve the recording question first and rerun the same historical decisions. A more elaborate forecasting model should be tested on the corrected history against the same baseline.
Before giving automated recommendations to a buyer, run the forecasts in parallel with the existing planning cycle. Retain the forecast as originally issued, any edited version, the eventual order and the later outcome. Ask the buyer to explain cases where they would change a purchase. A better numerical score that never changes an order may have limited operational value. An early warning about a small set of repeatedly constrained items can be valuable if it reaches the right planner while there is still time to act.
Rebuild demand from order lines
Take one component that repeatedly runs short. Compare its requested quantity with fulfilled quantity for the same period. Sales can flatten at the stock ceiling while open order lines and substitutions continue rising.
Annotate promotions, customer reschedules and cancelled orders before fitting the next forecast. Ask a planner to review the largest unexplained error with its original order history and the lead time of the affected component.
Record what the forecast assumes
Start with a defined unit and horizon. A monthly order estimate and a daily shipment estimate answer different operational questions. Label exceptional events and missing observations before interpreting a change as new demand.
Use a previous decision date and reconstruct only the information available at that time. This prevents a review from rewarding a method for knowing a future event that the original operator could not have seen.
Monitor a change in the input population
A model that performed well on last quarter’s cases can encounter a different distribution after a policy or market change. Compare the inputs as well as the outputs. Track new categories, missing fields and increased reliance on the manual path.
When performance shifts, examine a small recent sample beside the evaluation set. Identify the changed condition before deciding whether to alter thresholds or retrain a model.
Putting it into practice
Compare forecasts and outcomes for the same decision horizon. A revised forecast created after new information arrived cannot fairly evaluate an earlier plan.
Explore Hexwave Lab’s approach to AI workflow automation.