01 / 20

Conditional
Probability

Explore how prior knowledge changes the likelihood of events: from \( P(A \mid B) \) to independence tests and real-world applications.

IB Mathematics AA SL 4.4

What Is Conditional Probability?

Conditional probability measures the likelihood of an event occurring given that another event has already occurred. We write it as \( P(A \mid B) \), read "the probability of \( A \) given \( B \)."

For example, the probability of drawing an ace from a standard deck is \( \frac{4}{52} \). But if you already know the card is a heart, the probability becomes \( \frac{1}{13} \) because the sample space shrinks to 13 hearts.

Visualising with a Venn Diagram

S A B
\(A \cap B\)
The shaded overlap is the key to conditional probability

Why Does It Matter?

Medicine
What is the probability a patient has a disease given a positive test result?
Finance
What is the probability a stock rises given an interest rate cut?
Quality Control
What is the probability a product is defective given it came from Machine 2?

The Core Formula

1
\( P(A \cap B) \): the probability that both \( A \) and \( B \) occur.
2
\( P(B) \): the probability of the given event (the new sample space).
3
Result: the fraction of \( B \)'s probability that overlaps with \( A \).

The Tree Diagram View

\(P(B)\)
B
\(P(B')\)
B'
\(P(A \mid B)\)
\(A \cap B\)
\(P(A' \mid B)\)
\(A' \cap B\)
\(P(A \mid B')\)
\(A \cap B'\)
\(P(A' \mid B')\)
\(A' \cap B'\)
\( \leftarrow P(B) \times P(A \mid B)\)

Conditional vs Unconditional

Conditional \( P(A \mid B) \) Unconditional \( P(A) \)
Sample space Restricted to B Entire space S
Formula \( \frac{P(A \cap B)}{P(B)} \) \( \frac{n(A)}{n(S)} \)
Notation Vertical bar " | " No bar
Information used Outcome of B is known No extra information

Testing for Independence

Two events \( A \) and \( B \) are independent if and only if any one of these equivalent conditions holds:

1
\( P(A \mid B) = P(A) \)
2
\( P(B \mid A) = P(B) \)
3
\( P(A \cap B) = P(A) \cdot P(B) \)

How to Apply the Formula

1
Identify the events: Which is \( A \) (what we want) and which is \( B \) (what we know)?
2
Find \( P(A \cap B) \): Use a Venn diagram, two-way table, or tree diagram.
3
Find \( P(B) \): The total probability of the given (conditioning) event.
4
Divide: Compute \( P(A \mid B) = \frac{P(A \cap B)}{P(B)} \).
5
Interpret: State the result in context and check if it makes sense.

Example 1: Two-Way Table

A survey of 200 students asks about sport and music participation:

Plays Sport No Sport Total
Plays Music 30 50 80
No Music 70 50 120
Total 100 100 200

Example 2: Cards and the Formula

Two cards are drawn without replacement from a standard 52-card deck. Find the probability that both are aces.

1
Let \( A_1 \) = first card is an ace, \( A_2 \) = second card is an ace.
2
\( P(A_1) = \frac{4}{52} = \frac{1}{13} \)
3
\( P(A_2 \mid A_1) = \frac{3}{51} = \frac{1}{17} \) (one ace removed, 51 cards left)
4
\( P(A_1 \cap A_2) = P(A_1) \cdot P(A_2 \mid A_1) = \frac{1}{13} \times \frac{1}{17} = \frac{1}{221} \)

Example 3: Independence Test

A bag contains 5 red and 3 blue marbles. Two marbles are drawn with replacement. Let \( R_1 \) = first is red, \( R_2 \) = second is red. Are \( R_1 \) and \( R_2 \) independent?

1
\( P(R_1) = \frac{5}{8} \), \( P(R_2) = \frac{5}{8} \)
2
\( P(R_1 \cap R_2) = \frac{5}{8} \times \frac{5}{8} = \frac{25}{64} \) (with replacement, outcomes don't change)
3
Check: \( P(R_1) \cdot P(R_2) = \frac{5}{8} \times \frac{5}{8} = \frac{25}{64} = P(R_1 \cap R_2) \) ✓

Example 4: Dependent Events

\(n(S) = 100\)
A 25 B 30 15
\(A \cap B\)
30

Common Mistakes to Avoid

✕ Confusing Direction
\( P(A \mid B) \neq P(B \mid A) \). The order matters: "given B" is different from "given A."
✕ Forgetting Dependence
Using \( P(A) \cdot P(B) \) for "without replacement" scenarios when events are actually dependent.
✕ Wrong Denominator
Using \( n(S) \) instead of \( n(B) \) as the denominator when computing \( P(A \mid B) \) from a table.

Summary of Key Formulas

Concept Formula When to Use
Conditional probability \( P(A \mid B) = \frac{P(A \cap B)}{P(B)} \) Given B occurred
Multiplication rule \( P(A \cap B) = P(A \mid B) \cdot P(B) \) Finding intersections
Independence test \( P(A \cap B) = P(A) \cdot P(B) \) Checking independence
Dependent events \( P(A \mid B) \neq P(A) \) Events influence each other

Question 1 of 5

If \( P(A) = 0.5 \), \( P(B) = 0.4 \), and \( P(A \cap B) = 0.2 \), what is \( P(A \mid B) \)?

Question 2 of 5

Events \( A \) and \( B \) are independent with \( P(A) = 0.3 \) and \( P(B) = 0.6 \). What is \( P(A \cap B) \)?

Question 3 of 5

A bag has 6 red and 4 blue balls. Two balls are drawn without replacement. What is the probability the second ball is red given the first was blue?

Question 4 of 5

Given \( P(A) = 0.4 \), \( P(B) = 0.5 \), and \( P(A \cap B) = 0.15 \). Are \( A \) and \( B \) independent?

Question 5 of 5

In a class, \( P(\text{Maths}) = 0.6 \), \( P(\text{Physics}) = 0.5 \), and \( P(\text{Maths} \mid \text{Physics}) = 0.7 \). Find \( P(\text{Maths} \cap \text{Physics}) \).