AP® Statistics · Unit 2 · Topic 2.6

Conditional Probability

Conditional probability is the chance of an event given that another event already happened, found by shrinking the sample space down to only the outcomes where the given condition is true.

Once you know an event happened, every outcome outside it becomes impossible, so the chance of anything else has to be recalculated inside that smaller world. That is why learning a new fact changes the odds of something else that already happened: you are not changing the past, you are changing which outcomes are still in play. P(A given B) asks: out of all the times B happens, how often does A happen too? The formula P(A|B) = P(A and B) / P(B) just says to divide the overlap by the new, smaller sample space.

In a two-way table, conditioning means picking one row or one column and ignoring the rest of the table entirely. If B is 'tested positive,' you throw away everyone who tested negative, then ask what fraction of the remaining people actually have the disease. That is why P(A|B) and P(B|A) are usually different numbers: P(A|B) divides by the total in row B, while P(B|A) divides by the total in row A, and those row totals are rarely equal. Confusing the two is one of the most common errors in probability.

This idea is the engine behind Bayes' rule, which is really just conditional probability applied twice: once to find the overlap P(A and B), and once to find the total P(B) by adding up every way B could happen. It also connects forward to independence, since A and B are independent exactly when knowing B teaches you nothing, meaning P(A|B) equals P(A). Testing problems make the stakes clear: as a disease gets rarer, false positives from the enormous healthy population start to outnumber true positives, so a positive test means less and less.

Key terms

Conditional probability
The probability of an event given that another event is already known to have occurred.
Sample space
The full set of possible outcomes, which shrinks once a condition is known to be true.
Bayes' rule
A formula that reverses a conditional probability by combining it with the overall rates of each event.
Sensitivity
The probability a test correctly identifies a true positive case.
False positive rate
The probability a test incorrectly flags a healthy person as positive.

Watch it explained

  1. How it worksWalk me through how conditioning shrinks the sample space down to one row of a table.
  2. Worked exampleFind the chance a person has a disease given a positive test when only 1 percent are sick.
  3. Common mistakeWhy isn't P(A given B) the same number as P(B given A)?
  4. Going furtherWhat happens to the chance a positive test is right when the disease gets rarer?

Check yourself

Your turn1 of 2
In a population, 0.0379 of people have a disease. A test correctly detects the disease with probability 0.941 (sensitivity) and gives a false positive with probability 0.0939 in healthy people. Find the probability a person actually has the disease, given a positive test result.

End of topic.