| Study Guides
Mathematics: Analysis & Approaches HL · Statistics & Probability · 20 min read · Updated 2026-05-11

Conditional probability and Bayes' theorem — IB Mathematics: Analysis and Approaches HL

IB Mathematics: Analysis and Approaches HL · Statistics & Probability · 20 min read

1. Conditional Probability: Definition & Basic Rules ★★☆☆☆ ⏱ 5 min

From the definition, the core formula for conditional probability is derived directly from the joint probability of $A$ and $B$:

P(A|B) = \frac{P(A \cap B)}{P(B)}, \quad P(B) > 0

2. Tree Diagrams & Law of Total Probability ★★☆☆☆ ⏱ 6 min

Tree diagrams are ideal for sequential probability problems. Each branch is labeled with the conditional probability of that step given all prior steps. The law of total probability lets us calculate the total probability of an outcome from all possible paths.

  1. Multiply probabilities along each path to get joint probabilities
  2. Add joint probabilities for all paths that lead to the outcome you want
  3. Confirm the sum of all joint probabilities equals 1

3. Bayes' Theorem for Two Events ★★★☆☆ ⏱ 7 min

P(B|A) = \frac{P(A|B) P(B)}{P(A)}, \quad P(A) = P(A|B)P(B) + P(A|B')P(B')

4. Extended Bayes' Theorem for Multiple Events ★★★☆☆ ⏱ 6 min

For $n$ mutually exclusive, exhaustive events $B_1, B_2, ..., B_n$, Bayes' theorem extends directly to calculate the posterior probability of any individual event:

P(B_i|A) = \frac{P(A|B_i) P(B_i)}{\sum_{k=1}^n P(A|B_k) P(B_k)}

Common Pitfalls

Why: Mixing up which event is the given event that restricts the sample space

Why: Treating dependent draws as independent, leading to incorrect joint probabilities

Why: Base rate neglect and confusion about the direction of conditional probability

Why: The denominator of Bayes' theorem relies on all possible outcomes being included and non-overlapping

Quick Reference Cheatsheet

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →