A manufacturer trains a forecasting model using several years of order history. The model appears to reproduce past demand extremely well. Purchasing introduces its recommendations into the replenishment process, but shortages and excess inventory continue.

The important question was never whether the model could reproduce the history it had already seen. It was whether the model could produce useful forecasts with the information available when purchasing decisions had to be made.

Start with the decision horizon

A component with a twelve-week replenishment lead time presents a different forecasting problem from a component that can be delivered tomorrow. The relevant horizon should reflect the period over which the forecast informs a real decision.

A model that predicts next week's demand accurately may provide little benefit when purchase commitments must be established three months in advance.

Define the product level, time interval and forecast horizon needed by the planning process. Consider whether the target is customer demand, confirmed orders, shipments or material consumption. Those quantities can differ when production is constrained or customers change orders.

Historical shipments may underestimate actual demand during stockouts. Training exclusively on shipment data can therefore teach a model that demand was low precisely when the business could not supply it.

Establish a simple benchmark

Before developing a complex model, identify an appropriate baseline. Depending on the demand pattern, this might be the most recent observation, a seasonal equivalent from the previous period or another justified simple forecast.

A machine-learning approach should demonstrate an improvement that matters to the intended decision. Complexity is not a benefit if the resulting forecast is less dependable or substantially harder to maintain.

Use the same historical information and evaluation conditions for the competing approaches. Giving the complex model access to information that would not have been available at the forecast date creates an unfair comparison.

Evaluate errors on a chronological basis

Suppose the following fictional weekly forecasts were generated before the corresponding demand became known.

Week — Actual demand — Forecast — Error: actual minus forecast
WeekActual demandForecastError: actual minus forecast
11009010
2120130−10
380100−20
414011030

The mean error is (10 − 10 − 20 + 30) ÷ 4 = 2.5 units, suggesting slight average underforecasting under this error convention.

The mean absolute error is (10 + 10 + 20 + 30) ÷ 4 = 17.5 units. The difference between the two measures matters because positive and negative errors can cancel in the mean error while still producing substantial planning uncertainty.

A percentage error measure may become undefined or unstable when actual demand is zero or very small. Select metrics suited to the characteristics of the demand being forecast.

Avoid giving the model information from the future

Use chronological evaluation that reflects how forecasts will be generated. In a rolling evaluation, the model is trained or updated using data available at an earlier forecast origin, and its prediction is evaluated against later observations.

Repeat the process across representative historical periods and the forecast horizons relevant to the business. This can reveal performance differences between ordinary demand and periods involving seasonal changes or unusual events.

Check how data transformations, feature construction and model selection are performed. If information from the evaluation period influences the training process, the measured accuracy may be optimistic.

The same concern applies to external variables. A customer schedule revised after the original purchasing decision should not be treated as information that was available before that decision.

Connect error with operational consequences

Overforecasting and underforecasting may have different costs. Excess purchases can tie up working capital and create obsolescence. Insufficient purchases can cause shortages, expedited freight or production interruptions.

Compare forecasts using the actual planning policy and plausible demand scenarios. A lower average error may not create an improvement if it performs poorly for critical components or relevant replenishment horizons.

Consider forecast uncertainty as well as the central estimate. A point forecast does not describe how widely demand might vary. Inventory and purchasing policies may need an appropriate uncertainty estimate alongside the predicted demand.

Establish human review and ongoing evaluation

Unusual customer commitments, upcoming product discontinuations and changes to commercial arrangements may not be adequately represented in historical data. Establish how planners can introduce authorized information and how adjustments are recorded.

Compare the original forecast, any planner adjustment and the eventual outcome. This helps identify when interventions add useful information and when they introduce avoidable bias.

Monitor model performance as demand, product mix and data quality change. Review material deterioration and maintain an appropriate fallback forecasting method.

The purpose of industrial forecasting is to support better commitments of material, capacity and capital. A useful model earns its place by improving decisions made before demand becomes known, not by generating an impressive fit to the past.

Further reading

Hyndman and Athanasopoulos — Practical forecasting issues.