How much should a corner shop order every Monday and Thursday?
Sold-out days hide real demand. A censored demand model recovers it, and an order rule built on that forecast is compared with the owner's current rule on the same six months.
−46 %cost of poor replenishment against the current ruleSynthetic data, 95 % interval −32 % to −58 %
What the result means
- Lost sales
- 2,195 → 831 units
- Waste
- MXN 17,109 → 8,171
- Inventory
- 30 % less capital tied up
- Forecast
- WAPE 22.1 % with almost no bias, against 31.7 % for last week's sales
The main chart

How the decision was made
- Simulated stores with day-of-week, payday, December and price effects.
- Negative binomial demand with stock-outs treated as censored observations.
- Out-of-sample validation against simple forecasts.
- Service level per product chosen by simulation, with a bootstrap interval of the saving.
What it does not claim
- Synthetic data; figures do not belong to any real business.
- Assumes lost sales without substitution.
- A real store needs its own parameters.
Analysis notebook and full evidence in the repository.
Use it on a route
Upload the visit history, get the load sheet, and record on the phone, store by store, what was left and what was sold out on arrival. It runs offline in the browser.