Inclusion/Exclusion in Probability

  • Thread starter TranscendArcu
  • Start date
  • Tags Tags
    Probability
2 replies · 3K views · last reply
TranscendArcu
Messages
277
Reaction score
0

Homework Statement



Printed homework problem 34 about buying boxes of Wheaties to collect all n player pictures, with a formula for the probability in part (a) and a hint defining events Ek, followed by part (b) on a computer program and the estimate m = n log n + n log 2.


Homework Equations



Screenshot of a textbook Theorem 3.8 giving the inclusion-exclusion formula for the probability that at least one of n events occurs, with a plain-language explanation below.


The Attempt at a Solution


I've done part b) so I only want to talk about part a). So I said, let Ei be the event that I do not get the kth players card. It seems logical that the union of all the E-complements should be one.

Theorem 3.8 clearly makes use of intersections, so I'll compute for any k failures to get pictures [itex]P(E_1 \cap E_2 \cap ... \cap E_k) = (\frac{n-k}{n})^m[/itex] given that I buy m boxes of cereal. I have [itex]_n C_k[/itex] ways of failing to pick some k number of pictures. Thus, following the " subtract the probabilities of all possible two-way intersections, add the probability of all three-way intersections"-principle of Theorem 3.8, I can write as the k's vary:

[itex]1 - (_n C _1)(\frac{n-1}{n})^m + (_n C _2)(\frac{n-2}{n})^m - (_n C _3)(\frac{n-3}{n})^m + ... + (-1)^{n-1}(_n C _{n-1})(\frac{1}{n})^m[/itex]

Note that the nth term would go to zero.

So how does it look?
 
TranscendArcu said:

Homework Statement



Printed textbook problem 34 about Wheaties boxes and n Yankees player pictures, with formulas for the probability of collecting all n pictures via inclusion-exclusion, a hint defining events E_k, and parts (a) and (b).


Homework Equations



Text of Theorem 3.8 with inclusion-exclusion formula for the probability that at least one of n events occurs, equation (3.3), with a plain-English summary below.


The Attempt at a Solution


I've done part b) so I only want to talk about part a). So I said, let Ei be the event that I do not get the kth players card. It seems logical that the union of all the E-complements should be one.

Theorem 3.8 clearly makes use of intersections, so I'll compute for any k failures to get pictures [itex]P(E_1 \cap E_2 \cap ... \cap E_k) = (\frac{n-k}{n})^m[/itex] given that I buy m boxes of cereal. I have [itex]_n C_k[/itex] ways of failing to pick some k number of pictures. Thus, following the " subtract the probabilities of all possible two-way intersections, add the probability of all three-way intersections"-principle of Theorem 3.8, I can write as the k's vary:

[itex]1 - (_n C _1)(\frac{n-1}{n})^m + (_n C _2)(\frac{n-2}{n})^m - (_n C _3)(\frac{n-3}{n})^m + ... + (-1)^{n-1}(_n C _{n-1})(\frac{1}{n})^m[/itex]

Note that the nth term would go to zero.

So how does it look?

Easier: Let [itex]E_i = \{ \text{ do not get card } i \}, i=1,2, \ldots,n[/itex] in m boxes. You want to compute [itex]1-P\{ E_1 \cup E_2 \cup \cdots \cup E_n \}.[/itex] For each i we have that E_i occurs if fail m times to obtain card i, which means that
[tex]P\{E_i\} = \left(\frac{n-1}{n}\right)^m, i=1,2, \ldots, n.[/tex] For any [itex]i \neq j[/itex] the event [itex]E_i \cap E_j[/itex] occurs if in m purchases we always obtain one of the other (n-2) cards, so
[tex]P\{ E_i \cap E_j\} = \left( \frac{n-1}{n}\right)^m, i \leq i < j \leq n,[/tex]
etc.

RGV
 
My guess would be that part (b) is much more difficult, since for large m and n the computation using the formula in (a) would be subject to extreme roundoff-error effects. Possibly formula (a) should be regarded as useless for computational purposes! Of course, if you use several hundred to several thousand digits of precision, that would get around the problem, but barring that, an iterative approach is probably better, (or any approach that avoids subtractions of large or similarly-sized terms).

RGV