Study · 02 — Lab
Demand forecasting and inventory policy
Three years of data across twenty fast-moving SKUs with seasonality, B2B buying patterns and inflation adjustment.
System view · demo data
Drag along the service-level ruler · ← → with the chart focused
- Safety stock (u.)
- 95
- Reorder point (u.)
- 306
- Test weeks short
- 0/12
At 95% the buffer is 95 units on top of the forecast (z = 1.64 times the model's error of 57 units). In the 12 test weeks, demand went over forecast plus buffer in 0. Each extra point of service costs more stock than the last: the study settled on 97.8% (116 units) by weighing the cost of running out against the cost of idle stock.
The problem
How much will sell and when to restock, without deciding by intuition.
What I built
SARIMAX with Fourier terms, Prophet and a global LightGBM with recursive forecasting, compared under time-series validation.
What changed
The forecasts translate into a reorder point and safety stock per product on a newsvendor basis.
Tools
- Python
- LightGBM
- Prophet
- SARIMAX