Probability of obtaining all members of a group, combination with repitition

In summary, if you want to be a 95% certainty of getting all ten toys, you would have to buy at least 21 packs.
  • #1
Tregowan
3
0
HOW MANY PACKETS DO I HAVE TO BUY?

Hi all,

I'm posing this question because I'm interested in the answer from a
purely theoretical point of view - I'm not going to go out and test
the answer afterwards, and it's not for my homework (I last did
homework more than 10 years ago).

Anyway:

A certain breakfast cereal manufacturer is giving away a free toy
inside each pack. There are ten toys in the series, and I'd like to
collect them all. However, I can't tell which toy I'm going to get
when I buy the pack. Assuming that each toy is distributed equally,
how many packs would I have to buy to be 50%, 70% or 90% sure of
having all ten toys?

Work I've done already:

I can see that in order to calculate the number of possible
combinations of toys I would have after buying n packs of cereal, I
would need the 'combination with repitition' formula. However, I
can't find an expression for the 'successful' combinations, which is
where I'm struggling. I suspect that the number of successful
combinations after buying 10 packs is equal to the number of
permutations, as this will list all the possible combinations with one
of each toy. I'm at a complete loss for buying 11 packs, or 12 or any
n(packs) > n(toys).

I've done some tests with just two toys (start small!):

After buying two packs, the probability of success is 0.5. The two
successful combinations are AB and BA, and the two unsuccessful are AA
and BB (i.e. I get the same toy twice).

After buying three packs, the probability of success rises to 0.75.
There are eight total combinations, but only two are unsuccessful (AAA
and BBB), leaving six successful.

After buying four packs, the probability of success rises to 7/8, as
the number of unsuccessful combinations remains at two, but the number
of successes rises to 14.

Generally, for the two-toy problem, the probability of getting a
successful combination after n turns is equal to (2^n - 2) / 2^n or,
in words, the total number of combinations minus unsuccessful, divided
by the total number of combinations.

But I'm not sure how to proceed, and I can't see how I'd expand to
significantly larger numbers (such as the 10 I posed at the start).
 
Physics news on Phys.org
  • #2
If may help to recast your analysis for two toys in a more mechanical form.

[itex] ( (1/2) A + (1/2) B)^2 = (1/2)^2 A^2 + 2 (1/2)^2 AB + (1/2)^2 B^2 [/itex]

The coefficient of the term AB gives the probability of getting at least one toy of each type.

For 4 purchases, we can look at:

[itex] ((1/2)A + (1/2)B)^4 [/itex] and ask for the sum of the coefficients of the terms [itex] A^3B,A^2B^2,A B^3 [/itex].

As another example, for 3 toys and 5 purchases, we can look at:
[itex] ( (1/3)A + (1/3)B + (1/3)C)^5 [/itex] and sum the coefficients of terms that have at least one power of [itex] A,B[/itex] and [itex] C [/itex] in them.

At least this approach shows that solving your problem amounts to adding up coefficients that appear in a "multinomial expansion".

Perhaps you can find an inductive formula so that if you know the answer for M types of toys and N purchases, you can write the answer for N+1 purchases in terms of it. As you can probably tell, I haven't solved this problem myself. I'm just making an untested suggestion.

The above assumes we are going to buy a certain number of boxes and then open them all rather than open each box before buying another.
 
Last edited:
  • #3
This is a classic problem called the "Coupon Collector's Problem". The following result is from Ross, "A First Course in Probability", 7th edition.

Let's say there are N different toys (or types of coupons) and T is the number of toys/coupons which must be collected to form a complete set. It is awkward to compute the probability that T=n directly, so we start instead with the probability that T>n, i.e. more than n items are required to get a complete set.

[tex]P(T > n) = \sum_{i=1}^{N-1} \binom{N}{i} \left( \frac{N-i}{N} \right) ^n (-1)^{i+1}[/tex]
To find the probability that exactly n toys/coupons must be collected, use

[tex]P(T=n) = P(T > n-1) - P(T>n)[/tex]

The Wikipedia article
http://en.wikipedia.org/wiki/Coupon_collector's_problem
has more information on expected values etc. but, oddly enough, does not give the formula above.
 
  • #4
Thanks to everyone for their responses - especially the "Coupon Collector's Problem" which really does get to grips with the algebra involved. I'm going to look out that book and start reading!

I've taken a slightly different route in the six months since I last posted here, and modeled the problem with a spreadsheet. Unsurprisingly, the results I have obtained for different values of number of toys and number of tries show the same shape as the formula shown above.

My work, starting with toys = tries is found here
http://davechessgames.blogspot.com/2012/01/probabilities-and-free-toys-part-1.html
and
http://davechessgames.blogspot.com/2012/01/probabilities-and-free-toys-part-2.html

And the modelling I've done is here:
http://davechessgames.blogspot.com/2012/01/probabilities-and-free-toys-part-three.html

Finally, I recently discovered an elegant solution which works out the average number of tries (boxes of cereal) you'd have to employ to get the complete set of toys. I'm just writing up my findings and will be back shortly.
 
Last edited by a moderator:
  • #5


Hi there,

This is a very interesting question! In order to calculate the probability of obtaining all ten toys in the series, we can use a combination with repetition formula. However, as you have mentioned, this does not take into account the number of successful combinations.

To calculate the number of successful combinations, we can use the concept of permutations. In your example with two toys, you have correctly identified that there are only two unsuccessful combinations (AA and BB) and six successful combinations (AB, BA, AA, BB, AB, BA). This follows the formula of n! / (n-r)! where n is the number of toys (2) and r is the number of successful combinations (2). In this case, it is 2! / (2-2)! = 2.

For the case of ten toys, the formula would be 10! / (10-10)! = 10! / 0! = 10! = 3,628,800 successful combinations. This means that in order to have a 50% chance of obtaining all ten toys, you would need to buy approximately 3,628,800 packs. For a 70% chance, you would need to buy approximately 5,080,320 packs, and for a 90% chance, you would need to buy approximately 8,648,640 packs.

I hope this helps in understanding the probability of obtaining all members of a group with combination and repetition. Keep in mind that these are just theoretical calculations and the actual number of packs you need to buy may vary. Good luck with your collection!
 

1. What is the definition of combination with repetition?

Combination with repetition refers to the method of selecting a certain number of members from a group, where the order of selection does not matter and members can be selected more than once.

2. How is the probability of obtaining all members of a group calculated?

The probability of obtaining all members of a group with combination and repetition can be calculated by dividing the number of combinations that include all members by the total number of possible combinations.

3. What is the difference between combination with repetition and combination without repetition?

Combination without repetition, also known as combination without replacement, refers to the method of selecting a certain number of members from a group where the order of selection does not matter and members cannot be selected more than once. In contrast, combination with repetition allows for the same member to be selected multiple times.

4. Can the probability of obtaining all members of a group be greater than 1?

No, the probability of obtaining all members of a group cannot be greater than 1. This is because the probability of an event can never exceed the total number of possible outcomes, which is represented by 1.

5. What factors can affect the probability of obtaining all members of a group with combination and repetition?

The factors that can affect the probability of obtaining all members of a group with combination and repetition include the size of the group, the number of members to be selected, and the number of times a member can be selected. Generally, as the size of the group and/or the number of members to be selected increases, the probability of obtaining all members will decrease. Conversely, as the number of times a member can be selected increases, the probability of obtaining all members will also increase.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
842
  • Set Theory, Logic, Probability, Statistics
Replies
11
Views
514
  • Set Theory, Logic, Probability, Statistics
Replies
8
Views
778
  • Set Theory, Logic, Probability, Statistics
Replies
14
Views
939
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
15
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
828
Back
Top