Articles

How do you calculate safety stock from forecast error?

When stock is planned against a forecast, the buffer covers what the forecast misses, and how much a better forecast saves depends on how reliable the supplier is.

When stock is planned against a forecast, safety stock should cover the forecast error, not the swings in demand: SS = z × √(L × σe² + d² × σL²), with σe the standard deviation of weekly forecast errors. For part AF-7 in Supply Chain Management a forecast that cuts the weekly spread from 462 units to an error of 193.8 cuts the 98 per cent safety stock from 2,324 to 975 units if lead time is fixed, but only from 7,547 to 7,246 units once the supplier's lead-time variability is counted, a 4.0 per cent saving.

Worked in full in Supply Chain Management by Julian R. Sterling, with every figure reproduced in a free workbook.See the book on Amazon →

Why the forecast error is the right sigma

The textbook safety stock formula uses the standard deviation of demand around its average. That is right when the plan is the average: every week the system expects 1,840 units and holds stock against anything else. Most companies plan against a forecast that moves with the season, the promotion and the order book. What the buffer has to absorb is then the part of demand the forecast did not see, which is the forecast error. Measured that way, a good forecast is worth stock. How much depends on what else the buffer is covering.

The data: thirteen weeks of forecast against actual

AF-7, one-week-ahead forecast, illustrative history; error = actual minus forecast
WeekActualForecastError
11,3901,640−250
22,4802,260220
31,7301,820−90
42,0302,070−40
51,2401,530−290
62,6402,360280
71,9101,990−80
81,5801,720−140
92,2202,010210
101,1401,460−320
112,1402,10040
121,6501,800−150
131,7701,870−100
Total23,92024,630−710

The actuals average 1,840 a week with a standard deviation of 456, close to the 462 the book measures over a longer history and uses below. The other inputs are the book's: a 6-week lead time with a standard deviation of 1.9 weeks, a 98 per cent cycle service level (z = 2.0537), 28.60 EUR a unit and a 13.4 per cent holding rate.

The calculation, step by step

1. Bias = mean error = −710 / 13 = −54.6 a week: the forecast runs 2.97 per cent high

2. σe = standard deviation of the errors = 193.8 (RMSE 194.1; 1.25 × MAD = 1.25 × 170.0 = 212.5)

3. Lead-time demand variance from the forecast: 6 × 193.8² = 225,462 (against 6 × 462² = 1,280,664 from raw demand)

4. Lead-time variance from the supplier: 1,840² × 1.9² = 12,222,016

5. SS = 2.0537 × √(225,462 + 12,222,016) = 7,246 units

Excel: =NORM.S.INV(0.98)*SQRT(L*STDEV.S(Errors)^2+d^2*sL^2)

The result

AF-7 safety stock at 98 per cent, by the sigma used
Sigma usedSigmaSS, fixed lead timeSS, variable lead timeValue, variable
Demand around its mean462.02,3247,547215,836
Forecast error, standard deviation193.89757,246207,231
Forecast error, 1.25 × MAD212.51,0697,259207,609

If the lead time were fixed, the forecast would release 1,349 units, 58.0 per cent of the buffer and 38,581 EUR of stock. With the supplier as it is, it releases 301 units, 8,605 EUR, and 1,153 EUR a year of holding cost. The forecast removed four-fifths of the demand-side variance, but demand was never the problem on this part: with the forecast in place, 98.2 per cent of the remaining variance is the supplier's lead time.

What if: the supplier became more regular

Safety stock saved by the forecast, by lead-time standard deviation
σL, weeksSS on demand sigmaSS on forecast errorUnits savedSaving
1.97,5477,2463014.0%
1.04,4363,90353412.0%
0.52,9952,12686929.0%

The two levers are complements. A better forecast is worth almost nothing while the supplier is erratic, and nearly three times as many units once the supplier is brought to half a week. The order of work on AF-7 is supplier first, forecast second, which is the argument the book makes with the variance split.

The common mistakes

Takeaway

The forecast-bias sweep from minus 10 to plus 10 per cent and the lead-time table are in the free workbooks for this case; what a biased forecast costs in euros is worked in which costs more: a forecast 10 per cent low or 10 per cent high.

Questions readers ask

Should safety stock use forecast error or demand standard deviation?

Forecast error, whenever replenishment is planned against a forecast, because the buffer only has to absorb what the forecast did not anticipate. On part AF-7 the forecast error is 193.8 a week against a demand spread of 462, which with a fixed lead time cuts the 98 per cent safety stock from 2,324 to 975 units.

How do you convert MAD to a standard deviation for safety stock?

Multiply the mean absolute deviation of forecast errors by about 1.25, the ratio that holds for normally distributed errors. On thirteen illustrative weeks for AF-7 the MAD is 170.0, giving 212.5, against a measured standard deviation of 193.8. Use the measured figure when you have enough history; the shortcut slightly overstates here.

Why did a better forecast barely reduce safety stock?

Because most of the uncertainty over the lead time came from the supplier. For AF-7 the lead-time term is 12,222,016 against 225,462 from forecast error, 98.2 per cent of the variance. The forecast saves 301 units at a 1.9-week lead-time spread, but 869 units, 29.0 per cent, once the spread is cut to 0.5 weeks.

Read the whole case

This article is one calculation from Supply Chain Management. The book takes the same case from first principles to the decision, chapter by chapter, and every figure it prints is a live formula in the free companion workbooks.

Get the book on Amazon →Free companion files

Also on Amazon UK · Amazon Germany · Amazon France · Amazon Canada

Also on this site

Reading guide: business operations: cost, contracts, pricing and supply chain → · All 1340 articles →

If this book helped, or didn’t, a few lines on Amazon are worth more than they look: they are what the next reader goes on. Write a review. The workbook stays free either way.