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.

What it is
Hurdle model for intermittent demand
Role
Personal project, 2025
Stack
Python, LightGBM, scikit-learn, pandas, Plotly, Streamlit

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

  1. A hurdle model: a LightGBM classifier for whether any demand occurs, then quantile regressors for the median (Q50) and the upper bound (Q90).
  2. Five volume tiers, each with its own model capacity; the sparsest tier falls back to a moving average.
  3. 26 engineered features: lags, rolling and exponential averages, trend, recency, seasonality, lead and manufacturing time.
  4. 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

By volume tier
TierWAPEMAEQ90 coverage
1, highest volume23.6%3.4981.5%
222.3%1.4186.9%
333.1%1.0387.6%
430.5%0.6684.7%