WMAPE & Forecast Bias
Volume-weighted error, so low-volume fringe sizes do not swamp the score; bias shows systematic over- or under-forecasting.
WMAPE = Σ|A_t − F_t| / ΣA_t | Bias = Σ(F_t − A_t) / ΣA_t
Replenishing apparel is a forecasting problem with a decision at the end. This page builds a weekly forecast at the category level, tests it against a seasonal naive forecast on four years of history, turns its error into a 95% prediction interval, and uses that interval to set safety stock, reorder points and forward cover by ABC-XYZ segment and by size.
Computed on this page from synthetic data: the backtest in section 03 and the simulator defaults in section 07. None of these are client results.
Error grows as volume thins out down the hierarchy. Forecast where the signal is dense (category), add up for the levels above, and split down by smoothed shares for brand, colour and size. Select a level to see its method.
Levels 1 and 2 are sums and levels 4 to 6 are shares that add to 1, so every level adds up without a separate reconciliation step. MinT reconciliation is the alternative when each level is forecast on its own. The per-level CV and WMAPE are assumptions for illustration; section 03 measures WMAPE by backtest.
Eight formulas: accuracy, seasonality, de-censoring, forward cover, safety stock, order points, fill rate and value added. The scripts on this page use exactly these.
Volume-weighted error, so low-volume fringe sizes do not swamp the score; bias shows systematic over- or under-forecasting.
WMAPE = Σ|A_t − F_t| / ΣA_t | Bias = Σ(F_t − A_t) / ΣA_t
Each week's sales divided by that year's weekly mean, averaged over the last two years, smoothed over 3 weeks and scaled to sum to 52.
SI_w = mean_y( D_w,y / D̄_y ) · Σ SI_1..52 = 52
Sales in stockout weeks understate demand; left alone they pull the next forecast down. Scale them up, with a cap, and drop weeks with almost no stock.
D̂_t = D_obs × min(7 / Days_in_stock, 2) · skip if Days_in_stock < 2
How many weeks of the forward seasonal forecast the stock covers. Trailing WOS divides by past sales instead and overstates cover before a peak.
Σ_{i=1..k} F_{t+i} = OH_t + OO_t ⇒ FWOS = k + frac
With a review every R weeks, stock must cover forecast error over the lead time plus the review cycle, and the spread of the vendor's lead time.
SS = z × √((LT + R)·σ_D² + D̄²·σ_LT²)
Forward forecast summed over the lead time (ROP) and over lead time plus review cycle (Max), each plus the same safety stock.
ROP = Σ_{1..LT} F + SS | Max = Σ_{1..LT+R} F + SS
CSL is the chance of no stockout in a cycle; β is the share of units demanded that are sold from stock. L(z) is the standard normal loss function.
β = 1 − σ_{LT+R}·L(z) / (D̄·R) | CSL = Φ(z)
FVA compares the model with a seasonal naive forecast on the same weeks; the tracking signal flags a forecast whose errors keep the same sign.
FVA = WMAPE_naive − WMAPE_model | TS = Σ(A − F) / MAD
Four years of synthetic weekly sales per category (with stockout weeks). The model is refitted at every origin, scored against a seasonal naive forecast, and its errors set a prediction interval that widens with the horizon.
| WMAPE, 1 to 12 weeks ahead | 16.7% | 19.4% |
|---|---|---|
| Bias (+ = over-forecast) | +2.9% | +11.3% |
| Forecast value added | +2.7 pts | |
| 95% band, holdout coverage | 94.5% | |
| 95% band around the forecast | 1 wk -36% to +56% · 12 wks -36% to +56% · 52 wks -39% to +65% | |
| Scored | 628 weeks · 53 origins | |
| Model | Naive | |
The model beats the seasonal naive by 2.7 WMAPE points, so it earns its place.
Coverage is close to 95%, so the band can be used for safety stock.
Method: origins every week from week 104 to week 156; at each origin the model is refitted on the weeks before it only and forecasts 1 to 52 weeks ahead. Only weeks fully in stock are scored, because stockout weeks have no true actual. The band uses the root mean square of log(actual / forecast) by horizon from the first half of the origins, smoothed and never narrower at a longer horizon; coverage is counted on the second half.
ABC ranks items by revenue; XYZ by forecast error (CV). The service level is a policy choice per cell; z, fill rate and forward cover are computed by the section 07 simulator for each cell's representative item. Z items do not use the normal formula.
| Value tier \ volatility | X · low error (CV < 0.35) |
Y · seasonal / moderate (0.35 ≤ CV < 0.75) |
Z · erratic / fringe (CV ≥ 0.75) |
|---|---|---|---|
| A · 75% of revenue15% of SKUs | |||
| B · 18% of revenue25% of SKUs | |||
| C · 7% of revenue60% of SKUs |
Sixteen weeks, SI 0.85× → 1.85× → 0.95×, a 3-week lead time and weekly review. Both policies see the same random demand. Forward cover sets ROP and Max from the forward forecast; trailing WOS sets them from the last 4 weeks of sales, which are themselves cut short by stockouts.
| Parameter | Effect in the formulas | Range used on this page | Failure mode if ignored | Lever |
|---|---|---|---|---|
| Vendor lead time (LT) | Raises ROP linearly (Σ F_1..LT) and SS by √(LT + R) | 3 to 10 wks | Stockouts in the ramp on overseas core styles | Pre-book fabric; a near-shore vendor for chase orders |
| Lead-time spread (σ_LT) | Drives the D̄²·σ_LT² term in safety stock | 0.5 to 2.8 wks | Stockouts even when the forecast is right | Track vendor on-time delivery; prefer reliable vendors |
| Review cycle (R) | Adds D̄·R to Max and R to the protection interval | 1 to 4 wks | More average stock and lower GMROI | Weekly review for A-X and A-Y items |
| Minimum order (MOQ) | Order Q = max(Max − IP, MOQ) | Not modelled here | Over-buying fringe colours, clearance at season end | Pool dye lots across styles; fabric-level MOQs |
| Case pack / size pre-pack | Fixes the size ratio of each order (e.g. 1-2-3-3-2-1) | Not modelled here | Broken core sizes while XS and XXL pile up | Open-stock picking for large stores |
| Presentation minimum | Floor MinOnHand = max(SS, DisplayMin); the BOM page (01) stacks them instead | Not modelled here | Thin racks lose sales even with safety stock met | Display minimums by store grade |
The same simulator run size by size. Demand noise splits by size share and does not cancel, so the sizes need more safety stock than the style as a whole. The C-Z item is bought once, with a newsvendor quantile instead of safety stock.
Sizes need 258 u of safety stock against 137 u if the style were one SKU: demand noise does not cancel across sizes.
Sizes need 445 u of safety stock against 251 u if the style were one SKU: demand noise does not cancel across sizes.
Sizes need 423 u of safety stock against 291 u if the style were one SKU: demand noise does not cancel across sizes.
Newsvendor buy: z = 1.03 at critical ratio (price − cost) / (price − salvage).
Periodic review, order-up-to. See how the last points of service level cost more and more stock, how trailing WOS overstates cover before a peak, and how much of the safety stock comes from the vendor's lead-time spread. The normal formula is valid for X and Y items, so CV stops at 0.70; Z items use Croston or a one-time buy (section 04).
Turns here are for one replenished item at its forward rate. A whole apparel assortment turns far less, because one-time seasonal buys, display stock and stock in transit sit outside this formula.
Data, models and decisions in three layers. The system proposes orders and transfers; buyers and planners release them. Actuals flow back every week to re-score the forecast and refit the seasonal index, size curves and vendor lead times.
Model seasonality at category level, where volume is dense, then split to brand, colour and size by smoothed shares.
Stockout weeks understate demand. Scale them up for fitting, and leave them out when scoring, since they have no true actual.
A model earns its place only if it beats the seasonal naive in a backtest, and its 95% band only if holdout coverage is near 95%.
At the A-Y default, cutting σ_LT from 1.2 to 0.2 weeks lowers safety stock from 251 u to 175 u; a 5% smaller forecast error (CV 0.40 to 0.38) only lowers it to 245 u.