HL AA · Statistics and Probability

Conditional probability and Bayes' theorem (IB Math AA HL)

Updated October 2026

Quick answer: P(A | B) = P(A ∩ B) ÷ P(B). Bayes' theorem reverses a condition: if you know P(B | A) for each possible cause A, then P(A | B) is the probability of the path through A divided by the total probability of B. AA HL uses it with two or three causes.

P(A|B) = P(A∩B)/P(B). HL AA Paper 2 loves the disease-test problem: given a positive test, what's the probability of actually having the disease?

Practise Conditional probability and Bayes' theorem with AI marking

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

Practise HL AA Statistics and Probability →

Key ideas

Worked example

Machines A, B and C make 50%, 30% and 20% of a factory's bolts. The proportions of faulty bolts are 2% from A, 3% from B and 6% from C. A bolt is chosen at random and is faulty. Find the probability that it was made by each machine.

  1. Paths: A and faulty = 0.5 × 0.02 = 0.010; B and faulty = 0.3 × 0.03 = 0.009; C and faulty = 0.2 × 0.06 = 0.012.
  2. Total: P(faulty) = 0.010 + 0.009 + 0.012 = 0.031.
  3. P(A | faulty) = 0.010 ÷ 0.031 ≈ 0.323.
  4. P(B | faulty) = 0.009 ÷ 0.031 ≈ 0.290.
  5. P(C | faulty) = 0.012 ÷ 0.031 ≈ 0.387. C makes the fewest bolts but is the most likely source of a faulty one.

Answer: P(A | faulty) ≈ 0.323, P(B | faulty) ≈ 0.290, P(C | faulty) ≈ 0.387 (they add to 1).

Exam-style HL AA questions on this topic

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{3}{5}\), \(P(B \mid A) = \frac{2}{3}\) and \(P(B \mid A') = \frac{1}{2}\). Find \(P(A \mid B)\).
Choose your answer · keys 1–4

Maths IA ideas that use conditional probability and bayes' theorem

Related in Statistics and Probability

Revise Conditional probability and Bayes' theorem for the exam

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

More on this topic

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

Sibling topic in other IB Maths courses

FAQ

What is Bayes' theorem used for?

It finds the probability of a cause given what you observed, when you know the probability of the observation for each cause. For example: given that a bolt is faulty, which machine most likely made it?

Where can I practise conditional probability and Bayes' theorem questions?

On the Conditional Probability questions page: 33 exam-style HL AA questions with full mark schemes, plus free step-by-step worked examples.

Can I use my calculator for conditional probability and Bayes' theorem?

In HL AA, Paper 1 is non-calculator and the other papers allow a GDC, so learn the exact method as well as the calculator one.

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