I apologize in advance if I'm not explaining this well. I'm trying to solve a problem I'm having at work but I can't think of the mathematical formula needed in order to solve it. Rather than bore you with technical jargon related to my job, I've changed the scenario to a baseball card collection for simplicity sake:
Problem: I want to determine how many US quarters I will need in order to have the highest probability of completing a unique set of baseball cards. I already have 30 of the 40 cards within the set but each card I receive is randomly selected from the 40 available in the set.
- 1 US dollar = 4 US quarters
- I already have 30 of the 40 cards
- Each card costs 1 dollar (i.e. 4 quarters)
- I want a unique set of cards BUT, each time I pay 1 dollar to receive a card, it can be any one of the 40 cards within the set
So, seeing as how I have 30 of the 40 cards of the current set, my chances of receiving card #31 is 1 in 4. Therefore, I would need 4 dollars (or 16 quarters) to ensure the highest probability that I get a unique card #31.
Card #32 however, the odds would be 9/40. Card #33, the odds would be 8/40, or 1/5. Etc.
So, I'm just trying to write up a formula that would reflect the total number of US quarters needed to have the highest probability of completing a unique set of cards in this scenario.
Since you have 30 of the 40 possible coupons already, the probability that the next coupon you buy will be a new one is $10/40$; so the expected number of coupons you must buy before getting a new one is $40/10$.
Once you have your first new coupon, the probability that your next coupon will be one you don't have is $9/40$, so the expected number of coupons you must buy to get a second new coupon is $40/9$.
Continuing in this way, we see that the expected number of coupons you must buy in order to get one you don't already have is $40/10, 40/9, 40/8, \dots , 40/1$. So in all, you can expect to buy $$\frac{40}{10} + \frac{40}{9} +\frac{40}{8} +\dots +\frac{40}{1} = 40 \left( 1 + \frac{1}{2} + \frac{1}{3} + \dots + \frac{1}{10} \right) = 117.1587302 $$ coupons in order to complete the set.