Discrete MathematicsProbability, Conditioning and Expectation4 of 9
Probability, Conditioning and Expectation · 4

Independence and Repeated Trials

With conditional probability, we update the probability of an event when a clue shrinks our sample space. Now we want to know when a clue doesn't change the probability at all, and how that lets us calculate probabilities across many rounds.

1

What Independence Actually Means

When two events happen inside the very same roll or draw, physical cause and effect can't tell us whether they are independent. Instead, we want to test whether learning that event B\clue{B} happened changes the proportion of outcomes where event A\event{A} happens.

Suppose we roll a fair six-sided die once, and we look at two events:

Does knowing that B\clue{B} happened change the probability of A\event{A}?

What Independence Actually Means
?\htmlClass{lc-mute}{?}
A: even {2,4,6}\htmlClass{lc-green}{A}:\ \text{even}\ \htmlClass{lc-green}{\{2, 4, 6\}}
B: at least 5 {5,6}\htmlClass{lc-blue}{B}:\ \text{at least }5\ \htmlClass{lc-blue}{\{5, 6\}}
independent or dependent?\text{independent or dependent?}
Text solution
Find the proportion in the whole sample spaceOut of all 66 equally likely outcomes on the die, 3\event{3} are even, so A\event{A} takes up half of the whole space.
P(A)\displaystyle P(\event{A}) =36\displaystyle = \frac{\event{3}}{6} =12\displaystyle = \frac{1}{2}
Zoom into the clue B={5,6}\clue{B} = \clue{\{5, 6\}}Crossing out everything outside B\clue{B} leaves only {5,6}\clue{\{5, 6\}}, where 6\event{6} is the single even outcome, so the proportion of even numbers stays 12\frac{\event{1}}{\clue{2}} and A\event{A} and B\clue{B} are independent.
P(A∣B)\displaystyle P(\event{A} \mid \clue{B}) =12\displaystyle = \frac{\event{1}}{\clue{2}} =P(A)\displaystyle = P(\event{A})
Contrast with B={4,5,6}\clue{B} = \clue{\{4, 5, 6\}}If the clue is "at least 44" instead, zooming into {4,5,6}\clue{\{4, 5, 6\}} leaves two even outcomes (4\event{4} and 6\event{6}) out of three, which changes the proportion and makes the events dependent.
P(A∣B)\displaystyle P(\event{A} \mid \clue{B}) =23≠P(A)\displaystyle = \frac{\event{2}}{\clue{3}} \fails{\neq} P(\event{A})

Two events A\event{A} and B\clue{B} are independent when zooming into B\clue{B} leaves the proportion of A\event{A} unchanged:

P(A∣B)\displaystyle P(\event{A} \mid \clue{B}) =P(A)\displaystyle = P(\event{A})

In this die roll, knowing B\clue{B} leaves P(A∣B)P(\event{A} \mid \clue{B}) at 12\frac{1}{2} only when B\clue{B} contains the exact same one-half proportion of even numbers as the whole die; any other fraction changes P(A∣B)P(\event{A} \mid \clue{B}) away from 12\frac{1}{2} and makes the events dependent.

A clue is independent of rolling an even number only when the remaining outcomes are still half even, just like the full die.
2

The Multiplication Rule and Complements

Once we know two events A\event{A} and B\clue{B} are independent, we want to find the probability that both happen, P(A and B)P(\event{A} \text{ and } \clue{B}), as well as the probability that one happens and the other does not, P(A and not B)P(\event{A} \text{ and not } \clue{B}).

Remember, the overlap of any two events is the slice P(B)P(\clue{B}) multiplied by the fraction of B\clue{B} that is filled by A\event{A}:

P(A and B)\displaystyle P(\event{A} \text{ and } \clue{B}) =P(B)⋅P(A∣B)\displaystyle = P(\clue{B}) \cdot P(\event{A} \mid \clue{B})
The Multiplication Rule and Complements
area=1\text{area} = 1
B\htmlClass{lc-blue}{B}
13\htmlClass{lc-blue}{\dfrac{1}{3}}
A\htmlClass{lc-green}{A}
12\htmlClass{lc-green}{\dfrac{1}{2}}
P(A and B)= ?P(\htmlClass{lc-green}{A} \text{ and } \htmlClass{lc-blue}{B}) = \,?
area=1\text{area} = 1
B\htmlClass{lc-blue}{B}
13\htmlClass{lc-blue}{\dfrac{1}{3}}
not B\text{not }\htmlClass{lc-blue}{B}
23\dfrac{2}{3}
A\htmlClass{lc-green}{A}
12\htmlClass{lc-green}{\dfrac{1}{2}}
12\htmlClass{lc-green}{\dfrac{1}{2}}
16\dfrac{1}{6}
26\dfrac{2}{6}

When A\event{A} and B\clue{B} are independent, P(A∣B)P(\event{A} \mid \clue{B}) is just P(A)P(\event{A}), so finding their overlap is just multiplying their probabilities:

P(A and B)\displaystyle P(\event{A} \text{ and } \clue{B}) =P(A)⋅P(B)\displaystyle = P(\event{A}) \cdot P(\clue{B})

Because A\event{A} takes up the same fraction inside B\clue{B} as it does in the whole square, it must also take up that exact same fraction in the remaining region not B\text{not } \clue{B}:

P(A and not B)=P(A)−P(A and B)Subtract the part of A inside B=P(A)−P(A)⋅P(B)Replace overlap using independence=P(A)⋅(1−P(B))Factor out P(A)=P(A)⋅P(not B)Rewrite 1−P(B) as P(not B)\displaystyle \begin{aligned} &P(\event{A} \text{ and not } \clue{B}) \\ &= P(\event{A}) - P(\event{A} \text{ and } \clue{B}) \\ &\qquad \scriptstyle \text{Subtract the part of } \event{A} \text{ inside } \clue{B} \\ &= P(\event{A}) - P(\event{A}) \cdot P(\clue{B}) \\ &\qquad \scriptstyle \text{Replace overlap using independence} \\ &= P(\event{A}) \cdot (1 - P(\clue{B})) \\ &\qquad \scriptstyle \text{Factor out } P(\event{A}) \\ &= P(\event{A}) \cdot P(\text{not } \clue{B}) \\ &\qquad \scriptstyle \text{Rewrite } 1 - P(\clue{B}) \text{ as } P(\text{not } \clue{B}) \end{aligned}

By the exact same reasoning, not A\text{not } \event{A} and not B\text{not } \clue{B} are also independent of each other:

P(not A and not B)\displaystyle P(\text{not } \event{A} \text{ and not } \clue{B}) =P(not A)⋅P(not B)\displaystyle = P(\text{not } \event{A}) \cdot P(\text{not } \clue{B})
3

Two Traps: Disjoint Events and Pairwise Independence

Before multiplying probabilities across a sequence of events, we need to recognize two situations where events look independent at first glance, but multiplying them fails: events that cannot happen together, and groups of three or more events that are only independent two at a time.

Two Traps: Disjoint Events and Pairwise Independence
1\htmlClass{lc-green}{1}
22
33
44
55
6\htmlClass{lc-blue}{6}
Roll 1\htmlClass{lc-green}{\text{Roll 1}}
Roll 6\htmlClass{lc-blue}{\text{Roll 6}}
P(Roll 1∣Roll 6)= ?P(\htmlClass{lc-green}{\text{Roll 1}} \mid \htmlClass{lc-blue}{\text{Roll 6}}) = \,?
disjoint\text{disjoint}
Roll 1\htmlClass{lc-green}{\text{Roll 1}}
1\htmlClass{lc-green}{1}
22
33
44
55
6\htmlClass{lc-blue}{6}
Roll 6\htmlClass{lc-blue}{\text{Roll 6}}
independent\text{independent}
A\htmlClass{lc-green}{A}
12\htmlClass{lc-green}{\dfrac{1}{2}}
B\htmlClass{lc-blue}{B}
13\htmlClass{lc-blue}{\dfrac{1}{3}}
16\dfrac{1}{6}
P(Roll 1∣Roll 6)=0≠P(Roll 1)\begin{aligned}&P(\htmlClass{lc-green}{\text{Roll 1}} \mid \htmlClass{lc-blue}{\text{Roll 6}}) \\ &= 0 \htmlClass{lc-orange}{\neq} P(\htmlClass{lc-green}{\text{Roll 1}})\end{aligned}
P(A and B)=P(A)⋅P(B)\begin{aligned}&P(\htmlClass{lc-green}{A} \text{ and } \htmlClass{lc-blue}{B}) \\ &= P(\htmlClass{lc-green}{A}) \cdot P(\htmlClass{lc-blue}{B})\end{aligned}

If two possible events A\event{A} and B\clue{B} are disjoint (mutually exclusive), they never overlap, so zooming into B\clue{B} drops the proportion of A\event{A} all the way to zero:

P(A∣B)\displaystyle P(\event{A} \mid \clue{B}) =0≠P(A)\displaystyle = 0 \fails{\neq} P(\event{A})

Knowing one happened guarantees the other didn't, so these disjoint events are dependent.

For three or more events, checking pairs one at a time is not enough. In the two-coin flip {HH,HT,TH,TT}\{HH, HT, TH, TT\}, we check the three events "First coin is Heads," "Second coin is Heads," and "Both coins match":

Text solution
Find the proportion of each event in the whole spaceEach event covers 22 of the 44 equally likely outcomes ({HH,HT}\clue{\{HH, HT\}}, {HH,TH}\clue{\{HH, TH\}}, and {HH,TT}\event{\{HH, TT\}}), so each has probability 12\frac{1}{2}.
P(First H)\displaystyle P(\clue{\text{First } H}) =12,P(Second H)\displaystyle = \frac{1}{2}, \quad P(\clue{\text{Second } H}) =12,P(Match)\displaystyle = \frac{1}{2}, \quad P(\event{\text{Match}}) =12\displaystyle = \frac{1}{2}
Zoom into any single clue (pairwise independent)Knowing "First coin is Heads" shrinks the space to {HH,HT}\clue{\{HH, HT\}}, where only HH\event{HH} is a match, leaving the proportion at 12\frac{\event{1}}{\clue{2}} (and the same holds for any pair).
P(Match∣First H)\displaystyle P(\event{\text{Match}} \mid \clue{\text{First } H}) =12\displaystyle = \frac{\event{1}}{\clue{2}} =P(Match)\displaystyle = P(\event{\text{Match}})
Zoom into two clues at once (not mutually independent)Knowing both "First coin is Heads" and "Second coin is Heads" leaves only HH\event{HH}, which guarantees a match and changes the probability from 12\frac{1}{2} to 11.
P(Match∣First H and Second H)\displaystyle P(\event{\text{Match}} \mid \clue{\text{First } H} \text{ and } \clue{\text{Second } H}) =1≠12\displaystyle = 1 \fails{\neq} \frac{1}{2}
4

Repeated Trials and the Binomial Formula

When a sequence of rounds is mutually independent (meaning no combination of past outcomes changes the probabilities for the next round), we can find the probability of getting an exact number of wins across multiple tries.

Suppose we play 55 independent rounds of a die game where rolling 11 or 22 is a Win (W\win{W}, probability p=13\win{p} = \win{\frac{1}{3}}) and rolling 3,4,5,3, 4, 5, or 66 is a Loss (L\loss{L}, probability q=1−p=23\loss{q} = \loss{1 - p} = \loss{\frac{2}{3}}). What is the probability of getting exactly 2\win{2} wins in 55 rounds?

Repeated Trials and the Binomial Formula
Win (W)\htmlClass{lc-green}{\text{Win (W)}}
Loss (L)\htmlClass{lc-orange}{\text{Loss (L)}}
1\htmlClass{lc-green}{1}
2\htmlClass{lc-green}{2}
3\htmlClass{lc-orange}{3}
4\htmlClass{lc-orange}{4}
5\htmlClass{lc-orange}{5}
6\htmlClass{lc-orange}{6}
p=13\htmlClass{lc-green}{p = \dfrac{1}{3}}
q=1−p=23\htmlClass{lc-orange}{q = 1 - p = \dfrac{2}{3}}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
5\htmlClass{lc-mute}{5}
P(exactly 2 wins in 5)= ?P(\text{exactly }\htmlClass{lc-green}{\text{2 wins}}\text{ in 5}) = \,?
Text solution
Find the probability of one specific 2\win{2}-win sequenceBecause the rounds are mutually independent for both wins and losses, any single 2\win{2}-win, 3\loss{3}-loss sequence like WWLLL\win{WW}\loss{LLL} or WLWLL\win{W}\loss{L}\win{W}\loss{LL} multiplies two factors of 13\win{\frac{1}{3}} and three factors of 23\loss{\frac{2}{3}}.
P(one 2-win sequence)\displaystyle P(\text{one } \win{2}\text{-win sequence}) =(13)2(23)3\displaystyle = \win{\left(\frac{1}{3}\right)^2}\loss{\left(\frac{2}{3}\right)^3}
Count how many valid sequences existTreating the 55 rounds as 55 empty slots, we choose which 2\win{2} slots get the W\win{W}'s, and the remaining 3\loss{3} slots automatically fill with L\loss{L}'s.
Number of sequences\displaystyle \text{Number of sequences} =(52)\displaystyle = \binom{5}{\win{2}} =5×42×1\displaystyle = \frac{5 \times 4}{2 \times 1} =10\displaystyle = 10
Multiply the sequence count by the probability of one sequenceSince all 1010 sequences are disjoint and have the exact same probability, we multiply the number of sequences by the probability of one sequence.
P(exactly 2 wins in 5 rounds)=(52)(13)2(23)3=10⋅19⋅827=80243\displaystyle \begin{aligned} &P(\text{exactly } \win{2 \text{ wins}} \text{ in } 5 \text{ rounds}) \\ &= \binom{5}{\win{2}}\win{\left(\frac{1}{3}\right)^2}\loss{\left(\frac{2}{3}\right)^3} \\ &= 10 \cdot \win{\frac{1}{9}} \cdot \loss{\frac{8}{27}} = \frac{80}{243} \end{aligned}

In general, for nn independent Bernoulli trials (trials with two outcomes: Win with probability p\win{p} and Loss with probability 1−p\loss{1 - p}), the probability of getting exactly k\win{k} wins is given by the Binomial Probability Formula:

P(exactly k wins in n trials)=(nk)⏟pick whichk slotsget the wins⋅pk⏟probability ofthose k wins⋅(1−p)n−k⏟lock the other n−kslots as losses\displaystyle \begin{aligned} &P(\text{exactly } \win{k} \text{ wins in } n \text{ trials}) \\ &= \underbrace{\binom{n}{\win{k}}}_{\substack{\text{pick which} \\ \win{k} \text{ slots} \\ \text{get the wins}}} \cdot \underbrace{\win{p^k}}_{\substack{\text{probability of} \\ \text{those } \win{k} \text{ wins}}} \cdot \underbrace{\loss{(1 - p)^{n - k}}}_{\substack{\text{lock the other } \loss{n - k} \\ \text{slots as losses}}} \end{aligned}

Moving the W\win{W}'s and L\loss{L}'s to different slots just reorders the fractions 13\win{\frac{1}{3}} and 23\loss{\frac{2}{3}}, so their product stays the same. Leaving the remaining slots blank instead of filling them with L\loss{L}'s drops the 23\loss{\frac{2}{3}} factors and lets in sequences with extra wins.

Swapping wins and losses only reorders the fractions you multiply, while leaving a slot blank lets in extra wins unless you fill it with a loss.
5

Four Twists on the Slot Model

When a problem asks for a range of wins, stops as soon as a target win is reached, or has more than two outcomes per round, plugging into (nk)pk(1−p)n−k\binom{n}{\win{k}}\win{p^k}\loss{(1 - p)^{n - k}} without thinking won't work. Instead, we can solve all four twists by going straight back to the slots:

Total Probability\displaystyle \text{Total Probability} =(Ways to fill the slots)×(Probability of ONE sequence)\displaystyle = (\text{Ways to fill the slots}) \times (\text{Probability of ONE sequence})

In the same game (p=13\win{p} = \win{\frac{1}{3}} for W\win{W}, 1−p=23\loss{1 - p} = \loss{\frac{2}{3}} for L\loss{L}), let's find the probability of:

Four Twists on the Slot Model
p=13\htmlClass{lc-green}{p = \dfrac{1}{3}}
1−p=23\htmlClass{lc-orange}{1 - p = \dfrac{2}{3}}
(nk) pk(1−p)n−k\dbinom{n}{\htmlClass{lc-green}{k}}\, \htmlClass{lc-green}{p}^{\htmlClass{lc-green}{k}} \htmlClass{lc-orange}{(1 - p)}^{\htmlClass{lc-orange}{n - k}}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
5\htmlClass{lc-mute}{5}
P(at least 1 win)= ?P(\htmlClass{lc-green}{\text{at least 1 win}}) = \,?
Text solution
Twist 1: At least 1\win{1} win in 55 roundsRather than adding the probabilities for 1,2,3,4,1, 2, 3, 4, and 55 wins, subtract the single unwanted sequence of 0\unwanted{0} wins (LLLLL\loss{LLLLL}) from 11.
P(at least 1 win)=1−P(0 wins)=1−(23)5=1−32243=211243\displaystyle \begin{aligned} &P(\win{\text{at least } 1 \text{ win}}) \\ &= 1 - P(\unwanted{0 \text{ wins}}) \\ &= 1 - \loss{\left(\frac{2}{3}\right)^5} = 1 - \unwanted{\frac{32}{243}} = \frac{211}{243} \end{aligned}
Twist 2: Stop on the 1st1\text{st} win at round 44Stopping on round 44 locks a W\win{W} into slot 44 and forces slots 1,2,1, 2, and 33 to be L\loss{L}'s (LLLW\loss{LLL}\win{W}), leaving just 11 valid sequence with no slots to choose.
P(1st win on round 4)\displaystyle P(1\text{st win on round } 4) =(23)3(13)1\displaystyle = \loss{\left(\frac{2}{3}\right)^3}\win{\left(\frac{1}{3}\right)^1} =881\displaystyle = \frac{8}{81}
Twist 3: Stop on the 2nd2\text{nd} win at round 55Locking the 2nd2\text{nd} W\win{W} into slot 55 leaves (41)\binom{4}{\win{1}} ways to place the 1st1\text{st} W\win{W} among the first 44 slots, while the whole 55-slot sequence still has 2\win{2} wins and 3\loss{3} losses.
P(2nd win on round 5)=(41)⏟place 1st W inslots 1 to 4⋅(13)2(23)3=4⋅8243=32243\displaystyle \begin{aligned} &P(2\text{nd win on round } 5) \\ &= \underbrace{\binom{4}{\win{1}}}_{\substack{\text{place } 1\text{st } \win{W} \text{ in} \\ \text{slots } 1\text{ to } 4}} \cdot \win{\left(\frac{1}{3}\right)^2}\loss{\left(\frac{2}{3}\right)^3} \\ &= 4 \cdot \frac{8}{243} = \frac{32}{243} \end{aligned}
Twist 4: Three outcomes per round (1 G,2 S,3 B\gold{1\text{ }G}, \silver{2\text{ }S}, \bronze{3\text{ }B} in 66 rolls)From 66 empty slots, choose 1\gold{1} slot for Gold, then choose 2\silver{2} of the remaining 55 slots for Silver (leaving the last 3\bronze{3} for Bronze), and multiply by the probability of one sequence like GSSBBB\gold{G}\silver{SS}\bronze{BBB}.
P(1 G,2 S,3 B)=(61)⏟slot for G(52)⏟slots for S⋅(16)1(26)2(36)3=6⋅10⋅10846656=536\displaystyle \begin{aligned} &P(\gold{1\text{ }G}, \silver{2\text{ }S}, \bronze{3\text{ }B}) \\ &= \underbrace{\binom{6}{\gold{1}}}_{\text{slot for } \gold{G}}\underbrace{\binom{5}{\silver{2}}}_{\text{slots for } \silver{S}} \\ &\qquad \cdot \gold{\left(\frac{1}{6}\right)^1}\silver{\left(\frac{2}{6}\right)^2}\bronze{\left(\frac{3}{6}\right)^3} \\ &= 6 \cdot 10 \cdot \frac{108}{46656} = \frac{5}{36} \end{aligned}
6

Sampling Without Replacement

What if we draw marbles from a bag without replacement? Because we don't put the marbles back, every draw changes the proportions left in the bag for the next draw. The trials are dependent, so there is no constant p\win{p} to raise to an exponent.

Suppose a bag holds 99 marbles: 3\win{3} Green (W\win{W}) and 6\loss{6} Red (L\loss{L}). If we draw 55 marbles without replacement, what is the probability of getting exactly 2\win{2} Green marbles?

Sampling Without Replacement
Green=W\text{Green} = \htmlClass{lc-green}{W}
39\dfrac{\htmlClass{lc-green}{3}}{9}
Red=L\text{Red} = \htmlClass{lc-orange}{L}
69\dfrac{\htmlClass{lc-orange}{6}}{9}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
5\htmlClass{lc-mute}{5}
P(exactly 2 Greens in 5 draws)= ?P(\text{exactly }\htmlClass{lc-green}{\text{2 Greens}}\text{ in 5 draws}) = \,?
Text solution
Find the probability of one specific 2\win{2}-Green sequenceFollowing a single sequence like WWLLL\win{WW}\loss{LLL} (or WLWLL\win{W}\loss{L}\win{W}\loss{LL}) draw by draw, the denominator drops by 11 each time (9×8×7×6×59 \times 8 \times 7 \times 6 \times 5) while the two Green draws always contribute numerators 3×2\win{3} \times \win{2} and the three Red draws always contribute 6×5×4\loss{6} \times \loss{5} \times \loss{4}.
P(WWLLL)\displaystyle P(\win{WW}\loss{LLL}) =39⋅28⋅67⋅56⋅45\displaystyle = \frac{\win{3}}{9} \cdot \frac{\win{2}}{8} \cdot \frac{\loss{6}}{7} \cdot \frac{\loss{5}}{6} \cdot \frac{\loss{4}}{5} =121\displaystyle = \frac{1}{21}
Multiply by the number of 2\win{2}-Green slot arrangementsSince every sequence of 2\win{2} Greens and 3\loss{3} Reds multiplies the exact same numerators over the exact same denominators, all (52)\binom{5}{\win{2}} sequences share that same probability.
P(exactly 2 Greens in 5 draws)=(52)(39⋅28⋅67⋅56⋅45)=10⋅121=1021\displaystyle \begin{aligned} &P(\text{exactly } \win{2 \text{ Greens}} \text{ in } 5 \text{ draws}) \\ &= \binom{5}{\win{2}}\left(\frac{\win{3}}{9} \cdot \frac{\win{2}}{8} \cdot \frac{\loss{6}}{7} \cdot \frac{\loss{5}}{6} \cdot \frac{\loss{4}}{5}\right) \\ &= 10 \cdot \frac{1}{21} = \frac{10}{21} \end{aligned}

When order doesn't matter, you can also count the ways to grab 2\win{2} of the 3\win{3} Greens and 3\loss{3} of the 6\loss{6} Reds all at once using combinations:

P(exactly 2 Greens in 5 draws)\displaystyle P(\text{exactly } \win{2 \text{ Greens}} \text{ in } 5 \text{ draws}) =(32)(63)(95)\displaystyle = \frac{\win{\binom{3}{2}}\loss{\binom{6}{3}}}{\binom{9}{5}} =3⋅20126\displaystyle = \frac{\win{3} \cdot \loss{20}}{126} =1021\displaystyle = \frac{10}{21}

Grabbing all at once is quick when any slot order is allowed, while the step-by-step slot method still works even when a specific draw is locked in place (such as finding the 2nd2\text{nd} Green marble on the 5th5\text{th} draw).

Moving the 2\win{2} Green draws to different slots changes the fraction at each step, but the green numerators (3\win{3} and 2\win{2}) and red numerators (6,5,\loss{6}, \loss{5}, and 4\loss{4}) just trade places over the same denominator 9×8×7×6×59 \times 8 \times 7 \times 6 \times 5. Every 2\win{2}-Green, 3\loss{3}-Red sequence still has the exact same product.

Moving the two green draws to different slots changes the step-by-step fractions, but it just rearranges the same top numbers over the same bottom numbers.

Key concepts

Everything here comes down to checking proportions for independence and splitting repeated trials into how many sequences times the probability of one sequence:

Zoom-in test for independence

Two events A\event{A} and B\clue{B} are independent if knowing B\clue{B} happened leaves the proportion of A\event{A} unchanged, P(A∣B)=P(A)P(\event{A} \mid \clue{B}) = P(\event{A}) (for example, on a fair die, A={2,4,6}\event{A} = \event{\{2, 4, 6\}} has P(A)=12P(\event{A}) = \frac{1}{2}, and inside B={5,6}\clue{B} = \clue{\{5, 6\}} it still has P(A∣B)=12P(\event{A} \mid \clue{B}) = \frac{1}{2}). When A\event{A} and B\clue{B} are independent, their overlap is P(A and B)=P(A)⋅P(B)P(\event{A} \text{ and } \clue{B}) = P(\event{A}) \cdot P(\clue{B}) and their complements are also independent: P(A and not B)=P(A)⋅P(not B)P(\event{A} \text{ and not } \clue{B}) = P(\event{A}) \cdot P(\text{not } \clue{B}). Do not confuse independent with disjoint: if two possible events cannot happen together, P(A and B)=0P(\event{A} \text{ and } \clue{B}) = 0, so they are dependent. And for three or more events, mutual independence requires the probabilities to stay unchanged under every combination of clues, not just single clues (pairwise independence).

Slot method for repeated trials

Because multiplication doesn't depend on order, every sequence with the same counts of outcomes has the exact same probability:

Total Probability\displaystyle \text{Total Probability} =(Ways to fill the slots)×(Probability of ONE sequence)\displaystyle = (\text{Ways to fill the slots}) \times (\text{Probability of ONE sequence})

  • Fixed number of independent trials (Binomial): For k\win{k} wins in nn independent trials with constant win probability p\win{p}, choose k\win{k} of the nn slots and multiply by k\win{k} wins and n−k\loss{n - k} losses: (nk)pk(1−p)n−k\binom{n}{\win{k}}\win{p^k}\loss{(1 - p)^{n - k}} (such as (52)(13)2(23)3\binom{5}{\win{2}}\win{\left(\frac{1}{3}\right)^2}\loss{\left(\frac{2}{3}\right)^3}). For "at least", subtract the unwanted win totals from 11 (P(at least 1)=1−(23)5P(\win{\text{at least } 1}) = 1 - \loss{\left(\frac{2}{3}\right)^5}). For three or more outcomes, fill the slots in stages: (61)(52)(16)1(26)2(36)3\binom{6}{\gold{1}}\binom{5}{\silver{2}}\gold{\left(\frac{1}{6}\right)^1}\silver{\left(\frac{2}{6}\right)^2}\bronze{\left(\frac{3}{6}\right)^3}.
  • When not to use (nk)pk(1−p)n−k\binom{n}{\win{k}}\win{p^k}\loss{(1 - p)^{n - k}}: If a game stops on a target win, do not choose from all nn slots. Lock the final win in slot nn first and choose only among the first n−1n - 1 slots (stopping on the 2nd2\text{nd} win at round 55 uses (41)\binom{4}{\win{1}}, not (52)\wrong{\binom{5}{2}}). If sampling is without replacement, do not use pk(1−p)n−k\win{p^k}\loss{(1 - p)^{n - k}} because the probabilities change on every draw. Instead, multiply the changing conditional fractions along one sequence and multiply by the number of slot arrangements: (52)(39⋅28⋅67⋅56⋅45)\binom{5}{\win{2}}\left(\frac{\win{3}}{9} \cdot \frac{\win{2}}{8} \cdot \frac{\loss{6}}{7} \cdot \frac{\loss{5}}{6} \cdot \frac{\loss{4}}{5}\right).
7

Practice

1

Roll a fair eight-sided die numbered 11 through 88 once, and let A\event{A} be the event that the roll is a multiple of 44, so A={4,8}\event{A} = \event{\{4, 8\}}. Consider two other events: B1={1,2,3,4}\clue{B_1} = \clue{\{1, 2, 3, 4\}} and B2={2,4,6}\clue{B_2} = \clue{\{2, 4, 6\}}. Using the zoom-in test, determine whether A\event{A} is independent of B1\clue{B_1}, and whether A\event{A} is independent of B2\clue{B_2}.

First find the fraction of multiples of 44 across all 88 outcomes, P(A)P(\event{A}); then cross out everything outside B1\clue{B_1} (and then B2\clue{B_2}) and check what fraction of the remaining outcomes belong to A\event{A}.

Across all 88 outcomes, A={4,8}\event{A} = \event{\{4, 8\}} has probability:
P(A)\displaystyle P(\event{A}) =28\displaystyle = \frac{\event{2}}{8} =14\displaystyle = \frac{1}{4}
Zooming into B1={1,2,3,4}\clue{B_1} = \clue{\{1, 2, 3, 4\}} leaves 4\clue{4} outcomes, and only 4\event{4} is in A\event{A}. (Watch out: divide by the number of outcomes inside B1\clue{B_1}, and inside B2\clue{B_2} next, not by all 88 outcomes of the die, and don't assume B1\clue{B_1} and B2\clue{B_2} behave the same just because both overlap A\event{A} on the single number 4\event{4}.) This gives:
P(A∣B1)\displaystyle P(\event{A} \mid \clue{B_1}) =14\displaystyle = \frac{\event{1}}{\clue{4}} =P(A)\displaystyle = P(\event{A})
Zooming into B2={2,4,6}\clue{B_2} = \clue{\{2, 4, 6\}} leaves 3\clue{3} outcomes, and only 4\event{4} is in A\event{A}, giving:
P(A∣B2)\displaystyle P(\event{A} \mid \clue{B_2}) =13≠14\displaystyle = \frac{\event{1}}{\clue{3}} \fails{\neq} \frac{1}{4}
Therefore, A\event{A} and B1\clue{B_1} are independent, and A\event{A} and B2\clue{B_2} are dependent.
2

Suppose A\event{A} and B\clue{B} are independent events with P(A)=25P(\event{A}) = \event{\frac{2}{5}} and P(B)=14P(\clue{B}) = \clue{\frac{1}{4}}. Find P(A and not B)P(\event{A} \text{ and not } \clue{B}) and P(not A and not B)P(\text{not } \event{A} \text{ and not } \clue{B}).

Because independence carries over to complements, start by finding P(not A)P(\text{not } \event{A}) and P(not B)P(\text{not } \clue{B}) by subtracting from 11.

Since A\event{A} and B\clue{B} are independent, their complements are also independent of each other and of the original events, with P(not A)=1−25=35P(\text{not } \event{A}) = 1 - \event{\frac{2}{5}} = \frac{3}{5} and P(not B)=1−14=34P(\text{not } \clue{B}) = 1 - \clue{\frac{1}{4}} = \frac{3}{4}. Multiplying the independent events gives:
P(A and not B)=P(A)⋅P(not B)=25⋅34=310\displaystyle \begin{aligned} P(\event{A} \text{ and not } \clue{B}) &= P(\event{A}) \cdot P(\text{not } \clue{B}) \\ &= \event{\frac{2}{5}} \cdot \frac{3}{4} = \frac{3}{10} \end{aligned}
For the second part, multiply the two complement probabilities directly (be careful not to compute 1−P(A and B)=1−110=9101 - P(\event{A} \text{ and } \clue{B}) = 1 - \frac{1}{10} = \wrong{\frac{9}{10}}, which only excludes the overlap where both happen and still includes outcomes where A\event{A} or B\clue{B} happens alone):
P(not A and not B)=P(not A)⋅P(not B)=35⋅34=920\displaystyle \begin{aligned} &P(\text{not } \event{A} \text{ and not } \clue{B}) \\ &= P(\text{not } \event{A}) \cdot P(\text{not } \clue{B}) \\ &= \frac{3}{5} \cdot \frac{3}{4} = \frac{9}{20} \end{aligned}
3

Events A\event{A} and B\clue{B} have probabilities P(A)=13P(\event{A}) = \event{\frac{1}{3}} and P(B)=12P(\clue{B}) = \clue{\frac{1}{2}}. Find P(A and B)P(\event{A} \text{ and } \clue{B}) first if A\event{A} and B\clue{B} are disjoint, and second if A\event{A} and B\clue{B} are independent. Can two events with positive probabilities ever be both disjoint and independent?

Compare what "disjoint" requires for the size of the overlap A and B\event{A} \text{ and } \clue{B} against what "independent" requires for that same overlap.

If A\event{A} and B\clue{B} are disjoint, they have no overlap, so:
P(A and B)\displaystyle P(\event{A} \text{ and } \clue{B}) =0\displaystyle = 0
If A\event{A} and B\clue{B} are independent, their overlap is the product of their probabilities:
P(A and B)\displaystyle P(\event{A} \text{ and } \clue{B}) =P(A)⋅P(B)\displaystyle = P(\event{A}) \cdot P(\clue{B}) =13⋅12\displaystyle = \event{\frac{1}{3}} \cdot \clue{\frac{1}{2}} =16\displaystyle = \frac{1}{6}
(Don't fall into the trap of thinking "disjoint circles don't touch, so they are independent" and answering yes!) Because independence requires an overlap of P(A)⋅P(B)>0P(\event{A}) \cdot P(\clue{B}) > 0 while disjointness forces the overlap to be 00, two events with positive probabilities can never be both: No.
4

A fair coin is flipped 33 times, giving 88 equally likely outcomes. Let E1E_1 be the event that flips 11 and 22 match, E2E_2 be the event that flips 22 and 33 match, and E3E_3 be the event that flips 11 and 33 match. Show that E1,E2,E_1, E_2, and E3E_3 are pairwise independent, but not mutually independent.

List which of the 88 outcomes belong to E1,E2,E_1, E_2, and E3E_3, then zoom into a single event EjE_j before zooming into the combined clue E1 and E2E_1 \text{ and } E_2.

Out of the 88 outcomes, each event contains 44 outcomes:
E1\displaystyle E_1 ={HHH,HHT,TTH,TTT},E2\displaystyle = \{HHH, HHT, TTH, TTT\}, \quad E_2 ={HHH,THH,HTT,TTT},E3\displaystyle = \{HHH, THH, HTT, TTT\}, \quad E_3 ={HHH,HTH,THT,TTT}\displaystyle = \{HHH, HTH, THT, TTT\}
So P(E1)=P(E2)=P(E3)=48=12P(E_1) = P(E_2) = P(E_3) = \frac{\event{4}}{8} = \frac{1}{2}. Any two of these events overlap on the 22 outcomes {HHH,TTT}\{HHH, TTT\} (don't forget TTTTTT alongside HHHHHH; leaving out TTTTTT makes the three-way overlap look like 18\wrong{\frac{1}{8}} and hides the dependence!). Zooming into any single event Ej\clue{E_j} leaves 2\event{2} out of 4\clue{4} outcomes in each of the others:
P(Ei∣Ej)\displaystyle P(\event{E_i} \mid \clue{E_j}) =24\displaystyle = \frac{\event{2}}{\clue{4}} =12\displaystyle = \frac{1}{2} =P(Ei)\displaystyle = P(\event{E_i})
Thus E1,E2,E_1, E_2, and E3E_3 are pairwise independent. However, if both E1\clue{E_1} and E2\clue{E_2} happen, the outcome must be in {HHH,TTT}\clue{\{HHH, TTT\}}, where flips 11 and 33 are guaranteed to match:
P(E3∣E1 and E2)\displaystyle P(\event{E_3} \mid \clue{E_1} \text{ and } \clue{E_2}) =1≠12\displaystyle = 1 \fails{\neq} \frac{1}{2}
Therefore, the three events are pairwise independent, but not mutually independent.
5

A multiple-choice quiz has 66 questions, and each question has 44 choices (11 correct and 33 incorrect). If you guess independently on every question, what is the probability that you get exactly 22 questions right?

Treat the 66 questions as 66 slots: how many ways can you choose 22 slots for the right answers, and what must fill the remaining 44 slots?

Each question is an independent trial with win probability p=14\win{p} = \win{\frac{1}{4}} and loss probability 1−p=34\loss{1 - p} = \loss{\frac{3}{4}}. Choosing 2\win{2} of the 66 slots for the right answers gives (62)=15\binom{6}{\win{2}} = 15 sequences. Make sure to multiply by (34)4\loss{\left(\frac{3}{4}\right)^4} to lock the other 4\loss{4} slots as wrong answers (stopping at (62)(14)2=1516\binom{6}{\win{2}}\win{\left(\frac{1}{4}\right)^2} = \wrong{\frac{15}{16}} leaves the other 4\loss{4} slots blank, and leaving off (62)\binom{6}{\win{2}} gives only a single sequence's probability 814096\wrong{\frac{81}{4096}}):
P(exactly 2 right)=(62)(14)2(34)4=15⋅116⋅81256=12154096\displaystyle \begin{aligned} &P(\text{exactly } \win{2 \text{ right}}) \\ &= \binom{6}{\win{2}}\win{\left(\frac{1}{4}\right)^2}\loss{\left(\frac{3}{4}\right)^4} \\ &= 15 \cdot \win{\frac{1}{16}} \cdot \loss{\frac{81}{256}} = \frac{1215}{4096} \end{aligned}
6

On the same 66-question quiz where each independent guess is right with probability 14\frac{1}{4}, what is the probability of getting at least 11 question right, and what is the probability of getting at least 22 questions right?

Instead of adding up 11 through 66 right answers, subtract the few excluded win totals from 11.

Subtracting the single sequence with 0\unwanted{0} right answers from 11 gives:
P(at least 1 right)=1−P(0 right)=1−(34)6=1−7294096=33674096\displaystyle \begin{aligned} &P(\win{\text{at least } 1 \text{ right}}) \\ &= 1 - P(\unwanted{0 \text{ right}}) \\ &= 1 - \loss{\left(\frac{3}{4}\right)^6} = 1 - \unwanted{\frac{729}{4096}} = \frac{3367}{4096} \end{aligned}
For at least 2\win{2} right answers, subtract both 0\unwanted{0} right and 1\unwanted{1} right from 11. (Be careful not to subtract only P(1 right)P(\unwanted{1 \text{ right}}), which gives 26384096\wrong{\frac{2638}{4096}}, and remember the (61)=6\binom{6}{\win{1}} = 6 slot choices for the single right answer so you don't subtract just 2434096\wrong{\frac{243}{4096}} to get 31244096\wrong{\frac{3124}{4096}}):
P(at least 2 right)=1−(34)6−(61)(14)1(34)5=1−7294096−14584096=19094096\displaystyle \begin{aligned} &P(\win{\text{at least } 2 \text{ right}}) \\ &= 1 - \loss{\left(\frac{3}{4}\right)^6} - \binom{6}{\win{1}}\win{\left(\frac{1}{4}\right)^1}\loss{\left(\frac{3}{4}\right)^5} \\ &= 1 - \unwanted{\frac{729}{4096}} - \unwanted{\frac{1458}{4096}} = \frac{1909}{4096} \end{aligned}
7

An archer hits the bullseye on each shot independently with probability 15\frac{1}{5}. She keeps shooting until she hits her 3rd3\text{rd} bullseye and then stops immediately. What is the probability that she stops on her 7th7\text{th} shot?

Draw 77 slots: if she stops immediately on shot 77, which slot is locked as a bullseye, and how many bullseyes are left to place in the earlier slots?

Draw 77 slots and lock the 3rd3\text{rd} bullseye (W\win{W}) in slot 77. The first 66 slots must contain 2\win{2} wins and 4\loss{4} losses in any order, which can be arranged in (62)=15\binom{6}{\win{2}} = 15 ways. (Don't use (73)=35\wrong{\binom{7}{3}} = \wrong{35}, which lets the 3rd3\text{rd} bullseye happen before shot 77 and gives 179215625\wrong{\frac{1792}{15625}}.) Every valid 77-shot sequence has 3\win{3} wins and 4\loss{4} losses:
P(stops on 7th shot)=(62)(15)3(45)4=15⋅25678125=76815625\displaystyle \begin{aligned} &P(\text{stops on } 7\text{th shot}) \\ &= \binom{6}{\win{2}}\win{\left(\frac{1}{5}\right)^3}\loss{\left(\frac{4}{5}\right)^4} \\ &= 15 \cdot \frac{256}{78125} = \frac{768}{15625} \end{aligned}
8

A spinner lands on Red with probability 12\frac{1}{2}, Blue with probability 13\frac{1}{3}, and Yellow with probability 16\frac{1}{6}. In 77 independent spins, what is the probability of getting 33 Reds, 22 Blues, and 22 Yellows?

Fill the 77 empty slots in stages: first pick 33 slots for Red, then pick 22 of the remaining empty slots for Blue, before multiplying by the probability of one sequence.

From 77 empty slots, there are (73)=35\binom{7}{\spinred{3}} = 35 ways to pick slots for the 3\spinred{3} Reds, and then (42)=6\binom{4}{\spinblue{2}} = 6 ways to pick slots for the 2\spinblue{2} Blues from the 44 remaining empty slots (don't pick the Blue slots out of all 77 slots using (72)=21\wrong{\binom{7}{2}} = \wrong{21}, which overwrites Red slots and gives 245864\wrong{\frac{245}{864}}), leaving 11 way to fill the last 22 slots with Yellows. This gives 35×6=21035 \times 6 = 210 sequences, each with probability (12)3(13)2(16)2=12592\spinred{\left(\frac{1}{2}\right)^3}\spinblue{\left(\frac{1}{3}\right)^2}\left(\frac{1}{6}\right)^2 = \frac{1}{2592}:
P(3 Red,2 Blue,2 Yellow)=(73)(42)(12)3(13)2(16)2=2102592=35432\displaystyle \begin{aligned} &P(\spinred{3\text{ Red}}, \spinblue{2\text{ Blue}}, 2\text{ Yellow}) \\ &= \binom{7}{\spinred{3}}\binom{4}{\spinblue{2}}\spinred{\left(\frac{1}{2}\right)^3}\spinblue{\left(\frac{1}{3}\right)^2}\left(\frac{1}{6}\right)^2 \\ &= \frac{210}{2592} = \frac{35}{432} \end{aligned}
9

A box of 1010 lightbulbs contains 44 defective bulbs and 66 good bulbs. You test 44 bulbs one by one without replacement. (a) What is the probability that exactly 22 of the 44 bulbs tested are defective? (b) What is the probability that the 4th4\text{th} bulb tested is the 2nd2\text{nd} defective bulb you find?

Because bulbs are tested without replacement, find the probability of one sequence like DDGGDDGG by updating the remaining bulb counts at each draw, then count how many slot arrangements fit (a) versus (b).

Because bulbs are not replaced, do not use a constant p=410=25p = \frac{4}{10} = \frac{2}{5} in the Binomial Formula (which would give 216625\wrong{\frac{216}{625}} for (a) and 108625\wrong{\frac{108}{625}} for (b)). Instead, any single sequence of 2\loss{2} defective (D\loss{D}) and 2\win{2} good (G\win{G}) bulbs multiplies the same numerators (4,3\loss{4}, \loss{3} and 6,5\win{6}, \win{5}) over the same denominator (10×9×8×710 \times 9 \times 8 \times 7):
P(one 2-D,2-G sequence)\displaystyle P(\text{one } \loss{2\text{-}D}, \win{2\text{-}G} \text{ sequence}) =410⋅39⋅68⋅57\displaystyle = \frac{\loss{4}}{10} \cdot \frac{\loss{3}}{9} \cdot \frac{\win{6}}{8} \cdot \frac{\win{5}}{7} =114\displaystyle = \frac{1}{14}
(a)Placing the 2\loss{2} D\loss{D}'s anywhere among the 44 slots gives (42)=6\binom{4}{\loss{2}} = 6 sequences:
P(exactly 2 D in 4 draws)\displaystyle P(\text{exactly } \loss{2\text{ }D} \text{ in } 4 \text{ draws}) =(42)⋅114\displaystyle = \binom{4}{\loss{2}} \cdot \frac{1}{14} =6⋅114\displaystyle = 6 \cdot \frac{1}{14} =37\displaystyle = \frac{3}{7}
(b)Locking the 2nd2\text{nd} D\loss{D} in slot 44 leaves (31)=3\binom{3}{\loss{1}} = 3 ways to place the 1st1\text{st} D\loss{D} among the first 33 slots:
P(2nd D on 4th draw)\displaystyle P(2\text{nd } \loss{D} \text{ on } 4\text{th draw}) =(31)⋅114\displaystyle = \binom{3}{\loss{1}} \cdot \frac{1}{14} =3⋅114\displaystyle = 3 \cdot \frac{1}{14} =314\displaystyle = \frac{3}{14}