Expected Leftover Inventory

When you stock products before demand is known, some demand outcomes leave unsold units at the end of the selling period. Expected leftover inventory summarizes these possible leftovers using their probabilities. You can use it to describe the average physical stock remaining across many comparable periods, even though the leftover in any one period may differ substantially.

Start with leftover in one outcome

Suppose QQ units are available at the beginning of a selling period and demand is DD units. Assume there is no replenishment during the period, each sale uses one unit, and stock changes only through sales. Measure leftover immediately after selling ends, before any disposal or return to a supplier.


Leftover inventory is the number of available units that remain unsold at the end of the period:


L(D)=max⁡(Q−D,0)L(D)=\max(Q-D,0)


The maximum function sets negative differences to zero. If demand exceeds available stock, you have no units left; excess demand does not create negative physical inventory.


Demand outcome

Leftover inventory

Interpretation

D<QD<Q

Q−DQ-D

Some available units remain unsold.

D=QD=Q

00

Demand exactly uses the available stock.

D>QD>Q

00

All available units sell.


A graph shows leftover inventory decreasing as demand rises and remaining at zero once demand reaches available stock.


The downward section of the graph applies while stock remains available. Beyond D=QD=Q, the graph stays at zero. This flat section is essential when you average across uncertain demand outcomes.

Weight each outcome by its probability

Expected leftover inventory is the probability-weighted average of the leftover quantities. For possible demand values d1,…,dnd_1,\ldots,d_n with probabilities p1,…,pnp_1,\ldots,p_n:


E[L]=∑i=1npimax⁡(Q−di,0),∑i=1npi=1\mathbb{E}[L]=\sum_{i=1}^{n}p_i\max(Q-d_i,0), \qquad \sum_{i=1}^{n}p_i=1


First calculate leftover separately for every demand outcome. Next multiply each leftover quantity by its probability. Finally add the weighted quantities. Probabilities have no units, so the result has the same units as the inventory.


For example, suppose you stock 5050 units and demand is equally likely to be 2020 or 8080 units. The corresponding leftovers are 3030 and 00 units:


E[L]=0.50(30)+0.50(0)=15 units\mathbb{E}[L]=0.50(30)+0.50(0)=15\text{ units}



Expected leftover can be fractional even when individual products are indivisible. A result such as 8.48.4 units describes an average across comparable repetitions, not a prediction that a single period will end with part of a product.

Interpret the average carefully

Expected leftover is different from leftover calculated at average demand. In the example, mean demand is 5050 units, so subtracting mean demand from stock gives zero. Expected leftover is nevertheless 1515 units because the high-demand outcome cannot contribute a negative leftover.


In general:


E[max⁡(Q−D,0)]≠max⁡(Q−E[D],0)\mathbb{E}[\max(Q-D,0)]\ne\max(Q-\mathbb{E}[D],0)


Equality can occur in particular cases, but it is not a general calculation rule.



Keep the selling period and measurement point consistent when comparing results. Expected leftover counts physical units; it does not by itself give their monetary value or identify the best stock quantity. Its usefulness also depends on whether the demand outcomes and probabilities reasonably describe the situation.


What to remember

  • For each demand outcome, leftover is max⁡(Q−D,0)\max(Q-D,0).
  • Multiply each leftover quantity by its probability, then add.
  • Expected leftover is an average quantity, not the probability of leftover.
  • Subtracting average demand from stock generally gives a different result.

Example: Unsold lunch bowls

A café prepares 70 lunch bowls before opening. It cannot prepare additional bowls during lunch, and each sale uses one bowl. Leftover is measured after lunch sales, before disposal. Demand has the following distribution:


Demand (bowls)

Probability

40

0.20

60

0.50

90

0.30


The demand distribution is assumed to remain the same if the café changes its starting stock.


a) Find the leftover for each demand outcome and calculate expected leftover inventory.


Use the nonnegative difference between available stock and demand:


L(D)=max⁡(70−D,0)L(D)=\max(70-D,0)


Calculate leftover and its probability-weighted contribution for each outcome:

  • Demand of 40 bowls: leftover is 70−40=3070-40=30 bowls, contributing 0.20(30)=60.20(30)=6 bowls.
  • Demand of 60 bowls: leftover is 70−60=1070-60=10 bowls, contributing 0.50(10)=50.50(10)=5 bowls.
  • Demand of 90 bowls: leftover is 00 bowls, contributing 0.30(0)=00.30(0)=0 bowls.

Demand of 90 bowls uses all 70 available bowls. The remaining demand does not produce negative leftover. Adding the weighted quantities gives:


E[L]=6+5+0=11 bowls\mathbb{E}[L]=6+5+0=11\text{ bowls}


The expected leftover is 11 bowls per lunch period under this demand forecast.


b) A supervisor proposes subtracting mean demand from 70. Calculate that result and explain why it differs from expected leftover.


Calculate mean demand by weighting each demand quantity:


E[D]=0.20(40)+0.50(60)+0.30(90)=8+30+27=65 bowls.\begin{aligned} \mathbb{E}[D]&=0.20(40)+0.50(60)+0.30(90)\\ &=8+30+27\\ &=65\text{ bowls}. \end{aligned}


Subtracting this mean from starting stock gives:


70−65=5 bowls70-65=5\text{ bowls}


This result is 5 bowls, compared with the correct expected leftover of 11 bowls. The shortcut averages the uncapped differences, including ________ bowls when demand is 90. That negative contribution is 0.30(−20)=−60.30(-20)=-6 bowls. Replacing it with the physically correct zero increases the expectation from 5 to 11 bowls.


c) Calculate expected leftover if the café instead prepares 80 bowls. How much does expected leftover increase?


Recalculate leftover using 80 available bowls while keeping the demand probabilities unchanged:

  • Demand of 40 bowls: leftover is 80−40=4080-40=40 bowls, contributing 0.20(40)=80.20(40)=8 bowls.
  • Demand of 60 bowls: leftover is 80−60=2080-60=20 bowls, contributing 0.50(20)=100.50(20)=10 bowls.
  • Demand of 90 bowls: leftover is 00 bowls, contributing 0.30(0)=00.30(0)=0 bowls.

The new expectation and its increase are:


E[L80]=8+10+0=18 bowls,ΔE[L]=18−11=7 bowls.\begin{aligned} \mathbb{E}[L_{80}]&=8+10+0=18\text{ bowls},\\ \Delta\mathbb{E}[L]&=18-11=7\text{ bowls}. \end{aligned}


Expected leftover becomes 18 bowls, an increase of 7 bowls. All ten additional bowls remain unsold when demand is 40 or 60, which together have probability ________. They all sell when demand is 90, confirming the increase of 0.70(10)=70.70(10)=7 bowls.

A bakery's demand forecast gives an expected leftover inventory of 12 muffins per day when it starts each day with the same stock. Which interpretation is correct?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A pastry stall discards unsold pastries each evening and starts each morning with fresh stock. Its expected leftover inventory is 6.5 pastries on each of 40 operating days. Leftover amounts on different days may be related.


Complete the statements about expected cumulative leftover inventory, the mean total number of unsold pastries discarded across the season. For the second blank, enter requires or does not require.


The expected cumulative leftover inventory is pastries. Adding the daily expected leftovers independence between days.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A market stall begins a morning with 90 sandwiches and receives no additional stock. Each sale uses one sandwich. Morning demand has the following distribution:


Demand (sandwiches)

Probability

50

0.25

80

0.50

120

0.25


Find expected leftover inventory immediately after the morning's sales, before disposal. Give your answer in sandwiches, to one decimal place.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice