Definition
Lead-time demand is the sum of the demand over the L periods of the lead time, plus the review period when stock is checked at intervals. The reorder point for a target cycle service level is the quantile of that sum.
DL = yt+1 + ... + yt+L, reorder point = quantile of DL at the target level
The simplest bootstrap draws L values at random from the history, with replacement, sums them, and repeats thousands of times. Willemain, Smart and Schwarz added in 2004 a model of the sequence of zero and non-zero periods and a small random change of the sizes, so that values never seen before can appear.
Worked example
Five years of monthly history of a slow item, a lead time of three months. The reorder point at 95 % is computed with the normal formula and with the simple bootstrap, then both are checked against a long simulation of the true process.
import numpy as np
from scipy import stats
rng = np.random.default_rng(16)
def process(n):
return rng.binomial(1, 0.25, n) * rng.geometric(0.35, n)
history, L, target = process(60), 3, 0.95
truth = process(3 * 200_000).reshape(-1, L).sum(axis=1)
boot = rng.choice(history, size=(20_000, L), replace=True).sum(axis=1)
rop_boot = np.quantile(boot, target)
rop_norm = history.mean() * L + stats.norm.ppf(target) * history.std(ddof=1) * np.sqrt(L)
print(f"history: {len(history)} months, {np.mean(history == 0):.0%} zeros, largest demand {history.max()}")
print(f"normal formula: reorder point = {rop_norm:4.1f} true service = {np.mean(truth <= np.floor(rop_norm)):.3f}")
print(f"bootstrap: reorder point = {rop_boot:4.1f} true service = {np.mean(truth <= rop_boot):.3f}")
print(f"true 95 % quantile of lead-time demand = {int(np.quantile(truth, target))}")Output, produced by running the code above when this page was built:
history: 60 months, 73% zeros, largest demand 11 normal formula: reorder point = 8.6 true service = 0.956 bootstrap: reorder point = 11.0 true service = 0.985 true 95 % quantile of lead-time demand = 8
Both reorder points come from the same sixty months, and the printed service is what each one would really deliver. On this sample the normal formula lands closer to the target and the bootstrap holds more stock than the target needs. Neither can do better than the history allows: a different five-year sample would move both.
Where it misleads
- Resampling periods independently destroys any link between consecutive periods. If demand comes in runs, the bootstrap underestimates the spread over the lead time. Resampling blocks of consecutive periods keeps it.
- The simple version cannot produce a demand larger than the largest one seen. On a short history the upper quantiles are capped.
- A trend or a season in the history is mixed into the resampled distribution as if it were noise.
- The lead time is treated as fixed. When suppliers are late, the number of periods summed should be drawn from the observed lead times as well.
The alternative is a parametric model, for instance a negative binomial for the demand per period. Whichever is chosen, the test is the same: the quantile is scored on periods the method has not seen.
In our work
We evaluate demand forecasts over the lead time and not only period by period, since the order depends on the sum. Our open-source package reports the error on cumulative demand over the lead time for that reason.
Service: forecasting and statistical studies Research note: intermittent demand forecasting, measured
References
- 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
- Hasni, M., Aguir, M. S., Babai, M. Z., Jemai, Z. (2019). Spare parts demand forecasting: a review on bootstrapping methods. International Journal of Production Research, 57(15-16), 4791-4804. doi:10.1080/00207543.2018.1424375
- 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