All work
Inventory demand forecasting
Most SKUs sell nothing on most days. A two-stage model first predicts whether there will be demand at all, then how much, with a 90th-percentile forecast that sets safety stock.
The problem
Standard regressors trained on mostly-zero sales learn to predict a little demand every day, which is wrong every day. Planners need an order quantity and a safety buffer they can trust.
What I built
- A hurdle model: a LightGBM classifier for whether any demand occurs, then quantile regressors for the median (Q50) and the upper bound (Q90).
- Five volume tiers, each with its own model capacity; the sparsest tier falls back to a moving average.
- 26 engineered features: lags, rolling and exponential averages, trend, recency, seasonality, lead and manufacturing time.
- A Streamlit dashboard with multi-day rolling forecasts, a per-SKU deep dive and CSV and PDF export.
Results
- R²
- 0.86
- Mean absolute error
- 1.26 units
- WAPE
- 27.3%
- Q90 covers actual demand
- 86%
Test set, June to November 2025
| Tier | WAPE | MAE | Q90 coverage |
|---|---|---|---|
| 1, highest volume | 23.6% | 3.49 | 81.5% |
| 2 | 22.3% | 1.41 | 86.9% |
| 3 | 33.1% | 1.03 | 87.6% |
| 4 | 30.5% | 0.66 | 84.7% |