Intuition What this page is for
The parent note built the machine: P ( A ∣ B ) = P ( B ) P ( A ∩ B ) . This page drives it through every kind of terrain — clean cases, the sneaky "flip the bar" trap, degenerate inputs where the denominator misbehaves, chaining across many draws, conditioning on a complement, conditioning on one cell of a partition, a real-world word problem, and an exam-style twist. By the end, no scenario should surprise you.
Read the parent first: Conditional probability — P(A - B) = P(A∩B) - P(A) .
Every conditional-probability question you meet falls into one of these case classes . We will hit each cell at least once.
#
Case class
What makes it tricky
Worked in
C1
Basic overlap (equally likely, count in a shrunken universe)
forgetting to restrict to B
Ex 1
C2
Flip the bar — $P(A
B)v s P(B
A)$
C3
Chaining without replacement (multiplication rule)
universe shrinks each step
Ex 3
C4
Independence check — is $P(A
B)=P(A)$?
overlap can look dependent
C5
Degenerate: P ( B ) = 0 (impossible condition)
formula divides by zero
Ex 5
C6
Degenerate: A ⊆ B or B ⊆ A (nested events)
answer is 0 or 1
Ex 5
C7
Condition on a complement $P(A
B^c)$
you may not touch the numerator's A
C8
Real-world word problem (base rates / false positives)
reversing the condition gives the wrong answer
Ex 7
C9
Limiting behaviour — condition shrinks toward a single outcome
probabilities snap to 0 or 1
Ex 8
C10
Condition on one cell of a partition (disjoint B 1 , … , B n )
the parts must be disjoint and cover all
Ex 9
C11
Exam twist — condition on a union
must not double-count the overlap
Ex 10
Prerequisite pictures we lean on: Sample space and events (the universe), Tree diagrams (chaining), Multiplication rule of probability , Independence of events , Bayes' Theorem , Law of total probability .
Worked example Ex 1 — Fair die, restrict to the even world
Roll a fair six-sided die. Let A = { score is a prime} = { 2 , 3 , 5 } and B = { score is even} = { 2 , 4 , 6 } . Find P ( A ∣ B ) .
Forecast: guess a fraction now — how many of the even numbers are prime? Write your guess.
Step 1 — draw the universe and shade B .
Why this step? Conditional probability means "throw away everything outside B ." The picture makes the new (smaller) universe literal: only { 2 , 4 , 6 } survive.
Step 2 — find the overlap A ∩ B .
The primes that are also even: only 2 . So A ∩ B = { 2 } and P ( A ∩ B ) = 6 1 .
Why this step? The numerator counts outcomes in both — the amber cell in the figure.
Step 3 — find P ( B ) .
B = { 2 , 4 , 6 } has 3 outcomes, so P ( B ) = 6 3 = 2 1 .
Why this step? B is the denominator: it is the size of the world we now live in.
Step 4 — divide.
P ( A ∣ B ) = P ( B ) P ( A ∩ B ) = 3/6 1/6 = 3 1 .
Why this step? This is the definition itself — overlap over shrunken universe. Dividing rescales the small amber slice by the size of the world we now live in, turning a raw count into a probability that sums to 1 inside B .
Verify: Restrict to { 2 , 4 , 6 } directly and count primes inside: only { 2 } , i.e. 1 of 3 . Same 3 1 . ✔
Worked example Ex 2 — Same events, opposite condition
Using the exact same A = { 2 , 3 , 5 } , B = { 2 , 4 , 6 } from Ex 1, now find P ( B ∣ A ) and compare.
Forecast: will it equal 3 1 again? Guess yes/no.
Step 1 — keep the numerator, it is symmetric.
A ∩ B = { 2 } still, so P ( A ∩ B ) = 6 1 .
Why this step? "Both A and B " does not care about order — that is why the numerator is the same as Ex 1. This is exactly the trap.
Step 2 — change the denominator to the new condition A .
Now the given event is A = { 2 , 3 , 5 } , so we divide by P ( A ) = 6 3 = 2 1 .
Why this step? "Bottom = the Bar's Buddy." The condition sits right of the bar; here that is A .
Step 3 — divide.
P ( B ∣ A ) = 3/6 1/6 = 3 1 .
Why this step? Same definition as Ex 1, but the world is now A , not B . We rescale the overlap by P ( A ) so that probabilities inside the new universe A sum to 1 — a different rescaling gives a different meaning.
Step 4 — read the coincidence carefully.
Here P ( A ∣ B ) = P ( B ∣ A ) = 3 1 only because P ( A ) = P ( B ) = 2 1 . Change one event's size and the two split apart — see Ex 7.
Why this step? To kill the false lesson "they're always equal." They are equal iff P ( A ) = P ( B ) .
Verify: Bayes' Theorem says P ( B ∣ A ) = P ( A ∣ B ) P ( A ) P ( B ) = 3 1 ⋅ 1/2 1/2 = 3 1 . ✔
Worked example Ex 3 — Three aces in a row
Draw 3 cards from a standard 52 -card deck, no replacement . Find P ( all three are aces ) .
Forecast: bigger or smaller than ( 52 4 ) 3 ? Guess.
Step 1 — build the chain with a tree.
Why this step? Tree diagrams show the universe shrinking at each node — aces left and cards left both drop by one after a success.
Step 2 — first draw. P ( A 1 ) = 52 4 .
Why this step? No information yet; 4 aces among 52 cards is the raw base rate.
Step 3 — second draw given first was an ace. P ( A 2 ∣ A 1 ) = 51 3 .
Why this step? Universe shrank: conditioning on "first was an ace" leaves 3 aces in 51 cards.
Step 4 — third draw given the first two were aces. P ( A 3 ∣ A 1 ∩ A 2 ) = 50 2 .
Why this step? Two aces are gone, 50 cards remain — the condition tightens the universe again.
Step 5 — multiply along the branch.
P = 52 4 ⋅ 51 3 ⋅ 50 2 = 132600 24 = 5525 1 .
Why this step? The general Multiplication rule of probability chains conditionals: P ( A 1 ∩ A 2 ∩ A 3 ) = P ( A 1 ) P ( A 2 ∣ A 1 ) P ( A 3 ∣ A 1 ∩ A 2 ) .
Verify: 5525 1 ≈ 0.000181 , and ( 52 4 ) 3 ≈ 0.000455 — the true value is smaller because removing aces makes each later ace rarer. ✔
Worked example Ex 4 — Does knowing
B change A ?
A card is drawn from 52 . A = { the card is a King} , B = { the card is a Heart} . Is A independent of B ? Find P ( A ∣ B ) .
Forecast: does knowing "it's a Heart" change the chance it's a King?
Step 1 — the overlap. A ∩ B = { King of Hearts} , one card, so P ( A ∩ B ) = 52 1 .
Why this step? Exactly one card is both a King and a Heart — that single card is the numerator.
Step 2 — the condition. P ( B ) = 52 13 = 4 1 (13 Hearts).
Why this step? B is the given event, so its size is the denominator.
Step 3 — divide.
P ( A ∣ B ) = 13/52 1/52 = 13 1 .
Why this step? Definition — we rescale the single overlap card by the 13 -card Heart world to get the fraction of Hearts that are Kings.
Step 4 — compare to P ( A ) . P ( A ) = 52 4 = 13 1 . Since P ( A ∣ B ) = P ( A ) , the events are independent — knowing it's a Heart tells you nothing about Kinghood.
Why this step? Independence of events is precisely the case P ( A ∣ B ) = P ( A ) .
Verify: independence also means P ( A ∩ B ) = P ( A ) P ( B ) : check 4 1 ⋅ 13 1 = 52 1 . ✔
Worked example Ex 5 — When the machine breaks or trivialises
Same fair die. Answer three edge questions.
(a) P ( B ) = 0 — impossible condition. Let B = { score is 7 } . Find P ( A ∣ B ) for any A .
Step 1. P ( B ) = 0 because 7 is not a face.
Why this step? B is empty — no outcome realises it.
Step 2. P ( A ∣ B ) = 0 P ( A ∩ B ) — undefined .
Why this step: the formula's fine print is P ( B ) > 0 ; dividing by zero has no value, so "given the impossible" has no answer.
(b) Nested A ⊆ B . Let A = { 2 } , B = { 2 , 4 , 6 } . Find P ( A ∣ B ) .
Step 1. A ∩ B = A = { 2 } , so P ( A ∩ B ) = 6 1 .
Why this step? Since A lives entirely inside B , the overlap is all of A .
Step 2. P ( A ∣ B ) = 3/6 1/6 = 3 1 .
Why this step? We divide the overlap by P ( B ) exactly as always; because A ⊆ B the numerator equals P ( A ) , so the formula reduces to the clean shape P ( A ∣ B ) = P ( B ) P ( A ) .
(c) Reverse nesting B ⊆ A . Let A = { 2 , 4 , 6 } , B = { 4 } . Find P ( A ∣ B ) .
Step 1. A ∩ B = B = { 4 } , P ( A ∩ B ) = 6 1 .
Why this step? B sits inside A , so the overlap is all of B .
Step 2. P ( A ∣ B ) = 1/6 1/6 = 1 .
Why this step? We still divide by P ( B ) , but now every outcome of the condition already lies in A ; the overlap equals the whole condition, so the ratio is forced to 1 — certainty.
Verify: (b) 3 1 and (c) 1 ; and P ( B ∣ B ) = 1 always, matching the rescaling logic in the parent. ✔
Worked example Ex 6 — Given "NOT even", how likely is prime?
Same fair die, A = { prime} = { 2 , 3 , 5 } , B = { even} = { 2 , 4 , 6 } . Now condition on B c (the die is odd ). Find P ( A ∣ B c ) .
Forecast: does P ( A ∣ B ) + P ( A ∣ B c ) add to 1 ? Guess yes/no before computing.
Step 1 — build the complement.
B c = { 1 , 3 , 5 } (the odd faces), so P ( B c ) = 6 3 = 2 1 .
Why this step? Conditioning on B c means the new universe is "everything not in B ." We may change the condition to its complement, but the event A on the left of the bar stays untouched.
Step 2 — overlap of A with the new universe.
A ∩ B c = { 2 , 3 , 5 } ∩ { 1 , 3 , 5 } = { 3 , 5 } , so P ( A ∩ B c ) = 6 2 .
Why this step? The numerator counts primes that are also odd — the primes surviving in the odd world.
Step 3 — divide.
P ( A ∣ B c ) = 3/6 2/6 = 3 2 .
Why this step? Definition — overlap over the shrunken (odd) universe.
Step 4 — check the two false "complement" laws.
From Ex 1, P ( A ∣ B ) = 3 1 . Then P ( A ∣ B ) + P ( A ∣ B c ) = 3 1 + 3 2 = 1 — here it happens to equal 1 , but only by coincidence (both conditions have size 3 and split the primes evenly). The law that is always true is on the event: P ( A ∣ B ) + P ( A c ∣ B ) = 1 , changing A , never the condition.
Why this step? The parent's mistake box warns that P ( A ∣ B ) + P ( A ∣ B c ) = 1 is not a law; this example shows it can hold by accident, so you must not rely on it.
Verify: the always-true law: P ( A c ∣ B ) = P ( B ) P ( A c ∩ B ) with A c ∩ B = { 4 , 6 } gives 3/6 2/6 = 3 2 , and 3 1 + 3 2 = 1 . ✔
Worked example Ex 7 — Rare disease, good test, surprising answer
A disease affects 2% of a population. A test gives a positive result for 95% of sick people (true positive) and for 5% of healthy people (false positive). You test positive . Find P ( sick ∣ + ) .
Forecast: guess a number. Most people guess "about 95% ." Watch what happens.
Step 1 — take a concrete crowd of 10000 .
Sick = 2% of 10000 = 200 . Healthy = 9800 .
Why this step? Whole numbers make the shrunken universe visible — this is Law of total probability in disguise.
Step 2 — split each group by test result (build the 2 × 2 tree).
Sick and + : 95% of 200 = 190 . Healthy and + : 5% of 9800 = 490 .
Why this step? The numerator we need is "sick and positive"; the denominator is "everyone positive."
Step 3 — restrict to the new universe: everyone positive.
Total positives = 190 + 490 = 680 .
Why this step? We condition on + , so + is the world now.
Step 4 — the sick fraction of that world.
P ( sick ∣ + ) = 680 190 = 68 19 ≈ 0.279.
Why this step? Definition — favourable (sick + ) over total (all + ).
Step 5 — the moral. Only about 28% , not 95% ! Because the healthy group is so huge, its 5% of false positives (490 ) swamps the sick group's true positives (190 ). This is the Bayes' Theorem flip: P ( sick ∣ + ) = P ( + ∣ sick ) .
Why this step? To fix in memory that reversing the bar (base-rate neglect) is the classic real-world error.
Verify: Bayes directly: 0.02 ⋅ 0.95 + 0.98 ⋅ 0.05 0.02 ⋅ 0.95 = 0.068 0.019 ≈ 0.279 . ✔
Worked example Ex 8 — Squeezing the condition to a single point
Roll a fair die. Fix A = { 6 } . Watch P ( A ∣ B k ) as the condition B k shrinks:
B 1 = { 4 , 5 , 6 } , then B 2 = { 5 , 6 } , then B 3 = { 6 } .
Forecast: as B closes in on { 6 } , where does the answer head?
Step 1 — B 1 = { 4 , 5 , 6 } . A ∩ B 1 = { 6 } , so P ( A ∣ B 1 ) = 3/6 1/6 = 3 1 .
Why this step? One favourable outcome out of three in the universe.
Step 2 — B 2 = { 5 , 6 } . P ( A ∣ B 2 ) = 2/6 1/6 = 2 1 .
Why this step? Universe halved, but the favourable outcome 6 still survives — the fraction rises.
Step 3 — B 3 = { 6 } . P ( A ∣ B 3 ) = 1/6 1/6 = 1 .
Why this step? The condition now is the outcome — certainty.
Step 4 — read the limit. As the condition tightens around the single outcome that makes A true, P ( A ∣ B k ) → 1 . Had we squeezed toward { 4 , 5 } (missing 6 ) instead, the overlap would vanish and P ( A ∣ B k ) → 0 .
Why this step? Limiting a condition either guarantees or forbids A — the answer snaps to 1 or 0 , never stalls in between at the endpoint.
Verify: the sequence is 3 1 , 2 1 , 1 — strictly increasing to 1 . ✔
Worked example Ex 9 — Balls in three coloured urns (a true partition)
A factory sends parts through three disjoint machines M 1 , M 2 , M 3 that together handle all parts: M 1 makes 50% , M 2 makes 30% , M 3 makes 20% . A part is defective with probability 0.02 , 0.04 , 0.10 on M 1 , M 2 , M 3 respectively. Find P ( defective ∣ M 2 ) , and then the overall P ( defective ) .
Forecast: is P ( defective ∣ M 2 ) just 0.04 , or do the machine shares matter?
Step 1 — check that M 1 , M 2 , M 3 form a partition.
They are disjoint (a part comes from exactly one machine) and cover everything (0.5 + 0.3 + 0.2 = 1 ).
Why this step? Law of total probability only works when the conditions are disjoint parts that tile the whole sample space — this is what "partition" means.
Step 2 — condition on the single cell M 2 .
P ( defective ∣ M 2 ) = 0.04 is given directly — it is already the fraction of defectives within the M 2 world .
Why this step? Conditioning on one cell means the universe is just that cell; the per-cell defect rate is exactly the conditional probability, no rescaling needed.
Step 3 — recombine the cells for the overall rate.
P ( defective ) = ∑ i P ( M i ) P ( defective ∣ M i ) = 0.5 ( 0.02 ) + 0.3 ( 0.04 ) + 0.2 ( 0.10 ) .
Why this step? Law of total probability weights each cell's conditional by how big that cell is, then sums — because the cells partition the space.
Step 4 — compute.
P ( defective ) = 0.010 + 0.012 + 0.020 = 0.042.
Why this step? Arithmetic finishes the total-probability sum.
Verify: 0.5 ⋅ 0.02 + 0.3 ⋅ 0.04 + 0.2 ⋅ 0.10 = 0.042 , and conditioning on M 2 alone returns 0.04 . ✔
Worked example Ex 10 — Condition on "
B or C "
Fair die. A = { prime} = { 2 , 3 , 5 } . Condition on B ∪ C where B = { even} = { 2 , 4 , 6 } and C = { score ≤ 2 } = { 1 , 2 } . Find P ( A ∣ B ∪ C ) .
Forecast: the condition is now a union — will the denominator be P ( B ) + P ( C ) ? Careful.
Step 1 — build the union carefully (inclusion–exclusion).
B ∪ C = { 2 , 4 , 6 } ∪ { 1 , 2 } = { 1 , 2 , 4 , 6 } . Note 2 is counted once , not twice.
Why this step? P ( B ∪ C ) = P ( B ) + P ( C ) − P ( B ∩ C ) = 6 3 + 6 2 − 6 1 = 6 4 . Naïvely adding P ( B ) + P ( C ) = 6 5 would be wrong.
Step 2 — overlap of A with the union.
A ∩ ( B ∪ C ) = { 2 , 3 , 5 } ∩ { 1 , 2 , 4 , 6 } = { 2 } , so P = 6 1 .
Why this step? Only 2 is both prime and in the conditioning set.
Step 3 — divide.
P ( A ∣ B ∪ C ) = 4/6 1/6 = 4 1 .
Why this step? Definition, with the correct union denominator — the shrunken universe is { 1 , 2 , 4 , 6 } .
Verify: restrict to { 1 , 2 , 4 , 6 } and count primes: only { 2 } — that's 1 of 4 . Same 4 1 . ✔
Recall Quick self-test on the matrix
Which cell does "given two aces already drawn, chance the next is an ace" hit? ::: C3 — chaining without replacement.
Why is P ( A ∣ { 7 }) undefined on a die? ::: The condition has P ( B ) = 0 ; dividing by zero is undefined (C5).
If A ⊆ B , simplify P ( A ∣ B ) . ::: P ( A ) / P ( B ) (C6).
When conditioning on B c , which quantity must you NOT change? ::: The event A on the left of the bar; only the condition becomes B c (C7).
In the disease problem, why isn't the answer 95% ? ::: False positives from the huge healthy group dominate (C8 / Bayes flip).
What two properties make M 1 , M 2 , M 3 a partition? ::: Disjoint (no overlap) and exhaustive (probabilities sum to 1) (C10).
Denominator for conditioning on B ∪ C ? ::: P ( B ∪ C ) = P ( B ) + P ( C ) − P ( B ∩ C ) , not P ( B ) + P ( C ) (C11).
Mnemonic One line to carry
Shrink, overlap, divide. Every example is the same three moves: shrink the universe to the condition, count the overlap, divide by the shrunken universe.
Multiplication rule of probability — the engine behind Ex 3's chaining.
Tree diagrams — the picture for Ex 3 and Ex 7.
Independence of events — the test in Ex 4.
Bayes' Theorem — the correct flip in Ex 2 and Ex 7.
Law of total probability — the partition recombination in Ex 9.
Sample space and events — the universe we keep shrinking.