Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Statistics · Unit 2 · Step-Through Animation

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.

12 STEPS · 6 QUICK CHECKS · THE RESTRICTED WORLD · ROW VS COLUMN · TREE DIAGRAMS · THE BASE RATE · v2

One cell of 30 answers three questions; the condition sets the total
Before you start
What you're looking at
A two-way table of 200 students — 60 seniors, 72 job-holders, and 30 who are both. That cell of 30 is about to be divided by three different totals.
The question
Given that a student is a senior, what is the probability they hold a job — and why is that a different question with the two groups swapped?
Step 1 / 12

Read all 12 steps as text
Step 1

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.

Step 2

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.

Step 3

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).

Step 4

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.

Step 5

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.

Step 6

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.

Step 7

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.

Step 8

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.

Step 9

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.

Step 10

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.

Step 11

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.

Step 12

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.