SL AI · Statistics and Probability

Conditional probability with tree diagrams (IB Math AI SL)

Updated October 2026

Quick answer: P(A | B) = P(A ∩ B) ÷ P(B): the probability of A once you know B has happened. On a tree diagram, divide the probability of the one path you want by the total probability of every path that gives B.

P(A|B) = P(A ∩ B)/P(B) — but SL AI expects you to build the tree diagram and read off the answer, not manipulate the formula abstractly.

Practise Conditional probability with tree diagrams with AI marking

Open the full SL AI engine — every question in this unit is worked through with instant AI-graded feedback on your handwritten workings.

Practise SL AI Statistics and Probability →

Key ideas

Worked example

2% of people have a condition. A test is positive for 95% of people who have it and for 8% of people who do not. Find the probability that a randomly chosen person tests positive, and the probability that a person who tests positive has the condition.

  1. Tree: condition (0.02) then positive (0.95); no condition (0.98) then positive (0.08).
  2. P(positive) = 0.02 × 0.95 + 0.98 × 0.08 = 0.019 + 0.0784 = 0.0974.
  3. P(condition | positive) = 0.019 ÷ 0.0974 = 0.195 (3 s.f.).
  4. So only about 1 in 5 positive results is a true positive, because the condition is rare.

Answer: P(positive) = 0.0974; P(condition | positive) = 0.195.

Exam-style SL AI questions on this topic

Key formulas for conditional probability with tree diagrams

Probability of an event
P(A) = (n(A))/(n(U))
Conditional probability
P(A | B) = (P(A ∩ B))/(P(B))

In the notation of the IB formula booklet. All SL AI formulas · see them used in worked examples

Try it now

1 of 5

  1. Question 1 of 5
  2. Question 2 of 5
  3. Question 3 of 5
  4. Question 4 of 5
  5. Question 5 of 5

5 quick questions on conditional probability. No sign-in needed.

\(P(A) = \frac{2}{5}\), \(P(B \mid A) = \frac{1}{2}\) and \(P(B \mid A') = \frac{1}{3}\). Find \(P(A \mid B)\).
Choose your answer · keys 1–4

Maths IA ideas that use conditional probability with tree diagrams

Related in Statistics and Probability

Revise Conditional probability with tree diagrams for the exam

Stretch yourself: original probability problems at Senior level (ages 16 to 18), with hints and full solutions: Problem S32 · Problem S105 · Problem S33 · Problem S106. All 20 →

More on this topic

Formulas in this topic: Conditional probability. All formulas A–Z

Sibling topic in other IB Maths courses

FAQ

How do you do conditional probability on a tree diagram?

Multiply along each path. Then P(first outcome | second outcome) is the probability of the path with both, divided by the sum of every path that ends in the second outcome.

Where can I practise conditional probability with tree diagrams questions?

On the Probability questions page: 60 exam-style SL AI questions with full mark schemes, plus free step-by-step worked examples.

Can I use my calculator for conditional probability with tree diagrams?

Yes: a GDC is allowed on every SL AI paper, so practise the calculator method as well as the working.

What else is free here

Save your progress as you reviseA free account remembers the questions you have done on every topic and brings you back to this page.

Join free

Already have an account? Sign in