This page is the companion Lab for What Is the Poisson Distribution?. The essay moves from café arrivals to a Chuseok chicken stockout, expected lost sales, and the newsvendor problem. Here, we pause the narrative and change the numbers ourselves.
The default case assumes five orders per hour with six hours remaining, so expected demand is 30. Demand is not exactly 30 every time. With 35 units, exact stockout probability is about 15.7%. Reaching a 95% no-stockout service level requires 39 units under this illustrative model.
Explore demand and inventory
Every input below is educational. It does not estimate sales, costs, or ordering quantities for BHC or any store. Probabilities and expectations are calculated directly from the Poisson distribution; only the 100-period display uses random simulation.
THE ARCHIVE / LAB 02
Turn average demand into an inventory decision
Compare Poisson demand, stockout risk, service level, and shortage-versus-leftover cost in one place.
All three profiles are normalized to the same total expected demand. End-of-period stockout risk is unchanged, but depletion timing can differ.
30
Rounded expected demand. It ignores the upper tail.
39
is the first quantity meeting the no-stockout target.
33
Minimizes expected mismatch cost under the entered costs.
The full range of demand, not one average
Both too little and too much inventory cost money
Run 100 periods with the same average
Orders by time block in the last simulated period
Shows total demand and when inventory would run out.Compare the three inventory rules
| Rule | Q | Stockout risk | Expected shortage | Expected leftover | Expected cost |
|---|
Illustrative model · Inputs are not data from BHC or any store. The model assumes independent orders, one inventory unit per order, no replenishment, and a known λ. The cost rule uses a simplified single-period newsvendor intuition.
Why three “right” inventory quantities disagree
The mean rule sets . It is simple, but it does not separately control the upper tail. In the default case, stocking the mean of 30 still leaves a stockout probability of about 45.2%.
The service-level rule starts with a probability target. To avoid a stockout in 95% of comparable periods, find the first satisfying:
The cost rule combines unit underage cost with unit overage cost . This simplified Lab searches for the inventory minimizing:
Raise underage cost and the cost-based quantity moves right. Raise disposal, holding, or markdown cost and it moves left. This is not a more accurate version of the service-level answer. It answers a different objective.
The same total average can hide a different day
The steady, lunch-peak, and two-peak holiday profiles are normalized to the same expected total. Under independent Poisson arrivals and no replenishment, they therefore have the same total-period demand distribution and closing stockout probability. The time at which inventory runs out can still differ.
That timing matters once we consider intraday replenishment, staffing, kitchen capacity, or transfers between locations. A single total-demand average cannot identify the risky hour. That is why a more realistic model may estimate a time-varying with a non-homogeneous Poisson process.
Prefer exact probability to 100 simulations
Rerun the 100 simulated periods and the number of stockouts changes. A theoretical probability of 15.7% does not guarantee exactly 16 stockouts in every batch of 100. Twelve or twenty are both possible.
The headline probability, expectations, and inventory recommendations therefore come from the exact Poisson distribution, not the simulated average. Simulation is used to make variation visible. When a small model is exactly tractable, there is no reason to add Monte Carlo error to the decision metric.
What this model leaves out
- One order may contain multiple chickens or menu items.
- The real changes with hour, holiday, weather, and promotions.
- Group orders and campaigns can create clustering.
- Stockouts censor demand and customers may substitute to other products.
- Replenishment or lateral transshipment may be available during the period.
- Underage and overage costs may include future customer behavior, not only immediate cash costs.
This Lab is not an ordering system. It is a decision scaffold: move beyond an average forecast and place uncertainty, stockout risk, and both sides of forecast error on the same screen.
Discussion
Discussion
Have a question, correction, counterexample, or another interpretation?