AI demand forecasting: compare a baseline and check errors
Before implementing AI demand forecasting, compare it with a simple baseline on the same future dates and the required horizon. Preserve predictions before actuals arrive, expose errors and exceptions, then assess the decision consequences. The open exercise and code below explain the evaluation protocol. They do not measure AI quality or savings on real data.
Start with the decision and horizon
A forecast should support a specific action, such as preparing units of one item for the next day. Name that action and the person who approves it first.
- Forecast horizon
- Tomorrow’s forecast and a monthly purchase plan need different tests. Specify when the decision is made, what information exists then and how long fulfilment takes.
- Simple starting point
- For a stable series and a small catalogue, begin with a transparent spreadsheet calculation. A more complex model needs to pass the agreed comparison and justify its running cost.
- Cost of a miss
- Understock can leave an item unavailable; excess stock can tie up money and space. Assess those consequences separately from average forecast error. They do not establish additional revenue.
Keep the first scope to one series, one horizon and one verifiable decision. Unsupervised purchasing is outside this initial stage.
Check what the series actually measures
A sales export does not always reveal all demand. Zero fulfilled orders during a stockout do not show that nobody wanted the item.
- Consistent units
- Do not mix items, packs and currency. Retain explicit rules for returns, cancellations and item-code changes so that the history remains comparable.
- Missing versus zero
- A missing observation needs its own explanation. Do not silently replace it with zero. Retain a confirmed true zero as an observation.
- Available features
- Price, promotion and stock information can only be used as known at the forecasting cutoff. Final promotion results or later revisions can accidentally reveal the answer.
Agree permitted processing, access and retention before a pilot. A fictional example and the export structure are enough for a free initial review.
Keep later dates separate and use a baseline
Evaluate chronologically. For every target date, preserve the forecast, its latest available input date and the actual observed afterwards.
- Baseline
- A naive forecast uses the last observation. A seasonal naive forecast uses the last matching seasonal observation: seven days earlier in this daily example [S 1].
- No future hints
- At each rolling origin, only earlier observations may inform the forecast [S 1]. Do not shuffle dates or use the same examples both to select a model and to claim independent performance.
- Fair comparison
- Use identical items, dates, horizons and available information for AI and the baseline. Freeze the model version, settings and forecasts before actual outcomes arrive.
A next-day test updated every day does not validate a seven-day plan issued once. Repeat the actual business horizon across separate periods before relying on it.
A controlled exercise: 28 days and 7 forecasts
We constructed a fictional daily series for 1-28 October 2026. The first 21 days are available at the initial cutoff. Each target from 22-28 October is predicted one day ahead. No AI model was run.
- Rolling cutoffs
- The 22 October prediction uses observations through 21 October. Once the 22 October actual arrives, it may inform the 23 October forecast. These are seven successive next-day forecasts, not one weekly plan.
- Download contents
- A CSV with 28 observations, standard-library Python 3 code, expected JSON and instructions. The code rejects unordered dates, gaps and negative values. Every input number is available.
- Visible failure
- The 24 October actual is a known true zero. The seasonal method predicts 17 units. That miss stays in the evaluation even when its average score looks better.
The weekly pattern is deliberately constructed. Seven errors on this series do not establish business superiority, AI quality or client savings.
Show unit errors and the days that went wrong
An average without its denominator hides the size of the evaluation. Both methods include all seven target days, including the zero actual.
- MAE
- The average absolute difference from the actual. Error sums are 71 and 23 units in this exercise; each is divided by 7. MAE is 10.14 and 3.29 units respectively.
- RMSE
- The square root of mean squared error gives more weight to large misses. RMSE here is 11.57 and 6.49 units. These are scores for this fictional series, not percentage accuracy.
- Why no MAPE
- Percentage error divides by the actual and is undefined at zero [S 1]. Absolute errors keep the zero day in this exercise without that division.
The largest absolute misses are 19 and 17 units respectively. Another series can produce different results. Forecast error is also different from financial loss.
| Method | n | MAE | RMSE | Max error |
|---|---|---|---|---|
| Last day | 7 | 10.14 | 11.57 | 19 |
| Seven days ago | 7 | 3.29 | 6.49 | 17 |
Accept an AI pilot against an agreed protocol
A supplier needs an agreed test before work begins. A close fit to the training history cannot replace predictions recorded before future events.
- Readiness criteria
- Agree evaluation periods, horizon, baseline, acceptable errors and important exceptions in advance. Score AI on identical dates without hiding unsuccessful items or periods.
- Owner decisions
- The manager sees forecasts, deviations and missing-data signals, then confirms the action. Keep a manual calculation and a named owner for failures or process changes.
- Handover
- Include imports, roles, review procedures, running costs, recovery and staff training. A full audit, pilot and development each have a separately agreed scope and price.
A free initial review can cover one planning cycle. Check an existing spreadsheet or standard system feature first if it already addresses the need.
Review one planning cycle
Describe the item, period, horizon and owner decision. A fictional example is enough to begin. The initial review is free.
Download the evaluation checklist, TXT
- AI for business workflows
- Scoping an AI pilot
- Purchase requests and partial receipts
- Reconciling management measures
- Krest-NN: documented CRM work
The case concerns CRM work. It is not presented as an AI forecasting implementation.
Methods source and exercise boundaries
Checked 26 November 2026. BYstudio constructed the synthetic series; no AI model was run. The primary source explains baseline methods, error measures and time-based evaluation, not outcomes of our development work.