Mistake Master
Conditional Probability
One Cell, Three Denominators, and Only One Is the Question
You'll learnwhat conditioning does to the sample space, how to read a conditional probability off a row or a column of a two-way table, why P(A given B) and P(B given A) are different questions, how a tree multiplies along a branch and adds across paths, and why a 95% accurate test can be wrong about most of its positives.
Thirty students hold a job and are seniors. That one count answers three different questions depending on what it is divided by: 30 of 200 students (0.15), 30 of 60 seniors (0.50), 30 of 72 job-holders (0.4167). The word "given" picks the denominator, and picking the wrong one is this topic's entire catalogue of errors. Then the same move at scale: a disease test that is positive for 95% of the people who have it, pointed at a population where only 1% do. The 9,900 healthy people send 990 false positives against the sick group's 95 true ones, so a positive result means disease with probability 95/1085 — about 0.088. Nothing is wrong with the test. The condition changed, and the denominator changed with it. Twelve short steps; press Next for each one.
Read all 12 steps as text
Two hundred students, sorted two ways
Every student in the school falls in exactly one of these four cells: senior or not, holding a job or not.
Given senior, the world is one row
The word "given" throws away everyone outside the condition, so the 140 non-seniors stop existing and the senior row becomes the whole sample space.
One cell, three different denominators
The same 30 students answer three separate questions: divided by everyone it is the joint probability, divided by the row it is P(job given senior), and divided by the column it is P(senior given job).
Reversing the bar asks a different thing
Condition on holding a job instead and the world becomes the amber column, so the same cell is now measured against 72 rather than 60.
The second chip depends on the first
Draw one red chip and do not put it back, and the bag that the second draw faces is a different bag: three red among nine rather than four among ten.
Ten thousand people and a good test
The tree splits the population first by who has the disease and then by what the test says, and every rate rides the node it belongs to.
Two paths end positive, so add them
Multiply along each branch and add across the paths: the disease road gives 95 positives and the healthy road gives 990, and together they are every positive test there is.
The same table, ten thousand people
The four leaves of the tree are the four cells of a two-way table, and it is the same table the students were in — a row, a column, and one cell where they cross.
The healthy group sends more positives
Condition on the positive result and the world becomes the positive column: 1,085 people, of whom only 95 are actually sick.
Nothing is wrong with the test
Plot that reversed conditional against how common the disease is, and the 0.088 turns out to be a fact about the population rather than about the test.
The same test in a sicker population
In a clinic where 40% of the patients already have the disease, the true positives outnumber the false ones and the same two test rates read very differently.
The condition sets the denominator
Read the condition, take its total, and check which way the bar points — every error in this topic is the right numerator over the wrong total.