ClearStock by InventoryX is live on the Shopify App Store.Install free →

Install ClearStock
English
  • English
Browse Resources

S2 · quantitative skill

Forecast error metrics that survive contact

MAD, bias, RMSE, MAPE, MASE and the tracking signal, worked on six days of the running example, with the assumptions that make each valid.

The merchant question: my forecast is wrong every month — how do I know whether it is actually getting worse?

By scoring it against a metric that is defined for your kind of series, the same way every period. "Wrong every month" is not a measurement; it is a feeling with a date on it. A forecast review needs three outputs: how large the average miss is, whether the misses lean one way, and whether they are changing. Different metrics answer those three, and each has a condition under which it is not defined or not comparable — which is why most forecasting arguments in small businesses are metric-selection arguments in disguise.

The definitions

For each period t, with actual demand A_t and forecast F_t:

Error e_t = A_t − F_t (positive means you under-forecast).

Mean error / bias = Σe_t ÷ n — direction. A bias of 1.5 units a day is a different problem from noise of the same size, and much cheaper to fix.

MAD = Σ|e_t| ÷ n — average magnitude in demand units, robust to outliers. RMSE = √(Σe_t² ÷ n) — same units, big misses penalised harder.

σ from MAD ≈ 1.2533 × MAD — an average absolute error converted into a standard deviation, valid when errors are zero-mean and normal. This is the bridge from scoreboard to buffer size.

MAPE = mean(|e_t| ÷ A_t) — percentage magnitude, undefined at A_t = 0. MASE = MAD of the forecast ÷ MAD of a naive forecast on the same series — scaled, so it is comparable across items of different volume.

Tracking signal = Σe_t ÷ MAD — cumulative bias in units of MAD; a large absolute value means the forecast has stopped tracking reality.

Worked example — six days of MUG-GRN-12

Take a flat forecast of 8 units/day (close to the 7.08 running mean) against six consecutive in-stock days.

| Day | Actual A | Forecast F | Error e | |e| | e² | |e| ÷ A | |---|---|---|---|---|---| | 1 | 9 | 8 | +1 | 1 | 1 | 0.111 | | 2 | 6 | 8 | −2 | 2 | 4 | 0.333 | | 3 | 12 | 8 | +4 | 4 | 16 | 0.333 | | 4 | 5 | 8 | −3 | 3 | 9 | 0.600 | | 5 | 8 | 8 | 0 | 0 | 0 | 0.000 | | 6 | 4 | 8 | −4 | 4 | 16 | 1.000 | | Sum | 44 | — | −4 | 14 | 46 | 2.377 |

  • Bias = −4 ÷ 6 = −0.67 units/day: the forecast leans high by two-thirds of a unit.
  • MAD = 14 ÷ 6 = 2.33 units/day.
  • RMSE = √(46 ÷ 6) = √7.67 = 2.77 units.
  • σ from MAD = 1.2533 × 2.33 = 2.92 units.
  • MAPE = 2.377 ÷ 6 = 39.6%.
  • Tracking signal = −4 ÷ 2.33 = −1.72, inside the conventional band.

MASE needs the naive baseline on the same six days: forecasting each day with the previous day's actual gives errors of −3, +6, −7, +3, −4 for days 2–6, so naive MAD = 23 ÷ 5 = 4.6 and MASE = 2.33 ÷ 4.6 = 0.51. The flat forecast is a little better than half the naive error, and that is only visible because the metric is scaled.

Now the interesting part: RMSE 2.77 and the MAD-derived 2.92 both sit below the σ_d = 3.5 used in the running example. Feed 2.92 into the buffer:

σ_LTD = √(45 × 2.92² + 7.08² × 4.5²) = √(45 × 8.53 + 1,015.13) = √(383.7 + 1,015.13) = √1,398.8 = 37.40 units

SS = 1.65 × 37.40 = 61.7 units, against 65.3 from the σ_d = 3.5 route — a 5.5% change in safety stock for a 17% change in the demand-side σ. When the supplier's variability dominates the variance budget (here 1,015 of 1,398 units, 73%), refined forecast error moves the buffer very little: effort spent improving this SKU's forecast buys less than effort spent on lead-time stability.

Which metric, and when

  • Bias first. It is cheap, directional, and positive bias on a replenishment series is a stockout waiting to happen.
  • MAD for buffers on smooth series, because σ ≈ 1.2533 × MAD is exactly the bridge the safety-stock formula needs. Reach for RMSE instead when a single big miss is the service risk.
  • MASE across a catalogue, because it is the only one comparable across items of wildly different volume. Averaging raw MAD across 620 SKUs is meaningless — the top-volume item dominates.
  • MAPE only for stable, strictly positive series. On MUG-GRN-12 it reads 39.6%, dominated by the day that sold 4, where a 4-unit miss is scored as a 100% error. On any of the 11 dark days it is undefined.

Assumptions

  1. Distribution of lead-time demand. The metrics score one-day-ahead errors and assume nothing about the shape of lead-time demand; the conversion σ ≈ 1.2533 × MAD does assume zero-mean, normal, independent errors. With MAD = 2.33 that gives σ = 2.92 — the σ entering a normal buffer for a mean of 7.08 over a 45-day lead: mean 319, σ 37.40, SS 61.7 at z = 1.65.

  2. Stationarity and independence. MAD over six days assumes a stable error process across them. A price change, a listing change, or a promotion mid-window breaks that, and six observations cannot detect the break. It also assumes errors are not autocorrelated: if the forecast leans the same way every day, |e| understates the risk that the next six repeat it — which is what the tracking signal of −1.72 is hinting at.

  3. Demand–lead-time independence. These metrics measure demand error only; the buffer is exposed to both. Here the lead-time term is 1,015 of 1,398 units of variance, so a perfect forecast would still need 1.65 × √1,015 = 52.6 units of safety stock for the supplier alone. Forecast error metrics are not a proxy for replenishment risk.

  4. Review regime. The 37.40 figure covers L = 45 days, matching continuous review. Under periodic review with R = 12, exposure is 57 days: σ = 37.40 × √(57 ÷ 45) = 37.40 × 1.1255 = 42.09, and SS = 1.65 × 42.09 = 69.4 units. The error metric has not changed; the exposure has.

  5. Constraints ignored. Nothing here accounts for MOQ, pack size, shelf life, or cash. A 5.5% cut in safety stock is 3.6 units on a 296-unit order — invisible against a case pack of 24, which is worth knowing before optimising it.

  6. Observed sales as demand. All six observations are in-stock days. Had the 11 dark days been included, each would record an error of −8 (forecast 8, actual 0) — not a forecast error but a stockout artefact. Over 20 observations, Σe = −4 + 11 × (−8) = −92 and Σ|e| = 14 + 88 = 102, giving bias −92 ÷ 20 = −4.6 and MAD 102 ÷ 20 = 5.1. The apparent error more than doubles, and every remedy it suggests points at the forecast instead of at availability.

Where this breaks

Small n. Six observations give a MAD with a wide uncertainty band. Treat any metric computed on fewer than about 20 errors as provisional, and never tune a method on fewer than 30. For the same reason, error measured on the data used to fit the method is optimistic by construction: hold out the most recent 20–30% and score that.

Scale-mixing. Averaging MAPE across a catalogue gives every slow item equal weight and lets a 2-unit SKU with a 1-unit error contribute 50%. Average MASE, or aggregate MAD in units within a class.

Metrics that flatter flat forecasts. A flat forecast on a seasonal product scores well for eight months and then fails comprehensively; an annual MAD averages the failure into invisibility. Score seasonal items by season, not by year.

Metrics that become the target. A team scored on bias stops being biased and starts being noisy; a team scored on MAPE games it by over-forecasting slow items. Score one metric for direction, one for magnitude, and review the forecast that produced them.