01 / 19

Conditional
Probability

Master the art of calculating probabilities given that something has already happened. Explore \( P(A|B) \), independence, and real-world applications.

IB Math: Applications & Interpretation

What Is Conditional Probability?

Conditional probability measures the likelihood of an event occurring given that another event has already occurred. Instead of looking at the entire sample space, we restrict our attention to a smaller subset.

Think of it this way: if you know it is raining, the probability you carry an umbrella changes. That updated probability is a conditional probability.

Visualizing with Venn Diagrams

S A B
\( A \cap B \)
P(A|B) focuses here relative to all of B

Why Does It Matter?

Medical Testing
Given a positive test result, what is the probability the patient truly has the disease?
Quality Control
Given a product passed inspection, what is the probability it is actually defect-free?
Weather Forecasting
Given high humidity, what is the probability of rain in the next hour?

The Core Formula

1
\( P(A \cap B) \) is the probability that both A and B occur simultaneously.
2
\( P(B) \) is the probability of the given event: the new, restricted sample space.
3
The formula divides the overlap by the total probability of the condition, giving a proportion within B.

The Multiplication Rule

Rearranging the conditional probability formula gives us a powerful tool: the multiplication rule for dependent events.

This tells us the probability that both events happen equals the probability of one event times the conditional probability of the other, given the first occurred.

Independent vs Dependent Events

Independent Dependent
Definition Knowing B does not change the probability of A Knowing B changes the probability of A
Formula test \( P(A|B) = P(A) \) \( P(A|B) \neq P(A) \)
Multiplication \( P(A \cap B) = P(A) \cdot P(B) \) \( P(A \cap B) = P(A|B) \cdot P(B) \)
Example Two coin flips Drawing cards without replacement

Using Tree Diagrams

Tree diagrams are a powerful visual tool for conditional probability. Each branch shows a conditional probability, and multiplying along a path gives the joint probability of that outcome.

\( P(B) \)
\( P(B') \)
B B'
\( P(A|B) \)
\( P(A'|B) \)
\( P(A|B') \)
\( P(A'|B') \)
\( A \cap B \)
\( A' \cap B \)
\( A \cap B' \)
\( A' \cap B' \)

Step-by-Step Method

1
Identify the events. Determine what A and B represent. Which event is the "given" condition?
2
Find \( P(A \cap B) \). Use a Venn diagram, table, or tree diagram to determine the overlap probability.
3
Find \( P(B) \). Determine the total probability of the given condition.
4
Divide. Compute \( P(A|B) = \frac{P(A \cap B)}{P(B)} \). Simplify your fraction or give a decimal.
5
Interpret. State your answer in context: "Given that B has occurred, the probability of A is..."

Example 1: Basic Calculation

A bag contains 3 red and 7 blue marbles. Two marbles are drawn without replacement. Find the probability the second marble is red, given the first was blue.

\( B: \frac{7}{10} \)
\( R: \frac{3}{10} \)
\( R: \frac{3}{9} \)
\( B: \frac{6}{9} \)
← Target

Example 2: Two-Way Table

A survey of 200 students recorded whether they play a sport and whether they play a musical instrument. Find \( P(\text{Sport} | \text{Music}) \).

Music: Yes Music: No Total
Sport: Yes 40 60 100
Sport: No 35 65 100
Total 75 125 200

Example 3: Testing Independence

Using the same table, are the events "plays sport" and "plays music" independent?

1
Calculate \( P(\text{Sport}) \): \( \frac{100}{200} = 0.5 \)
2
Calculate \( P(\text{Sport}|\text{Music}) \): \( \frac{40}{75} \approx 0.533 \)
3
Compare: Since \( 0.533 \neq 0.5 \), these events are not independent.

Example 4: Venn Diagram Problem

In a class of 30 students: 18 study biology, 12 study chemistry, and 6 study both. A student is chosen at random. Find \( P(\text{Chemistry} | \text{Biology}) \).

\( n(S) = 30 \)
Bio 12 Chem 6 6 6

Common Mistakes to Avoid

✕ Confusing \( P(A|B) \) with \( P(B|A) \)
These are almost always different. "Probability of rain given clouds" is NOT the same as "probability of clouds given rain."
✕ Forgetting to Restrict the Sample Space
When you condition on B, the denominator must be \( P(B) \), not \( P(S) = 1 \). The sample space shrinks.
✕ Assuming Independence
Do not use \( P(A) \cdot P(B) \) for \( P(A \cap B) \) unless you have verified the events are independent first.

Key Formulas Summary

Concept Formula When to Use
Conditional Probability \( P(A|B) = \frac{P(A \cap B)}{P(B)} \) Finding probability given a condition
Multiplication Rule \( P(A \cap B) = P(A|B) \cdot P(B) \) Finding joint probability of dependent events
Independence Test \( P(A \cap B) = P(A) \cdot P(B) \) Checking if events are independent
Independence (alt) \( P(A|B) = P(A) \) Knowing B does not change A

Question 1 of 4

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

Question 2 of 4

Events A and B are such that \( P(A) = 0.3 \), \( P(B) = 0.6 \), and \( P(A \cap B) = 0.18 \). Are A and B independent?

Question 3 of 4

A box has 5 green and 3 yellow balls. Two are drawn without replacement. What is the probability the second ball is green, given the first was yellow?

Question 4 of 4

In a group of 100 people, 40 like tea, 30 like coffee, and 15 like both. Find \( P(\text{Tea} | \text{Coffee}) \).