# Coupon collector's problem

The coupon collector's problem is a classical problem in probability theory that asks how many independent draws, made with replacement from a set of n equally likely coupon types, are needed on average to obtain at least one of every type. The answer is \( n H_n \), where \( H_n = 1 + \tfrac{1}{2} + \cdots + \tfrac{1}{n} \) is the nth harmonic number, which grows as \( n \log n \).<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup> The problem is a standard example in the analysis of randomized algorithms and has been studied by probabilists since the eighteenth century.<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup>

| Key fact | Detail |
|---|---|
| Expected draws (uniform case) | \( \mathbb{E}[T] = n H_n \approx n \ln n + 0.5772\,n \), where \( H_n \) is the nth harmonic number<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup> |
| Tail bound | The probability of needing more than \( n \log n + cn \) draws is at most \( e^{-c} \)<sup>[2](https://www.cl.cam.ac.uk/teaching/2122/RandAlgthm/lec1_intro.pdf)</sup> |
| Limit distribution | The normalized completion time converges to a Gumbel distribution<sup>[3](https://link.springer.com/article/10.1007/s10959-025-01417-w)</sup> |
| m complete sets | \( n(\log n + (m-1)\log\log n + o(1)) \) draws for m fixed and n large; the first set costs \( n \log n \), all further sets together cost only \( n \log\log n \)<sup>[4](https://faculty.wharton.upenn.edu/wp-content/uploads/2012/04/Double-dixie-cup-problem.pdf)</sup> |
| Unequal probabilities | No simple closed form for the expectation; the rarest coupon dominates the waiting time<sup>[5](https://quantmemo.com/concepts/coupon-collector-unequal-probabilities)</sup> |
| Multi-draw variant | Drawing d distinct coupons per run, collecting m sets takes \( \tfrac{n\log n}{d} + \tfrac{n}{d}(m-1)\log\log n + O(mn) \) runs on average<sup>[6](https://arxiv.org/abs/1010.5608)</sup> |
| History | First appearance in De Moivre's *De Mensura Sortis* (1708); unequal probabilities first treated by H. von Schelling (1954)<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup> |

## Problem statement

Coupons are collected one at a time from a population containing n distinct types, and each draw is independent and identically distributed, that is, a draw with replacement. The process stops when all n types have been collected, and the total number of draws Y is recorded.<sup>[7](https://www.cambridge.org/core/journals/journal-of-applied-probability/article/generalised-coupon-collector-problem/4D5F06A32A7C98F87277BC33E49CE5AE)</sup> In the classic version each type is equally likely, with probability \( 1/n \) per draw.<sup>[7](https://www.cambridge.org/core/journals/journal-of-applied-probability/article/generalised-coupon-collector-problem/4D5F06A32A7C98F87277BC33E49CE5AE)</sup>

The problem is equivalent to throwing balls uniformly and independently into n bins and asking how many balls are needed until no bin is empty.<sup>[8](https://tcs.nju.edu.cn/wiki/index.php/Randomized_Algorithms_%28Spring_2010%29/Balls_and_bins)</sup> The literature also records the same process under names including capture–recapture, the committee problem, matrix occupancy, and random allocation.<sup>[9](https://www.sciencedirect.com/science/article/pii/S0378375818300363)</sup>

## The expected waiting time

**Stage decomposition.** Write the total \( T = X_1 + X_2 + \cdots + X_n \), where \( X_i \) is the number of draws needed to go from \( i-1 \) to i distinct types. The first draw always yields a new type, so \( X_1 = 1 \). Once i distinct types are held, a draw is new with probability \( (n-i+1)/n \), so \( X_i \) follows a geometric distribution with that success probability and expectation \( n/(n-i+1) \).<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup> The stage variables are independent, so by linearity of expectation<sup>[10](https://www.cs.utexas.edu/~ecprice/courses/randomized/fa21/scribe/lec5.pdf)</sup>

\[ \mathbb{E}[T] = \sum_{i=1}^{n} \frac{n}{n-i+1} = n \sum_{k=1}^{n} \frac{1}{k} = n H_n. \]

Since \( H_n \approx \ln n + \gamma \), with \( \gamma \approx 0.5772 \) the [Euler–Mascheroni constant](https://www.edgepedia.org/euler-mascheroni-constant), the expectation is about \( n \ln n \).<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup>

**Concentration.** The completion time is tightly concentrated around its mean. A union-bound argument shows that the probability of needing more than \( n \log n + cn \) draws is at most \( e^{-c} \), so a constant multiple of n beyond \( n \log n \) suffices with high probability.<sup>[2](https://www.cl.cam.ac.uk/teaching/2122/RandAlgthm/lec1_intro.pdf)</sup> The same \( n \ln n \) scale appears throughout algorithm analysis, for example in the cover time of random walks on the complete graph and in the number of edges needed for graph sparsification.<sup>[11](https://cs.uwaterloo.ca/~r5olivei/courses/2023-spring-cs466/lecture-notes/lecture4/)</sup>

**Limit distribution.** After an appropriate normalization, the time to collect all coupons converges in distribution to a scaled Gumbel random variable, the extreme-value distribution that also governs maxima of independent samples.<sup>[3](https://link.springer.com/article/10.1007/s10959-025-01417-w)</sup> This Gumbel limit recurs across many variants of the problem.<sup>[3](https://link.springer.com/article/10.1007/s10959-025-01417-w)</sup>

## History

The problem first appeared in 1708 in Abraham de Moivre's *De Mensura Sortis*, and further early results, in the case of constant probabilities, are due to Laplace and Euler.<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup> In 1954 H. von Schelling first obtained the waiting time to complete a collection when the coupon probabilities are unequal, and in 1960 Donald J. Newman and [Lawrence Shepp](https://www.edgepedia.org/lawrence-shepp) calculated the waiting time to complete two collections in the equal case.<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup> Newman and Shepp's "double Dixie cup" paper answered a question posed by W. Weissblum about how long two children collecting cooperatively need to obtain two complete sets of n pictures.<sup>[4](https://faculty.wharton.upenn.edu/wp-content/uploads/2012/04/Double-dixie-cup-problem.pdf)</sup> Erdős and Rényi treated a related classical problem in a 1961 paper in the publications of the [Hungarian Academy of Sciences](https://www.edgepedia.org/hungarian-academy-of-sciences)' mathematics institute.<sup>[12](https://real.mtak.hu/201134/)</sup>

## Collecting m complete sets

Newman and Shepp showed that for m fixed and n large, the expected number of purchases to complete m full sets is

\[ \mathbb{E}[T_m] = n\bigl(\log n + (m-1)\log\log n + o(1)\bigr). \]

Although the first set costs \( n \log n \), all further sets together cost only \( n \log\log n \).<sup>[4](https://faculty.wharton.upenn.edu/wp-content/uploads/2012/04/Double-dixie-cup-problem.pdf)</sup> Later work by Doumas and Papanicolaou extended the asymptotics of \( T_m(N) \) and its variance to the general case of unequal coupon probabilities, including distributions such as the generalized Zipf law.<sup>[13](https://www.researchgate.net/publication/241681078_The_Coupon_Collector%27s_Problem_Revisited_Asymptotics_of_the_Variance)</sup>

## Unequal probabilities

When coupon types arrive with unequal probabilities \( p_k \), the problem becomes harder even though it is more realistic.<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup> The expected time to complete the set has no simple closed form, and it is driven disproportionately by the rarest coupon; a very rare coupon can push the expected number of purchases toward infinity.<sup>[5](https://quantmemo.com/concepts/coupon-collector-unequal-probabilities)</sup><sup> • </sup><sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup> Exact formulas exist but are computationally heavy for large collections, so approximation formulas are used in practice.<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup>

Optimization results characterize which distributions are easiest and hardest. The almost-uniform distribution, in which all non-null coupons have the same drawing probability, stochastically minimizes the expected time to collect a fixed number of distinct coupons, while within a closed set of distributions the distribution with all entries but one at the smallest possible value stochastically maximizes that time.<sup>[14](https://arxiv.org/abs/1504.03878)</sup><sup> • </sup><sup>[15](https://arxiv.org/abs/1402.5245)</sup> General asymptotic estimates for arbitrary coupon probabilities were developed in the 1990s.<sup>[16](https://www.sciencedirect.com/science/article/pii/0377042795000208)</sup>

## Generalizations

**Multi-draw models.** In one generalized version the collector receives d distinct coupons per run and keeps the one she has the least of so far; Weiyu Xu and Ao Kevin Tang showed that collecting m sets then takes \( \tfrac{n\log n}{d} + \tfrac{n}{d}(m-1)\log\log n + O(mn) \) runs on average as \( n \to \infty \), and gave an exact algorithm for any finite case.<sup>[6](https://arxiv.org/abs/1010.5608)</sup> Later work on two multi-draw models with different retention rules, keeping all new coupons versus keeping the least-collected coupon, derived full asymptotic expansions, showed that in both models the variance behaves as \( \tfrac{\pi^2}{6}\tfrac{N^2}{d^2} \), and confirmed that the limiting law is standard Gumbel with different normalizations for the two rules.<sup>[17](https://arxiv.org/abs/2607.01463)</sup>

**Super-coupons.** In another generalization, each round draws r coupons from n and marks all their s-subsets ("super-coupons") as collected; the time to collect all \( \binom{n}{s} \) super-coupons satisfies

\[ \mathbb{E}T^{(r,s)} = \frac{\binom{n}{s}\log\binom{n}{s}}{\binom{r}{s}}(1+o(1)), \]

with a Gumbel limit under the corresponding normalization.<sup>[3](https://link.springer.com/article/10.1007/s10959-025-01417-w)</sup> When \( s = 1 \) this reduces to the classical problem with time scaled by a factor of r.<sup>[3](https://link.springer.com/article/10.1007/s10959-025-01417-w)</sup>

**Quotas and group drawings.** The problem extends to collecting \( m_i \) copies of coupon i under non-uniform distributions, with upper and lower bounds giving limiting asymptotics for random quotas.<sup>[18](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v20i2p33)</sup> Group drawings, in which coupons arrive in batches, and random sample sizes have also been studied.<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup><sup> • </sup><sup>[19](https://www.researchgate.net/publication/225402602_A_Survey_of_the_Coupon_Collector%27s_Problem_with_Random_Sample_Sizes)</sup>

## Applications

**Stable marriage.** The randomized proposal algorithm for the stable marriage problem terminates once every woman has received a proposal, and the number of random proposals needed for this is exactly a coupon collector question: after about \( n \ln n \) proposals every woman has been proposed to and a stable marriage results.<sup>[20](https://people.eecs.berkeley.edu/~jfc/cs174lecs/lec8/lec8.html)</sup>

**Caching and monitoring.** The problem is related to the cache fault problem in electrical engineering and to electrical fault detection.<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup> Work on the generalized coupon collector with unequal popularity derives an asymptotic relation between the expected waiting time for a partial collection and the miss rate of an LRU cache.<sup>[21](https://arxiv.org/abs/1706.05250)</sup> Worst-case analysis of streaming algorithms in network monitoring motivated the optimization results for arbitrary distributions.<sup>[14](https://arxiv.org/abs/1504.03878)</sup>

**Ecology and biology.** The coupon collector urn model with unequal probabilities is used in ecology and evolution to describe how many hosts are parasitized after a given sampling effort, and to solve the inverse problem of estimating sampling effort; the speed at which new items are discovered depends on the entire shape of the sampling distribution.<sup>[22](https://pmc.ncbi.nlm.nih.gov/articles/PMC5332560/)</sup> The problem is also used in biology to estimate the number of species of animals.<sup>[1](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)</sup>

## References

1. [Marco Ferrante and Monica Saltalamacchia (2014). The Coupon Collector's Problem. MATerials MATemàtics, Universitat Autònoma de Barcelona.](https://mat.uab.es/~matmat/ebook2014/V2014n02-ebook.pdf)
2. [Thomas Sauerwald. Randomised Algorithms, Lecture 1, University of Cambridge.](https://www.cl.cam.ac.uk/teaching/2122/RandAlgthm/lec1_intro.pdf)
3. [On a Generalisation of the Coupon Collector Problem, Journal of Theoretical Probability (2025).](https://link.springer.com/article/10.1007/s10959-025-01417-w)
4. [Donald J. Newman and Lawrence Shepp (1960). The Double Dixie Cup Problem. The American Mathematical Monthly 67(1), 58–61.](https://faculty.wharton.upenn.edu/wp-content/uploads/2012/04/Double-dixie-cup-problem.pdf)
5. [Coupon Collecting With Unequal Odds, Explained, Quant Memo.](https://quantmemo.com/concepts/coupon-collector-unequal-probabilities)
6. [Weiyu Xu and Ao Kevin Tang (2010). A Generalized Coupon Collector Problem. arXiv:1010.5608.](https://arxiv.org/abs/1010.5608)
7. [The Generalised Coupon Collector Problem, Journal of Applied Probability, Cambridge Core.](https://www.cambridge.org/core/journals/journal-of-applied-probability/article/generalised-coupon-collector-problem/4D5F06A32A7C98F87277BC33E49CE5AE)
8. [Randomized Algorithms (Spring 2010): Balls and bins, TCS Wiki, Nanjing University.](https://tcs.nju.edu.cn/wiki/index.php/Randomized_Algorithms_%28Spring_2010%29/Balls_and_bins)
9. [Asymptotics of multivariate contingency tables with fixed marginals, Journal of Computational and Applied Mathematics.](https://www.sciencedirect.com/science/article/pii/S0378375818300363)
10. [CS 388R Randomized Algorithms, Lecture 5 scribe notes, University of Texas at Austin (Eric Price).](https://www.cs.utexas.edu/~ecprice/courses/randomized/fa21/scribe/lec5.pdf)
11. [Rafael Oliveira. Balls and Bins, CS 466 lecture notes, University of Waterloo.](https://cs.uwaterloo.ca/~r5olivei/courses/2023-spring-cs466/lecture-notes/lecture4/)
12. [Pál Erdős and Alfréd Rényi (1961). On a Classical Problem of Probability Theory. Repository of the Academy's Library.](https://real.mtak.hu/201134/)
13. [The Coupon Collector's Problem Revisited: Asymptotics of the Variance, ResearchGate.](https://www.researchgate.net/publication/241681078_The_Coupon_Collector%27s_Problem_Revisited_Asymptotics_of_the_Variance)
14. [Optimization results for a generalized coupon collector problem. arXiv:1504.03878.](https://arxiv.org/abs/1504.03878)
15. [New results on a generalized coupon collector problem using Markov chains. arXiv:1402.5245.](https://arxiv.org/abs/1402.5245)
16. [General asymptotic estimates for the Coupon Collector Problem, Journal of Computational and Applied Mathematics 67(2), 277–289 (1996).](https://www.sciencedirect.com/science/article/pii/0377042795000208)
17. [Aristides V. Doumas and S. Spektor. Two Multi-Draw Coupon Collector models with different retention rules. arXiv:2607.01463.](https://arxiv.org/abs/2607.01463)
18. [Nathan B. Shank and Hannah Yang (2013). Coupon Collector Problem for Non-Uniform Coupons and Random Quotas. The Electronic Journal of Combinatorics 20(2), #P33.](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v20i2p33)
19. [A Survey of the Coupon Collector's Problem with Random Sample Sizes, ResearchGate.](https://www.researchgate.net/publication/225402602_A_Survey_of_the_Coupon_Collector%27s_Problem_with_Random_Sample_Sizes)
20. [CS174 Lecture 7: Stable Marriages and Coupon Collecting, UC Berkeley.](https://people.eecs.berkeley.edu/~jfc/cs174lecs/lec8/lec8.html)
21. [Christian Berthet (2017). Contributions to the Generalized Coupon Collector and LRU Problems. arXiv:1706.05250.](https://arxiv.org/abs/1706.05250)
22. [The coupon collector urn model with unequal probabilities in ecology and evolution, PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC5332560/)

---
*Topic: Encyclopedia › Physical world and mathematics › Mathematics and statistics › Logic and discrete mathematics › General discrete mathematics and discrete structures › Combinatorics › Combinatorics in other fields › Combinatorics and probability*

*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

*Copyright 2026 EdgeChat AI, a subsidiary of Biostate AI.*

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license
