Jesús R. L. GonzálezSource code on GitHub

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

Comparison of the current ordering rule and the proposed policy
Current rule against the forecast-based policy on the same simulated demand.

How the decision was made

  1. Simulated stores with day-of-week, payday, December and price effects.
  2. Negative binomial demand with stock-outs treated as censored observations.
  3. Out-of-sample validation against simple forecasts.
  4. 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.

Open the route order app