In short
The conditional probability of A given B, written , is the probability that A happens when we know B has happened: . Rearranged, it gives the general multiplication rule , which is how probabilities are multiplied along the branches of a tree diagram.
What you need to know
- Calculate conditional probabilities from a two-way table.
- Use the formula P(A | B) = P(A and B) / P(B).
- Apply the general multiplication rule.
- Use a tree diagram to solve multi-stage problems, including finding P(B | A) from P(A | B).
Conditioning shrinks the sample space
In the survey of 300 students (sport and breakfast: 90; sport only: 30; breakfast only: 96; neither: 84), choose a student at random. Knowing the student plays sport restricts us to the 120 sport players, so
The order matters. P(sport | breakfast) restricts to the 186 breakfast eaters instead: 90/186 ≈ 0.484. The given event, after the bar, decides the denominator.
Tree diagrams and the multiplication rule
Medical tests are the classic multi-stage problem. Suppose 2% of a population has a condition. A test is positive for 95% of people who have it and for 10% of people who don't (false positives). Draw a tree: first branch condition (0.02) or not (0.98); then test positive or negative.
| Path | Calculation | Probability |
|---|---|---|
| Condition and positive | 0.02 × 0.95 | 0.019 |
| Condition and negative | 0.02 × 0.05 | 0.001 |
| No condition and positive | 0.98 × 0.10 | 0.098 |
| No condition and negative | 0.98 × 0.90 | 0.882 |
P(positive) adds the two positive paths: 0.019 + 0.098 = 0.117. Now reverse the condition: if someone tests positive, what is the chance they have the condition?
Reading the question
'Given', 'if', 'among' and 'of those who' all signal conditioning. 'P(positive | condition) = 0.95' and 'P(condition | positive) ≈ 0.16' are different questions with very different answers; confusing them is a famous error in courtrooms and newspapers.
Turning a tree into a table
Another way to see the medical test result is to imagine 10,000 people. About 200 have the condition, and 190 of them test positive. Of the 9,800 without it, about 980 test positive. So 190 + 980 = 1,170 people test positive, and only 190 of them, about 16%, have the condition. Picturing a round number of people turns the formula into simple counting, and it is a good check on any tree-diagram answer.
This also explains why screening programmes retest people who are positive: a second, independent test raises the probability sharply, because the first positive result has already removed most of the healthy group.
Key terms
- Conditional probability
- P(A | B), the probability of A given that B has occurred.
- General multiplication rule
- P(A and B) = P(B) × P(A | B).
- Tree diagram
- A diagram of a multi-stage process; multiply along branches and add the end probabilities you need.
- False positive
- A positive test result for someone who does not have the condition.
Common mistakes
Confusing P(A | B) with P(B | A).
The event after the bar is the one known to have happened; it gives the denominator.
Adding along branches of a tree.
Multiply along a path; add across different paths that lead to the same result.
Using the grand total as the denominator for a conditional probability.
Divide by the total of the given group only.
How this topic is tested
- Write the probability in notation first, e.g. P(condition | positive).
- Label every tree branch with its probability; branches from one point add to 1.
- For a reversed conditional, compute P(both) ÷ P(given) and show both numbers.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · SP 3 · Analyze Data
In a class, P(plays chess) = 0.25 and P(plays chess and plays piano) = 0.10. What is P(plays piano | plays chess)?
Question 2 · SP 3 · Analyze Data
Using the sport and breakfast survey, what is P(no breakfast | no sport)?
Question 3 · SP 3 · Analyze Data
A factory's machine A makes 60% of parts, with 3% defective; machine B makes 40%, with 5% defective. What is the probability a random part is defective?
Question 4 · SP 3 · Analyze Data
For the same factory, a part is defective. What is the probability it came from machine B?
Question 5 · SP 3 · Analyze Data
Which statement correctly uses the general multiplication rule?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Practices 3 and 4 · 4 points
At a college, 30% of applicants apply early. Of early applicants, 50% are admitted; of regular applicants, 20% are admitted.
- (a) Calculate the probability that a randomly chosen applicant is admitted.
- (b) Calculate the probability that an admitted applicant applied early.
- (c) Interpret the probability in (b) in context.
Scoring guide: one point for each of the following
Part (a)
- P(admitted) = 0.30 × 0.50 + 0.70 × 0.20 = 0.15 + 0.14 = 0.29.
Part (b)
- P(early | admitted) = P(early and admitted)/P(admitted) = 0.15/0.29.
- ≈ 0.517.
Part (c)
- About 52% of admitted applicants applied early, even though only 30% of applicants apply early.
Connected topics
Frequently asked questions
Can P(A | B) be larger than P(A)?
Yes. In the survey, P(breakfast) = 0.62 but P(breakfast | sport) = 0.75. When conditioning changes the probability, the events are not independent.
Do I have to draw a tree?
No, but trees make multi-stage problems much less error-prone, and graders accept them as work.
What if P(B) = 0?
P(A | B) is not defined, because B cannot happen.