Forecasting
Forecasting demand for 4,000 products
A weekly, store-level demand forecast that replaced gut-feel ordering and cut stockouts across 120 stores.
- Role
- Lead analyst
- Timeline
- 10 weeks
- Year
- 2025
- Tools
- Python
- SQL
- Prophet
- BigQuery
- Power BI
- stockouts on best-selling lines
- −23%
- less excess inventory
- $1.4M
- average forecast error
- 8.6%
01The challenge
Store managers placed orders from memory and last year's spreadsheets. Popular lines sold out every weekend while slow movers piled up in the back room, and nobody could say which problem was costing more.
02Approach
I started by putting a number on the problem: two years of sales and inventory data showed exactly where lost sales and excess stock were concentrated.
- Built a clean daily sales table in BigQuery, flagging stockout days so they did not drag the forecast down.
- Tested seasonal baselines, Prophet and gradient-boosted models for each product family, scoring every one on holdout weeks.
- Shipped the winning model as a weekly job and a Power BI ordering view that gives managers a suggested quantity with a confidence range.
Every Friday the forecast is checked against actual sales, so accuracy stays visible instead of assumed.
03Outcome
Within one quarter, stockouts on the 500 best-selling lines fell by 23% and excess inventory dropped by $1.4M. Store managers now start their orders from the forecast and adjust it, instead of starting from a blank sheet.
Next case study
Customer analyticsA churn early-warning systemWorking on a similar problem?
Tell me what you are trying to decide. I will tell you honestly whether data can help.