Coupon collector's problem | |||
---|---|---|---|
Parameters | – number of faces on die | ||
Support | – rolls taken for all faces to appear | ||
PMF | |||
CDF | |||
Mean | |||
Variance | |||
Skewness | |||
Excess kurtosis | |||
MGF | |||
CF | |||
PGF |
In probability theory, the coupon collector's problem refers to mathematical analysis of "collect all coupons and win" contests. It asks the following question: if each box of a given product (e.g., breakfast cereals) contains a coupon, and there are n different types of coupons, what is the probability that more than t boxes need to be bought to collect all n coupons? An alternative statement is: given n coupons, how many coupons do you expect you need to draw with replacement before having drawn each coupon at least once? The mathematical analysis of the problem reveals that the expected number of trials needed grows as . [a] For example, when n = 50 it takes about 225 [b] trials on average to collect all 50 coupons. Sometimes the problem is instead expressed in terms of an n-sided die.
Let time T be the number of draws needed to collect all n coupons, and let ti be the time to collect the i-th coupon after i − 1 coupons have been collected. Then . Think of T and ti as random variables. Observe that the probability of collecting a new coupon is . Therefore, has geometric distribution with expectation . By the linearity of expectations we have:
Here Hn is the n-th harmonic number. Using the asymptotics of the harmonic numbers, we obtain:
where is the Euler–Mascheroni constant.
Using the Markov inequality to bound the desired probability:
The above can be modified slightly to handle the case when we've already collected some of the coupons. Let k be the number of coupons already collected, then:
And when then we get the original result.
Using the independence of random variables ti, we obtain:
since (see Basel problem).
Bound the desired probability using the Chebyshev inequality:
Let the random variable X be the number of dice rolls performed before all faces have occurred.
The subpower is defined , where is a Stirling number of the second kind. [1]
Sequences of die rolls are functions counted by , while surjections (that land on each face at least once) are counted by , so the probability that all faces were landed on within the x-th throw is . By the recurrence relation of the Stirling numbers, the probability that exactly x rolls are needed is
Replacing with in the probability generating function produces the o.g.f. for . Using the partial fraction decomposition , we can take the expansion
revealing that for ,
Given an o.g.f. f, since , a variation of the binomial transform is . (Specifically, if , .)
Rewriting the binomial coefficient via the gamma function and expanding as the of the polygamma series (in terms of generalised harmonic numbers), we find , so
which can also be written with the falling factorial and Lah numbers as
The raw moments of the distribution can be obtained from the falling moments via a Stirling transform; due to the identity , this provides
A stronger tail estimate for the upper tail be obtained as follows. Let denote the event that the -th coupon was not picked in the first trials. Then
Thus, for , we have . Via a union bound over the coupons, we obtain
{{cite book}}
: CS1 maint: location missing publisher (link)