Coupon collector's problem
From Wikipedia, the free encyclopedia
In probability theory, the coupon collector's problem describes the "collect all coupons and win" contests. It pertains to the probability that in a process of collecting random n coupons with replacement more than t sample trials is needed. The mathematical analysis of the problem leads to the number of samples growing as O(n×log(n)). For example, when n = 50 it takes about 225 samples to collect all 50 coupons.
Contents |
[edit] Understanding the problem
The key to solving the problem is understanding that it takes very little time to collect the first few coupons. On the other hand, it takes a long time to collect the last few coupons. In fact, for 50 coupons, it takes on average 50 trials to collect the very last coupon after the other 49 coupons have been collected. This is why the expected time to collect all coupons is much longer than 50. The idea now is to split the total time into 50 intervals where the expected time can be calculated.
[edit] Solution
[edit] Calculating the expectation
Let T be the time to collect all n coupons, and let ti be the time to collect i-th coupons after the i − 1 coupons have been collected. Think of T and ti as random variables. Observe that the probability of collecting a new coupon given i − 1 coupons is pi = (n − i + 1)/n. Therefore, ti has geometric distribution with expectation 1/pi. By the linearity of expectations we have:
Here Hn is the harmonic number. Using the asymptotics of the harmonic numbers, we obtain:
where
is the Euler–Mascheroni constant.
Now one can use the Markov inequality to bound the desired probability:
[edit] Calculating the variance
Using the independence of random variables ti, we obtain:
where the last equality is the value of the Riemann zeta function known as the Basel problem.
Now one can use the Chebyshev inequality to bound the desired probability:
[edit] Connection to probability generating functions
Another, combinatorial technique, can also be used to resolve the problem: Coupon collector's problem (generating function approach).
[edit] See also
[edit] References
- Paul Erdős and Alfréd Rényi, On a classical problem of probability theory, Magyar Tud. Akad. Mat. Kutato Int. Kozl, 1961.
- William Feller, An introduction to Probability Theory and its Applications, 1957.
- Michael Mitzenmacher and Eli Upfal, Probability and Computing: Randomized Algorithms and Probabilistic Analysis, Cambridge University Press, 2005
- Donald J. Newman and Lawrence Shepp, The Double Dixie Cup Problem, The American Mathematical Monthly, Vol. 67, No. 1 (Jan., 1960), pp. 58-61.
- Philippe Flajolet, Danièle Gardy, Loÿs Thimonier Birthday paradox, coupon collectors, caching algorithms and self-organizing search., Discrete Applied Mathematics, Vol. 39, (1992), pp. 207-229
[edit] External links
- "Coupon Collector Problem" by Ed Pegg, Jr., The Wolfram Demonstrations Project. Mathematica package.
- Coupon Collector Problem, a simple Java applet.
- How Many Singles, Doubles, Triples, Etc., Should The Coupon Collector Expect?, a short note by Doron Zeilberger.






