How much should you stock?

One order, before demand is known. Too few and you miss sales, too many and you eat the leftovers. The optimal order balances the two — and is usually not the average demand.

Each unit sells for€, costs€to stock, and salvagesWhat you recover per unsold unit — clearance price, return credit, or zero if it's a total loss. for€if unsold.
Demand averagesunits, give or take.
Running out costs €30/unit Ā· overstocking costs €10/unit → stock to the 75% critical fractileThe service level where the expected cost of stocking one more unit equals its expected benefit. At this fraction, demand is satisfied — the next unit's gain just breaks even with its risk of going unsold.
240 units

Covers demand about 75% of the time (zĀ = +0.67). Stocking to the average (200) would leave you 40 units over.

240Optimal order Q*
75%Service level
€5,2kExpected profit
€5,6k
20100300avg 200Q* 240380
Service levelOrder qtyExpected profit
50%200
€5k
75%optimal240
€5,2k
90%277
€5,1k
95%299
€5k
99%340
€4,6k

When stockouts hurt more than leftovers (Cu > Co) the optimal order sits above average demand — you deliberately over-order to guard against missed sales. When leftovers hurt more, it sits below. The optimum is demand at the critical fractile, not the mean.

the newsvendor model Ā· Q* at the critical fractile