Newsvendor model: order once, and the average is the wrong number
A single order against demand you will see once. Type what one unit left over costs you and what one unit short costs you, and every quantity on your table shows its own bill, including the two either side of the one you were about to pick. The average demand is usually not one of them.
- the quantity one step down400
- what one step down costs$66,240
- the quantity one step up600
- what one step up costs$27,240
- next step in units100
- what that step does to the bill−$12,000
Try a scenario
What each quantity costs
- Horizontal
- Quantity you order, units
- Units
- Money in dollars, shown to the nearest dollar. Quantities in whole units.
| Quantity selected | 500 units |
|---|---|
| $39,240 | |
| Expected units sold | 445 units |
| Expected units left over | 55 units |
| Expected units short | 68 units |
| 60% |
Shown in any single currency; the arithmetic is identical.
The demand you are buying against
Try a shape
Your chances come to 100%.
What the next hundred units does
- Horizontal
- Quantity you order, units
- Basis
- Each bar is the change in that average from one row of your table to the next.
- Units
- Money in dollars, shown to the nearest dollar, signed against the row below.
- Assumptions
- The two prices hold at every quantity.
The staircase and the ratio
- Basis
- Fixed at the original example values; the last quantity always reaches 100%.
- Units
- A share of the example probabilities, shown to the nearest percent.
- Assumptions
- The seven probabilities and both prices stay at the original example values.
What the ratio is
Your two prices make one . A unit short costs $480, a unit left over costs $120, and the shortfall is 0.80 of the two together. Read that number across the staircase and it lands on 600, the first quantity whose chance of covering demand reaches it.
That is a description of your own table, not an instruction. It does not know whether you have room for 115 units, whether the money is there this quarter, whether the supplier will split the order, or whether $480 is really what a shortfall costs you. It also moves in steps rather than smoothly. Anywhere above $180 a unit short and up to $480, the row the ratio lands on does not move at all, which is worth knowing before anybody argues about the second decimal place.
Where this page does not apply
This page is for a quantity you commit once. One order, one window, and no chance to place another inside it before you find out what demand was. Spares that ship with the equipment, a line built for one season, a run made for one event, a part whose supplier closes the book on a date.
If you can order again inside the window, none of this arithmetic applies. What decides the quantity then is a reorder point and a lot size, and the leftovers you are pricing here are simply next month's opening stock.
Here is the maths
The formula, in words
- Two prices, and neither of them is the unit price. What matters is what changes when you order one more: it either sits there afterwards, costing you what you paid net of whatever you recover, or it is not there when it is wanted, costing you what that absence costs. A cost you pay whichever quantity you choose does not belong in either figure, because it cannot move the choice.
- A quantity's bill is two expectations added together. For each row of your table, work out how many units would be left over and how many would be missing, weight each by the chance of that row, price the two at your two prices, and add. Revenue is nowhere in it. This compares quantities against each other and deliberately does not rebuild an income statement.
- Only the rows can win. Between two adjacent rows the bill changes by the same amount for every unit, so it is a straight line with no bend inside the gap. A straight line has its lowest point at one end. The calculation therefore lands on rows, and nothing is rounded away.
- The step and the ratio are the same fact. Moving up one row costs you the leftover price on every outcome at or below where you are, and saves you the shortfall price on every outcome above it. Setting those equal gives one number, the shortfall price as a share of the two together, and the step turns from saving to costing exactly where the cumulative chance passes it. The step chart is the staircase chart, measured from that number instead of from zero.
- It lands on a tread, so it lands in jumps. The ratio is a smooth number and the staircase is not. Two quite different shortfall prices often land on the same row, and a small change can move the landing by a whole row. Both behaviours are the arithmetic being honest about a table with seven rows in it.
A worked example
The table as shipped. Seven rows 100 units apart, from 200 to 800, with the chances typed against them.
| Demand | Chance | Cumulative | Contribution to the average |
|---|---|---|---|
| 200 | 5% | 5% | 10 |
| 300 | 10% | 15% | 30 |
| 400 | 20% | 35% | 80 |
| 500 | 25% | 60% | 125 |
| 600 | 20% | 80% | 120 |
| 700 | 12% | 92% | 84 |
| 800 | 8% | 100% | 64 |
The chances come to 100%, so no normalising is needed on the shipped table. The average demand is units, and 513 is not one of the seven outcomes. Demand will be 200 or 300 or 400 or 500 or 600 or 700 or 800. It will never be 513.
The two prices. A unit costs $180 and a leftover recovers $60, so a leftover costs dollars. A unit short is expedited and waited for, at $480. The ratio is .
The staircase, all seven rows.
| Quantity | Left over | Short | What the leftovers cost | What the shortfalls cost | The bill | The next step |
|---|---|---|---|---|---|---|
| 200 | 0 | 313 | $0 | $150,240 | $150,240 | −$45,000 |
| 300 | 5 | 218 | $600 | $104,640 | $105,240 | −$39,000 |
| 400 | 20 | 133 | $2,400 | $63,840 | $66,240 | −$27,000 |
| 500 | 55 | 68 | $6,600 | $32,640 | $39,240 | −$12,000 |
| 600 | 115 | 28 | $13,800 | $13,440 | $27,240 | $0 |
| 700 | 195 | 8 | $23,400 | $3,840 | $27,240 | +$7,200 |
| 800 | 287 | 0 | $34,440 | $0 | $34,440 | no step |
Where the ratio lands, and the tie it produces. The first cumulative chance at or above 0.80 is the one against 600 units, and it is 0.80 exactly. That equality is why 600 and 700 cost the same: the step between them is zero. On these numbers the arithmetic has no preference between two quantities 100 units apart, and the difference between them is 80 more units of stock on average against 20 fewer units of shortfall. That is not a defect of the model. It is the model finishing its work and handing the decision back.
What the average costs. The row nearest the average demand is 500 units, and it costs $39,240 against $27,240 at the two rows the ratio reaches. That is $12,000 more, or 44% more, for picking the number a forecast hands you. The forecast itself, read as a certainty, predicts a bill of nothing at all: buy 513, sell 513. No quantity on the table costs nothing, and the lowest bill available is $27,240.
How far the prices can move before the row does. With a leftover at $120, the row the ratio lands on stays at 600 units for every shortfall price above dollars and up to dollars. A shortfall price anywhere between $181 and $480 lands on the same row, a range of more than two and a half times, which is a useful thing to know before a meeting spends an hour on whether it is $300 or $400.
Service, which is the output rather than the input. The chance of covering demand entirely is the cumulative chance itself: 35% at 400 units, 60% at 500, 80% at 600. The share of demand met from stock is one minus the expected shortfall over the average: at 400, at 500, at 600. Nobody typed a service level and two of them came out anyway, which is the sentence that connects this page to both of its neighbours.
The same average, three shapes.
| Shape | Chances, 200 to 800 | Average | Row the ratio lands on | The bill there |
|---|---|---|---|---|
| As typed | 5, 10, 20, 25, 20, 12, 8 | 513 | 600 | $27,240 |
| Tighter | 2, 6, 20, 38, 21, 9, 4 | 513 | 600 | $20,640 |
| A longer tail | 5, 10, 22, 26, 16, 9, 12 | 513 | 700 | $29,640 |
Same average, same two prices, three different bills and two different rows. Under Tighter the cumulative runs 2, 8, 28, 66, 87, 96, 100, so 0.80 still lands on 600 and the bill there is dollars: $6,600 less for knowing more, with nothing else changed. Under A longer tail the cumulative runs 5, 15, 37, 63, 79, 88, 100, so 0.80 clears 600 by a single point and lands on 700, where the bill is dollars.
What this does not model
Anything that recovers value from a leftover other than at the price typed, including a second season, a transfer to another site or a warranty pool. A shortfall that costs differently depending on how short you are or how long it lasts. Substitution, where a customer takes something else and the shortfall costs less than typed, and its opposite, where a shortfall loses the account. Any chance to react partway through with a second, smaller commitment, which changes the answer and generally lowers the first order. Quantity breaks, minimum order quantities, pallet and container rounding, and the supplier's own lot size. Where the seven chances came from, which is the input carrying the most weight and the least evidence: a short history misses the tail, a trend makes old periods incomparable, and a judgement folded into a rounded forecast cannot be argued with. And the largest omission of all: a cost taken from an allocation rather than from cash moves the arithmetic for reasons that have nothing to do with the decision.
Check it yourself
The average demand is 513 units in all three tables, the two prices never move, and the row the ratio lands on goes 600, 600, 700 while the bill at that row goes $27,240, $20,640, $29,640. Nothing about the average changed and the answer did. Units sold plus units left over are , and units sold plus units short are . At 600 units the table says 485 units sold, 115 left over and 28 short, and 485 plus 115 is the 600 you ordered while 485 plus 28 is the 513 you expected to want.
- Basis
- Each bill is the average across the seven outcomes in your table, weighted by the chances you typed.
- Assumptions
- One order. No reordering inside the window. Leftovers cost what you typed, shortfalls cost what you typed.
- Model version
- 1.0
This page works out the consequences of numbers you type and does not recommend a quantity. The arithmetic is standard single period newsvendor algebra, stated in the page's own words: the books named below are described and cited, and no table, definition or wording is reproduced from any of them. Its weakest input is the seven chances, which are an estimate, and no result here is more accurate than that estimate. Sources named for this lesson are Cachon and Terwiesch, Matching Supply with Demand, 4th edition; Chopra, Supply Chain Management, 7th global edition, chapter 13; Hillier and Lieberman, Introduction to Operations Research, sections 7.5 and 13.9; and Savage, The Flaw of Averages.
Related
- Service level: what the last percent of it costsMoving the target from 90% to 95% adds one step of buffer. Moving it from 99% to 99.9% adds more than twice that step, for a tenth of the risk, and most policies were set without anybody drawing the curve.Interactive lesson · 4 min
- Reorder point: which of the four stock numbers the policy comparesA reorder point covers demand over the lead time and nothing else, and the same 95% names two different points depending on whether you said cycle service or fill rate. Replay your own transactions and watch on hand, on order, net stock and inventory position separate, because only one of the four is what the policy compares.Calculator · 4 min