01 · Where to forecast

6-Level Merchandising Hierarchy & Middle-Out Forecasting

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.

Middle-out split

From a 439-unit category × brand week to colour and size

FORECAST LEVEL × BRAND SHARE Performance Polos Larchmere (L3 × L4 share) 439 u / wk 16,088 u/yr ÷ 52 × SI 1.42 · WMAPE 16.5% LEVEL 5 · COLOUR SHARES Midnight Navy 45% · 197 u Heather Grey 35% · 154 u Deep Olive 20% · 88 u LEVEL 6 · SIZE CURVE (MIDNIGHT NAVY = 197 UNITS) 6% (12) XS 16% (31) S 30% (59) M* 28% (55) L 14% (28) XL 6% (12) XXL *Size shares measured only in weeks with every size in stock

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.

Data science: where to forecast

Data
Weekly sales and on-hand by store × SKU, rolled up through the six-level product hierarchy; days in stock per week from the perpetual inventory.
Model
Middle-out: the multiplicative seasonal model of section 03 at category level; bottom-up sums above it; exponentially smoothed brand, colour and size shares below it.
Validation
Backtest WMAPE at each level against a seasonal naive; choose the forecast level where the model's value added is largest and the shares are stable.
Uncertainty
Error grows as volume thins: a size gets its share of the colour forecast, and its interval is wider than the colour's (variance splits by share).
Decision
Which level the planner forecasts and reviews by hand; everything below it is split automatically by size and site indexes.
Measure
WMAPE and bias by level each week; size-curve drift (share this season vs the curve used).
02 · Formulas used on this page

Statistical Metrics & Inventory Parameters

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.

01 · Accuracy and bias

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
02 · Seasonal profile

Multiplicative Seasonal Index (SI)

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
03 · Unconstrained demand

De-Censored Demand

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
04 · Forward horizon

Forward Weeks of Supply (FWOS)

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
05 · Two sources of risk

Safety Stock over LT + R

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²)
06 · Order points

Reorder Point & Order-Up-To (Max)

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
07 · Service targets

Fill Rate (β) vs Cycle Service Level

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)
08 · Does the model earn its place?

Forecast Value Added & Tracking Signal

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
03 · Forecast and test it

52-Week Seasonal Forecast, 95% Interval & Backtest

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.

Peak week & seasonal index
Wk 49 · 2.61×
Late-autumn cold weather
Trough week & seasonal index
Wk 25 · 0.39×
Mid-summer off-season
Pre-season receipt window
Wk 35 to Wk 38
4 weeks before SI passes 1.0; order Wk 25 to 28 (LT 10 wks)
Markdown exit
Wk 10
First week after the peak with SI below 0.75×
Rolling-origin backtest

Model vs seasonal naive: Winter Outerwear

WMAPE, 1 to 12 weeks ahead16.7%19.4%
Bias (+ = over-forecast)+2.9%+11.3%
Forecast value added+2.7 pts
95% band, holdout coverage94.5%
95% band around the forecast1 wk -36% to +56% · 12 wks -36% to +56% · 52 wks -39% to +65%
Scored628 weeks · 53 origins
ModelNaive

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.

Data science: the weekly forecast

Data
Weekly units and days in stock by category, 4 years (synthetic here). Stockout weeks are de-censored with the capped ratio; weeks with under 2 days in stock are left out.
Model
Multiplicative seasonal decomposition: F = 8-week deseasonalized level × weekly growth^h × SI_w. Benchmark: seasonal naive (same week last year).
Validation
Rolling-origin backtest, 53 origins, 1 to 12 weeks ahead: WMAPE, bias and FVA against the naive, scored on fully in-stock weeks only.
Uncertainty
95% prediction interval F × exp(±1.96 s_h), s_h from backtest errors at each horizon, checked by coverage on holdout origins.
Decision
Pre-season receipt and order weeks, markdown exit week, and the σ that feeds safety stock in sections 04 to 07.
Measure
Weekly WMAPE, bias and tracking signal on new actuals; interval coverage each quarter; refit the seasonal index each season.
04 · Segment the policy

ABC-XYZ Segmentation & Replenishment Policy

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

Data science: segment the policy

Data
52-week revenue by SKU (ABC ranking) and backtest forecast error by SKU (CV of the error, XYZ).
Model
X and Y: normal safety stock over LT + R. B-Z: Croston / SBA (separate size and interval of demand). C-Z: newsvendor quantile at the critical ratio. A-Z: analog curve with a chase reserve.
Validation
Check each segment's CV against its boundaries every season, and the realised fill rate against the computed β.
Uncertainty
The normal formula is only trusted below CV 0.75; above it the shape of lead-time demand is skewed and has to be simulated.
Decision
Service level, review cycle and buying method per cell, set once a season by the planner with the ABC ranking.
Measure
Fill rate and average stock by cell; items that move between cells; stock tied up in C items.
05 · Cover the ramp

Trailing WOS vs Forward Cover (FWOS) on a Seasonal Ramp

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.

Fill rate, forward cover
99.1%
18 u lost · 1 wk short
Fill rate, trailing WOS
89.0%
231 u lost · 4 wks short
Stock left at week 16, forward
68 u (0.7 wks)
Weeks of the 0.95× tail demand
Stock left at week 16, trailing
221 u (2.3 wks)
Ordered late, arrives after the peak

Supply parameters and what they do

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

Data science: forward cover

Data
Forward seasonal forecast by week (section 03), on hand and on order by SKU, vendor lead time.
Model
Weekly order-up-to simulation with lost sales: order Max − inventory position (on hand + on order) when it is positive; arrivals after LT weeks. ROP and Max are compared with the inventory position, not with on hand.
Validation
Common random numbers: both policies face the same demand, so the gap in fill rate and stock is the policy, not luck.
Uncertainty
One demand path is shown; repeat with other seeds to see the spread (a Monte Carlo run of the same simulation).
Decision
Which cover rule the store/DC distribution and direct-to-store PO runs use before a seasonal ramp.
Measure
Lost-sales weeks during the ramp and weeks of stock left after the peak, by policy.
06 · Down to the size

Colour-Size Archetypes: Average Stock and Safety Stock by Size

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.

A-X core replenishment

A-X · CSL 98%
Average units by size (amber = safety stock)Unit cost $15
28u ($0.4k)XS51u ($0.8k)S76u ($1.1k)M72u ($1.1k)L47u ($0.7k)XL28u ($0.4k)XXL
Forward cover
3.4 wks
Safety stock
258 u
Fill rate (β)
99.0%
Avg stock at cost
$4,537

Sizes need 258 u of safety stock against 137 u if the style were one SKU: demand noise does not cancel across sizes.

A-Y seasonal hero

A-Y · CSL 96%
Average units by size (amber = safety stock)Unit cost $45
49u ($2.2k)XS96u ($4.3k)S138u ($6.2k)M123u ($5.5k)L78u ($3.5k)XL49u ($2.2k)XXL
Forward cover
6.1 wks
Safety stock
445 u
Fill rate (β)
97.6%
Avg stock at cost
$23,950

Sizes need 445 u of safety stock against 251 u if the style were one SKU: demand noise does not cancel across sizes.

B-Y multi-size footwear

B-Y · CSL 94%
Average units by size (amber = safety stock)Unit cost $45
46u ($2.1k)883u ($3.7k)9123u ($5.5k)10113u ($5.1k)1176u ($3.4k)1241u ($1.8k)13
Forward cover
8.2 wks
Safety stock
423 u
Fill rate (β)
94.0%
Avg stock at cost
$21,684

Sizes need 423 u of safety stock against 291 u if the style were one SKU: demand noise does not cancel across sizes.

C-Z fringe fashion colour

C-Z · critical ratio 84.9%
Buy by size (amber = buffer over mean demand)Unit cost $45
17u ($0.8k)XS42u ($1.9k)S71u ($3.2k)M62u ($2.8k)L28u ($1.3k)XL12u ($0.5k)XXL
Season buy
232 u
Buffer over mean
72 u
Expected fill
96.8%
Buy at cost
$10,440

Newsvendor buy: z = 1.03 at critical ratio (price − cost) / (price − salvage).

Data science: sizes

Data
Size curve per style from fully in-stock store-weeks; the cell parameters of section 04.
Model
Size demand = style forecast × size share, size σ_D = style σ_D × √share; lead-time spread applies to every size. C-Z: newsvendor Q = μ + z·σ at the critical ratio.
Validation
Compare the curve used with the next season's in-stock size mix (chi-square or share error by size).
Uncertainty
Fringe sizes have the widest relative intervals; the amber cushion shows the safety stock (or newsvendor buffer) per size.
Decision
Size-level buy and allocation quantities, through the size and site indexes used by distribution.
Measure
Broken-size weeks for core sizes, leftover fringe sizes at markdown, sell-through by size.
07 · Try it

Safety Stock, Forward Cover & Fill Rate Simulator

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).

Presets (section 04 cells)
Review cycle (R)
Unit landed cost ($)
Forward weekly demand
87 u/wk
Base 60 × 1.45× SI
z for the CSL
1.75σ
At 96.0% CSL
Safety stock (LT + R)
251 u
$11,295 capital
Reorder point
773 u
Lead-time demand + SS
Order-up-to Max
947 u
$42,615 at the peak
Trailing WOS vs FWOS
5.6w vs 3.9w
Trailing overstates cover
Expected fill rate (β)
98.7%
Units demanded, sold from stock
Turns, this item
13.4×
Forward demand × 52 / average stock
Service level vs safety stock CSL 96.0%
251u ($11,304)80%85%90%95%99%Safety stock
Order-up-to level, split Lead-time spread: 53% of SS
Order-up-to Max = 947 unitsLead-time demand: 522 u (55%)Review-cycle stock (R): 174 u (18%)Safety stock, demand error: 118 uSafety stock, lead-time spread: 133 u

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 science: the stock decision

Data
Forward forecast and its backtest error (σ_D) from section 03; vendor lead times and their spread from receipt history; unit cost.
Model
Periodic-review order-up-to with normal demand: SS = z·√((LT + R)σ_D² + D²σ_LT²), β from the normal loss function.
Validation
Replay the policy on history and compare realised fill rate with the computed β, cell by cell.
Uncertainty
σ_D should be the forecast error, not the raw spread of sales; σ_LT comes from actual receipts versus promised dates.
Decision
Service level per cell and the ROP and Max loaded into the direct-to-store PO workbench and the DC distribution run, tested first in their simulators.
Measure
Realised fill rate, lost-sales estimate from de-censoring, average stock and turns by cell, checked weekly.
08 · Put it to work

Forecasting & Replenishment Pipeline

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.

LAYER 1 · DATA (DATA WAREHOUSE FACT TABLES) Daily sales, store × SKU On hand & days in stock Price, promo & calendar PO receipts vs promise dates 6-level product hierarchy LAYER 2 · MODELS (SECTIONS 01 TO 07) Middle-out seasonal forecast Backtest, FVA & 95% band ABC-XYZ policy by cell Safety stock, ROP & Max (LT + R) LAYER 3 · DECISIONS (PROPOSED BY THE SYSTEM, RELEASED BY PEOPLE) Merchandise plan & OTB Direct-to-store PO workbench DC distribution & simulator BI insight pages: WMAPE, bias Weekly loop: new actuals re-score the forecast, then refit SI_w, size curves and vendor σ_LT

Forecast where the signal is

Model seasonality at category level, where volume is dense, then split to brand, colour and size by smoothed shares.

De-censor before fitting, score on in-stock weeks

Stockout weeks understate demand. Scale them up for fitting, and leave them out when scoring, since they have no true actual.

Beat the naive, then trust the band

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%.

Lead-time spread first

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.