Probability & Statistics

Coupon Coverage

Each cereal box holds one of N equally likely coupons. After opening n boxes, how many distinct types does the collector expect to hold?

solvedeasy1 min

There are NN distinct coupon types, and each cereal box holds one type, equally likely and independent of the others. After opening nn boxes, how many distinct types does the collector expect to hold?

Reveal solutionHide solution

#An indicator for each type

Let YY count the distinct types among the nn boxes, and let Ii=1I_i = 1 when type ii shows up at least once. A single box misses type ii with probability N1N\tfrac{N-1}{N}, and the boxes are independent, so all nn miss it with probability (N1N)n\left(\tfrac{N-1}{N}\right)^{n} and

E[Ii]=1(N1N)n.(1)\E[I_i] = 1 - \left(\frac{N-1}{N}\right)^{n}. \tag{1}

#Sum the indicators

Every type carries the same expected indicator, so summing over the NN of them,

E[Y]=i=1NE[Ii]=N(1(N1N)n).(2)\E[Y] = \sum_{i=1}^{N} \E[I_i] = N\left(1 - \left(\frac{N-1}{N}\right)^{n}\right). \tag{2}
all N types0153045boxes opened
Each type is absent from a box with probability (N-1)/N, so after n boxes it is missing with probability ((N-1)/N)^n. Summing the presence indicators gives the expected count, which climbs fast at first and then crawls toward the full set.

Coverage races up while types are still plentiful and then crawls, the same scarcity of the final few types that makes a complete set so slow to finish.