CS Wiki | Cedric Schwyter

Coupon-Collector Problem

Coupon-Collector Problem

Motivation

We are collecting cards. There are total different cards. We can buy cards in packets, where each card has an equal probability of landing in a packet. We want to find how many packets we are expected to buy in order to have a full collection of all cards.

Solution

Let be the number of purchases until completion of the collection. We partition the time into phases: let phase denote the number of steps from obtaining the -th card (exclusive) up to obtaining the -th card (inclusive).

Let be the number of purchases in phase . Clearly, it then holds that . Phase concludes when we receive one of the remaining cards which we do not yet possess. Then, is geometrically distributed with parameter and expected value .

By linearity of the expected value it follows that

where denotes the -th harmonic number*.

This project is maintained by D3PSI