Historical Context & Motivation
Probability has been studied for centuries, but the idea of conditional probability — how the likelihood of an event changes when you already know something else has happened — transformed it from a gambler's tool into a rigorous branch of mathematics. Early thinkers realized that context matters: drawing a second card from a deck after seeing the first card is fundamentally different from drawing with no prior knowledge. This insight drives medical testing, weather forecasting, criminal investigations, and machine learning today.
The central question this topic addresses is deceptively simple: if you already know that one event has occurred, how does that change the probability of another event? Understanding this question, and knowing when the answer is "it doesn't change it at all" (independence), is one of the most powerful tools in the IB Mathematics course.
Core Principles & Definitions
Before diving into formulas, it helps to build strong intuition for the key ideas. Conditional probability is about restricting the sample space. When you learn that a certain event has already happened, you are effectively shrinking the universe of possible outcomes to only those that are consistent with that information. The probability of another event is then recalculated within this smaller universe.
Conditional Probability P(A | B)
Joint Probability P(A ∩ B)
Independent Events
Dependent Events
Mutually Exclusive Events
Visual Explanation — Venn Diagram
A Venn diagram is one of the clearest ways to see how conditional probability works. The entire rectangle represents the sample space S. Two overlapping circles represent events A and B. The overlap is the intersection A ∩ B. When we compute P(A | B), we zoom in on circle B and ask: what fraction of B is also in A?
Notice how the conditional probability P(A | B) = 0.25 is different from the unconditional probability P(A) = 0.35. This tells us that A and B are dependent events — knowing that B occurred actually lowers the chance of A in this example. If A and B were independent, we would have P(A | B) = P(A) = 0.35, and the overlap would equal P(A) × P(B) = 0.35 × 0.40 = 0.14 instead of 0.10.
Mathematical Framework
The formulas for conditional probability and independence are concise but powerful. Make sure you understand what each variable represents before memorizing the equations.
Tree Diagrams & Two-Way Tables
Two of the most useful tools for organizing conditional probability problems are tree diagrams and two-way tables. A tree diagram shows sequential events as branches, where the probability on each branch is a conditional probability given the path taken so far. You multiply along branches to get joint probabilities and add across final outcomes to get total probabilities.
The tree diagram above illustrates a classic scenario that reveals a surprising result. Even though the test is 95% accurate at detecting the disease, a person who tests positive actually has a probability of only P(D | T⁺) = 0.019 / (0.019 + 0.0294) ≈ 0.392 of truly having the disease. This is because the disease is rare (2% prevalence), so the false positives from the large healthy population outnumber the true positives. This counterintuitive result, sometimes called the base-rate fallacy, shows why understanding conditional probability is so important in real life.
| T⁺ (Positive) | T⁻ (Negative) | Total | |
|---|---|---|---|
| D (Disease) | 0.019 | 0.001 | 0.020 |
| D′ (No Disease) | 0.0294 | 0.9506 | 0.980 |
| Total | 0.0484 | 0.9516 | 1.000 |
Worked Example
Let's work through a full problem that combines conditional probability and testing for independence — the type of question that commonly appears on IB exams.
Common Pitfalls & Comparisons
Many mistakes in conditional probability come from confusing similar-sounding concepts. The table below highlights the most frequent errors and how to avoid them.
| Pitfall | What Students Do | What They Should Do |
|---|---|---|
| Swapping conditions | Treat P(A | B) as the same as P(B | A). | Carefully identify which event is 'given.' The denominator in the formula is always P(given event). |
| Confusing independent and mutually exclusive | Assume that events that can't both happen are independent. | Mutually exclusive events have P(A ∩ B) = 0, so P(A | B) = 0 ≠ P(A) — they are dependent (unless one has probability 0). |
| Using P(A) × P(B) without checking | Multiply probabilities as if events are always independent. | Only use P(A ∩ B) = P(A) × P(B) after verifying independence. Otherwise use the multiplication rule P(A ∩ B) = P(A | B) × P(B). |
| Forgetting the restricted sample space | Compute P(A | B) using the full sample space instead of restricting to B. | When B is given, only outcomes inside B matter. The denominator must be P(B), not 1. |
Connection to Advanced Theory
The conditional probability formula you've learned in SL 4.4 is the foundation for several more advanced topics. As you continue in mathematics and statistics, these ideas become increasingly powerful.
| SL 4.4 Concept | Advanced Extension | Where It Leads |
|---|---|---|
| P(A | B) = P(A ∩ B) / P(B) | Bayes' Theorem: P(A | B) = P(B | A) × P(A) / P(B) | HL Mathematics, medical diagnostics, spam filters, AI and machine learning |
| Independence: P(A ∩ B) = P(A) × P(B) | χ² test for independence | Testing whether two categorical variables are associated using real data (IB HL Topic 4) |
| Tree diagrams with conditional branches | Markov chains | Modeling systems where the next state depends only on the current state — used in Google PageRank, genetics, economics |
| Multiplication rule for dependent events | Conditional distributions | University-level probability: defining entire probability distributions conditional on other random variables |
The most immediate extension you might encounter is Bayes' Theorem, which lets you "reverse" a conditional probability. In the medical test tree diagram from Section 5, we used Bayes' Theorem (without naming it) when we calculated P(D | T⁺) from P(T⁺ | D). If you study HL Mathematics or take statistics at university, Bayes' Theorem will become one of your most-used tools.
Practice Problems
Lesson Summary
Conditional probability measures how the probability of an event changes when you know another event has occurred. The formula P(A | B) = P(A ∩ B) / P(B) captures this by restricting the sample space to only the outcomes where B is true. The multiplication rule rearranges this to P(A ∩ B) = P(A | B) × P(B), which is essential for tree diagram calculations. Two events are independent if and only if P(A | B) = P(A), equivalently P(A ∩ B) = P(A) × P(B). Independence means one event gives no information about the other.
Key tools for solving problems include Venn diagrams (for visualizing overlaps), tree diagrams (for sequential events with branches showing conditional probabilities), and two-way tables (for organizing joint and marginal probabilities). Always be careful not to confuse P(A | B) with P(B | A), and remember that mutually exclusive events are dependent, not independent. These concepts form the basis for Bayes' Theorem, the chi-squared test for independence, and much of university-level statistics.