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 happened changes the proportion of outcomes where event A happens.
Suppose we roll a fair six-sided die once, and we look at two events:
A={2,4,6} (the roll is even)
B={5,6} (the roll is at least 5)
Does knowing that B happened change the probability of A?
What Independence Actually Means
Text solution
Find the proportion in the whole sample spaceOut of all 6 equally likely outcomes on the die, 3 are even, so A takes up half of the whole space.
P(A)=63=21
Zoom into the clue B={5,6}Crossing out everything outside B leaves only {5,6}, where 6 is the single even outcome, so the proportion of even numbers stays 21 and A and B are independent.
P(A∣B)=21=P(A)
Contrast with B={4,5,6}If the clue is "at least 4" instead, zooming into {4,5,6} leaves two even outcomes (4 and 6) out of three, which changes the proportion and makes the events dependent.
P(A∣B)=32=P(A)
Two events A and B are independent when zooming into B leaves the proportion of A unchanged:
P(A∣B)=P(A)
In this die roll, knowing B leaves P(A∣B) at 21 only when B contains the exact same one-half proportion of even numbers as the whole die; any other fraction changes P(A∣B) away from 21 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 and B are independent, we want to find the probability that both happen, P(A and B), as well as the probability that one happens and the other does not, P(A and not B).
Remember, the overlap of any two events is the slice P(B) multiplied by the fraction of B that is filled by A:
P(A and B)=P(B)⋅P(A∣B)
The Multiplication Rule and Complements
When A and B are independent, P(A∣B) is just P(A), so finding their overlap is just multiplying their probabilities:
P(A and B)=P(A)⋅P(B)
Because A takes up the same fraction inside B as it does in the whole square, it must also take up that exact same fraction in the remaining region not 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)
By the exact same reasoning, not A and not B are also independent of each other:
P(not A and not B)=P(not A)⋅P(not 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
If two possible events A and B are disjoint (mutually exclusive), they never overlap, so zooming into B drops the proportion of A all the way to zero:
P(A∣B)=0=P(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}, 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 2 of the 4 equally likely outcomes ({HH,HT},{HH,TH}, and {HH,TT}), so each has probability 21.
P(First H)=21,P(Second H)=21,P(Match)=21
Zoom into any single clue (pairwise independent)Knowing "First coin is Heads" shrinks the space to {HH,HT}, where only HH is a match, leaving the proportion at 21 (and the same holds for any pair).
P(Match∣First H)=21=P(Match)
Zoom into two clues at once (not mutually independent)Knowing both "First coin is Heads" and "Second coin is Heads" leaves only HH, which guarantees a match and changes the probability from 21 to 1.
P(Match∣First H and Second H)=1=21
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 5 independent rounds of a die game where rolling 1 or 2 is a Win (W, probability p=31) and rolling 3,4,5, or 6 is a Loss (L, probability q=1−p=32). What is the probability of getting exactly 2 wins in 5 rounds?
Repeated Trials and the Binomial Formula
Text solution
Find the probability of one specific 2-win sequenceBecause the rounds are mutually independent for both wins and losses, any single 2-win, 3-loss sequence like WWLLL or WLWLL multiplies two factors of 31 and three factors of 32.
P(one 2-win sequence)=(31)2(32)3
Count how many valid sequences existTreating the 5 rounds as 5 empty slots, we choose which 2 slots get the W's, and the remaining 3 slots automatically fill with L's.
Number of sequences=(25)=2×15×4=10
Multiply the sequence count by the probability of one sequenceSince all 10 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)=(25)(31)2(32)3=10⋅91⋅278=24380
In general, for n independent Bernoulli trials (trials with two outcomes: Win with probability p and Loss with probability 1−p), the probability of getting exactly k wins is given by the Binomial Probability Formula:
P(exactly k wins in n trials)=pick whichk slotsget the wins(kn)⋅probability ofthose k winspk⋅lock the other n−kslots as losses(1−p)n−k
Moving the W's and L's to different slots just reorders the fractions 31 and 32, so their product stays the same. Leaving the remaining slots blank instead of filling them with L's drops the 32 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 (kn)pk(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=(Ways to fill the slots)×(Probability of ONE sequence)
In the same game (p=31 for W,1−p=32 for L), let's find the probability of:
Getting at least 1 win in 5 rounds.
Stopping on the 1st win at round 4.
Stopping on the 2nd win at round 5.
Rolling 1 Gold(P(G)=61), 2 Silvers(P(S)=62), and 3 Bronzes(P(B)=63) in 6 die rolls.
Four Twists on the Slot Model
Text solution
Twist 1: At least 1 win in 5 roundsRather than adding the probabilities for 1,2,3,4, and 5 wins, subtract the single unwanted sequence of 0 wins (LLLLL) from 1.
P(at least 1 win)=1−P(0 wins)=1−(32)5=1−24332=243211
Twist 2: Stop on the 1st win at round 4Stopping on round 4 locks a W into slot 4 and forces slots 1,2, and 3 to be L's (LLLW), leaving just 1 valid sequence with no slots to choose.
P(1st win on round 4)=(32)3(31)1=818
Twist 3: Stop on the 2nd win at round 5Locking the 2ndW into slot 5 leaves (14) ways to place the 1stW among the first 4 slots, while the whole 5-slot sequence still has 2 wins and 3 losses.
P(2nd win on round 5)=place 1st W inslots 1 to 4(14)⋅(31)2(32)3=4⋅2438=24332
Twist 4: Three outcomes per round (1G,2S,3B in 6 rolls)From 6 empty slots, choose 1 slot for Gold, then choose 2 of the remaining 5 slots for Silver (leaving the last 3 for Bronze), and multiply by the probability of one sequence like GSSBBB.
P(1G,2S,3B)=slot for G(16)slots for S(25)⋅(61)1(62)2(63)3=6⋅10⋅46656108=365
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 to raise to an exponent.
Suppose a bag holds 9 marbles: 3 Green (W) and 6 Red (L). If we draw 5 marbles without replacement, what is the probability of getting exactly 2 Green marbles?
Sampling Without Replacement
Text solution
Find the probability of one specific 2-Green sequenceFollowing a single sequence like WWLLL (or WLWLL) draw by draw, the denominator drops by 1 each time (9×8×7×6×5) while the two Green draws always contribute numerators 3×2 and the three Red draws always contribute 6×5×4.
P(WWLLL)=93⋅82⋅76⋅65⋅54=211
Multiply by the number of 2-Green slot arrangementsSince every sequence of 2 Greens and 3 Reds multiplies the exact same numerators over the exact same denominators, all (25) sequences share that same probability.
P(exactly 2 Greens in 5 draws)=(25)(93⋅82⋅76⋅65⋅54)=10⋅211=2110
When order doesn't matter, you can also count the ways to grab 2 of the 3 Greens and 3 of the 6 Reds all at once using combinations:
P(exactly 2 Greens in 5 draws)=(59)(23)(36)=1263⋅20=2110
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 2nd Green marble on the 5th draw).
Moving the 2 Green draws to different slots changes the fraction at each step, but the green numerators (3 and 2) and red numerators (6,5, and 4) just trade places over the same denominator 9×8×7×6×5. Every 2-Green, 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 and B are independent if knowing B happened leaves the proportion of A unchanged, P(A∣B)=P(A) (for example, on a fair die, A={2,4,6} has P(A)=21, and inside B={5,6} it still has P(A∣B)=21). When A and B are independent, their overlap is P(A and B)=P(A)⋅P(B) and their complements are also independent: P(A and not B)=P(A)⋅P(not B). Do not confuse independent with disjoint: if two possible events cannot happen together, P(A and 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=(Ways to fill the slots)×(Probability of ONE sequence)
Fixed number of independent trials (Binomial): For k wins in n independent trials with constant win probability p, choose k of the n slots and multiply by k wins and n−k losses: (kn)pk(1−p)n−k (such as (25)(31)2(32)3). For "at least", subtract the unwanted win totals from 1(P(at least 1)=1−(32)5). For three or more outcomes, fill the slots in stages: (16)(25)(61)1(62)2(63)3.
When not to use (kn)pk(1−p)n−k: If a game stops on a target win, do not choose from all n slots. Lock the final win in slot n first and choose only among the first n−1 slots (stopping on the 2nd win at round 5 uses (14), not (25)). If sampling is without replacement, do not use pk(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: (25)(93⋅82⋅76⋅65⋅54).
7
Practice
1
Roll a fair eight-sided die numbered 1 through 8 once, and let A be the event that the roll is a multiple of 4, so A={4,8}. Consider two other events: B1={1,2,3,4} and B2={2,4,6}. Using the zoom-in test, determine whether A is independent of B1, and whether A is independent of B2.
First find the fraction of multiples of 4 across all 8 outcomes, P(A); then cross out everything outside B1 (and then B2) and check what fraction of the remaining outcomes belong to A.
Across all 8 outcomes, A={4,8} has probability:
P(A)=82=41
Zooming into B1={1,2,3,4} leaves 4 outcomes, and only 4 is in A. (Watch out: divide by the number of outcomes inside B1, and inside B2 next, not by all 8 outcomes of the die, and don't assume B1 and B2 behave the same just because both overlap A on the single number 4.) This gives:
P(A∣B1)=41=P(A)
Zooming into B2={2,4,6} leaves 3 outcomes, and only 4 is in A, giving:
P(A∣B2)=31=41
Therefore, A and B1 are independent, and A and B2 are dependent.
2
Suppose A and B are independent events with P(A)=52 and P(B)=41. Find P(A and not B) and P(not A and not B).
Because independence carries over to complements, start by finding P(not A) and P(not B) by subtracting from 1.
Since A and B are independent, their complements are also independent of each other and of the original events, with P(not A)=1−52=53 and P(not B)=1−41=43. Multiplying the independent events gives:
P(A and not B)=P(A)⋅P(not B)=52⋅43=103
For the second part, multiply the two complement probabilities directly (be careful not to compute 1−P(A and B)=1−101=109, which only excludes the overlap where both happen and still includes outcomes where A or B happens alone):
P(not A and not B)=P(not A)⋅P(not B)=53⋅43=209
3
Events A and B have probabilities P(A)=31 and P(B)=21. Find P(A and B) first if A and B are disjoint, and second if A and 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 against what "independent" requires for that same overlap.
If A and B are disjoint, they have no overlap, so:
P(A and B)=0
If A and B are independent, their overlap is the product of their probabilities:
P(A and B)=P(A)⋅P(B)=31⋅21=61
(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)>0 while disjointness forces the overlap to be 0, two events with positive probabilities can never be both: No.
4
A fair coin is flipped 3 times, giving 8 equally likely outcomes. Let E1 be the event that flips 1 and 2 match, E2 be the event that flips 2 and 3 match, and E3 be the event that flips 1 and 3 match. Show that E1,E2, and E3 are pairwise independent, but not mutually independent.
List which of the 8 outcomes belong to E1,E2, and E3, then zoom into a single event Ej before zooming into the combined clue E1 and E2.
Out of the 8 outcomes, each event contains 4 outcomes:
So P(E1)=P(E2)=P(E3)=84=21. Any two of these events overlap on the 2 outcomes {HHH,TTT} (don't forget TTT alongside HHH; leaving out TTT makes the three-way overlap look like 81 and hides the dependence!). Zooming into any single event Ej leaves 2 out of 4 outcomes in each of the others:
P(Ei∣Ej)=42=21=P(Ei)
Thus E1,E2, and E3 are pairwise independent. However, if both E1 and E2 happen, the outcome must be in {HHH,TTT}, where flips 1 and 3 are guaranteed to match:
P(E3∣E1 and E2)=1=21
Therefore, the three events are pairwise independent, but not mutually independent.
5
A multiple-choice quiz has 6 questions, and each question has 4 choices (1 correct and 3 incorrect). If you guess independently on every question, what is the probability that you get exactly 2 questions right?
Make sure to multiply by (43)4 to lock the other 4 slots as wrong answers (stopping at (26)(41)2=1615 leaves the other 4 slots blank, and leaving off (26) gives only a single sequence's probability 409681).
Treat the 6 questions as 6 slots: how many ways can you choose 2 slots for the right answers, and what must fill the remaining 4 slots?
Each question is an independent trial with win probability p=41 and loss probability 1−p=43. Choosing 2 of the 6 slots for the right answers gives (26)=15 sequences. Make sure to multiply by (43)4 to lock the other 4 slots as wrong answers (stopping at (26)(41)2=1615 leaves the other 4 slots blank, and leaving off (26) gives only a single sequence's probability 409681):
On the same 6-question quiz where each independent guess is right with probability 41, what is the probability of getting at least 1 question right, and what is the probability of getting at least 2 questions right?
Instead of adding up 1 through 6 right answers, subtract the few excluded win totals from 1.
Subtracting the single sequence with 0 right answers from 1 gives:
P(at least 1 right)=1−P(0 right)=1−(43)6=1−4096729=40963367
For at least 2 right answers, subtract both 0 right and 1 right from 1. (Be careful not to subtract only P(1 right), which gives 40962638, and remember the (16)=6 slot choices for the single right answer so you don't subtract just 4096243 to get 40963124):
P(at least 2 right)=1−(43)6−(16)(41)1(43)5=1−4096729−40961458=40961909
7
An archer hits the bullseye on each shot independently with probability 51. She keeps shooting until she hits her 3rd bullseye and then stops immediately. What is the probability that she stops on her 7th shot?
Don't use (37)=35, which lets the 3rd bullseye happen before shot 7 and gives 156251792.
Draw 7 slots: if she stops immediately on shot 7, which slot is locked as a bullseye, and how many bullseyes are left to place in the earlier slots?
Draw 7 slots and lock the 3rd bullseye (W) in slot 7. The first 6 slots must contain 2 wins and 4 losses in any order, which can be arranged in (26)=15 ways. (Don't use (37)=35, which lets the 3rd bullseye happen before shot 7 and gives 156251792.) Every valid 7-shot sequence has 3 wins and 4 losses:
P(stops on 7th shot)=(26)(51)3(54)4=15⋅78125256=15625768
8
A spinner lands on Red with probability 21, Blue with probability 31, and Yellow with probability 61. In 7 independent spins, what is the probability of getting 3 Reds, 2 Blues, and 2 Yellows?
Don't pick the Blue slots out of all 7 slots using (27)=21, which overwrites Red slots and gives 864245.
Fill the 7 empty slots in stages: first pick 3 slots for Red, then pick 2 of the remaining empty slots for Blue, before multiplying by the probability of one sequence.
From 7 empty slots, there are (37)=35 ways to pick slots for the 3 Reds, and then (24)=6 ways to pick slots for the 2 Blues from the 4 remaining empty slots (don't pick the Blue slots out of all 7 slots using (27)=21, which overwrites Red slots and gives 864245), leaving 1 way to fill the last 2 slots with Yellows. This gives 35×6=210 sequences, each with probability (21)3(31)2(61)2=25921:
A box of 10 lightbulbs contains 4 defective bulbs and 6 good bulbs. You test 4 bulbs one by one without replacement. (a) What is the probability that exactly 2 of the 4 bulbs tested are defective? (b) What is the probability that the 4th bulb tested is the 2nd defective bulb you find?
Because bulbs are not replaced, do not use a constant p=104=52 in the Binomial Formula (which would give 625216 for (a) and 625108 for (b)).
Because bulbs are tested without replacement, find the probability of one sequence like DDGG 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=104=52 in the Binomial Formula (which would give 625216 for (a) and 625108 for (b)). Instead, any single sequence of 2 defective (D) and 2 good (G) bulbs multiplies the same numerators (4,3 and 6,5) over the same denominator (10×9×8×7):
P(one 2-D,2-G sequence)=104⋅93⋅86⋅75=141
(a)Placing the 2D's anywhere among the 4 slots gives (24)=6 sequences:
P(exactly 2D in 4 draws)=(24)⋅141=6⋅141=73
(b)Locking the 2ndD in slot 4 leaves (13)=3 ways to place the 1stD among the first 3 slots: