Library · Demand and stock

Safety stock and the normal approximation

Safety stock is the stock held above the expected demand over the lead time. The textbook formula assumes that this demand is normally distributed. For slow items it is not, and the service obtained differs from the target.

By , published

Definition

With a demand per period of mean μ and standard deviation σ, and a lead time of L periods, the classical reorder point is:

reorder point = μ L + z σ √L,   safety stock = z σ √L

where z is the normal quantile of the target cycle service level, 1.645 for 95 %. When the lead time itself varies, with standard deviation σL, the term under the root becomes L σ² + μ² σL². The formula is exact if lead-time demand is normal. It is an approximation otherwise.

Worked example

An item sells in one period out of five, between 1 and 9 units each time, and the lead time is four periods. We compute the reorder point from the formula, then the service it gives on simulated lead-time demand, and the level the true quantile requires.

import numpy as np
from scipy import stats

rng = np.random.default_rng(10)
L = 4
d = rng.binomial(1, 0.2, (400_000, L)) * rng.integers(1, 10, (400_000, L))
lead = d.sum(axis=1)                               # demand over the lead time
mu, sigma = d.mean(), d.std()

print(f"per period: mean = {mu:.2f}, sd = {sigma:.2f};  P(no demand over the lead time) = {np.mean(lead == 0):.3f}")
for target in (0.90, 0.95, 0.99):
    rop = mu * L + stats.norm.ppf(target) * sigma * np.sqrt(L)
    achieved = np.mean(lead <= np.floor(rop))
    exact = int(np.quantile(lead, target))
    print(f"target {target:.2f}:  formula gives {rop:5.1f} -> service {achieved:.3f}   exact quantile = {exact}")

Output, produced by running the code above when this page was built:

per period: mean = 1.00, sd = 2.31;  P(no demand over the lead time) = 0.409
target 0.90:  formula gives   9.9 -> service 0.891   exact quantile = 10
target 0.95:  formula gives  11.6 -> service 0.926   exact quantile = 13
target 0.99:  formula gives  14.7 -> service 0.966   exact quantile = 18

The service obtained from the formula falls short of the target, and more so at the high levels: the normal curve is symmetric and the lead-time demand of a slow item is not. The exact quantile is read directly from the distribution.

Where it misleads

  • Lead-time demand of a slow item has a large mass at zero and a long right tail. A normal curve with the same mean and variance puts weight on negative demand, which does not exist.
  • The standard deviation is often estimated from forecast errors of a biased forecast. The safety stock then compensates a bias, and nobody knows which part is which.
  • The square-root rule assumes independent periods. Demand that comes in runs, or a promotion, makes the true spread over the lead time larger than σ √L.

The alternatives are to model lead-time demand with a count distribution, such as the negative binomial, or to resample it from the history, as in the bootstrap of lead-time demand. In both cases the result is a quantile, to be checked on data held out.

In our work

For slow items we estimate the quantile of lead-time demand directly and check the service it gives on a window held out, instead of applying a z-score to a standard deviation.

References

  1. Silver, E. A., Pyke, D. F., Thomas, D. J. (2017). Inventory and production management in supply chains, 4th edition. CRC Press, Boca Raton. doi:10.1201/9781315374406
  2. Snyder, R. D., Ord, J. K., Beaumont, A. (2012). Forecasting the intermittent demand for slow-moving inventories: a modelling approach. International Journal of Forecasting, 28(2), 485-496. doi:10.1016/j.ijforecast.2011.03.009
  3. Willemain, T. R., Smart, C. N., Schwarz, H. F. (2004). A new approach to forecasting intermittent demand for service parts inventories. International Journal of Forecasting, 20(3), 375-387. doi:10.1016/S0169-2070(03)00013-X

Have a question like this one on your own data? Tell us what you need in a few lines.

Send us the brief

Related pages

  • Service level and fill rateThe cycle service level is the probability that demand is fully met in a period. The fill rate is the share of units demanded that are delivered from stock. They are different numbers, and for slow items they can be far apart.
  • Lead-time demand and its bootstrapWhat a reorder point must cover is the total demand between placing an order and receiving it. Its distribution can be estimated by resampling the history, without assuming a shape.
  • Poisson or negative binomial demandA count distribution turns a mean forecast into stock levels. The Poisson distribution assumes the variance equals the mean. When orders come in batches the variance is larger, and the negative binomial fits better.
All library pages