Conditional
Probability
Learn to compute \( P(A \mid B) \) from tables, trees, and descriptions: what changes when you already know something happened?
What Is Conditional Probability?
Imagine you already know that some event B has occurred. The conditional probability of A given B, written \( P(A \mid B) \), answers: "Now that B happened, how likely is A?"
Knowing extra information shrinks the sample space: instead of looking at all possible outcomes, you only look at outcomes where B is true.
Shrinking the Sample Space
Why Does It Matter?
Every time you update a prediction after learning new information, you are using conditional probability.
The Core Formula
Reading It from a Two-Way Table
When data lives in a table, the formula becomes a simple ratio of counts:
You restrict to the row or column for event B, then see how many of those are also in A. No need to divide by the grand total: B's total is your new denominator.
\( P(A \mid B) \) vs \( P(B \mid A) \)
These are not the same. Swapping the condition changes the denominator and often gives a completely different answer.
| \( P(A \mid B) \) | \( P(B \mid A) \) | |
|---|---|---|
| Read as | "A given B" | "B given A" |
| Numerator | \( P(A \cap B) \) | \( P(A \cap B) \) |
| Denominator | \( P(B) \) | \( P(A) \) |
| Focus row | Restrict to B | Restrict to A |
Step-by-Step Method
Example 1: Two-Way Table
A survey of 200 students asked about sport and grade level:
| Soccer | Basketball | Total | |
|---|---|---|---|
| Sophomore | 30 | 50 | 80 |
| Junior | 45 | 35 | 80 |
| Senior | 15 | 25 | 40 |
| Total | 90 | 110 | 200 |
Interpreting In Context
From Example 1, we found \( P(\text{Soccer} \mid \text{Junior}) = \frac{9}{16} \approx 56.25\% \).
Notice this is not the same as \( P(\text{Junior} \mid \text{Soccer}) = \frac{45}{90} = 50\% \). The condition changed, so the answer changed.
Example 2: Tree Diagram
A bag has 3 blue and 2 red marbles. You draw two without replacement. Find \( P(\text{2nd blue} \mid \text{1st red}) \).
Example 3: From a Description
At a school, 60% of students eat breakfast. Of those who eat breakfast, 80% pass their morning quiz. Find \( P(\text{Breakfast} \cap \text{Pass}) \).
The Multiplication Rule
This is just the conditional probability formula rearranged. It is especially useful when you know the conditional probability and need the joint probability \( P(A \cap B) \).
Connection to Independence
Two events are independent if knowing one gives no new information about the other:
Conditioning changes nothing.
Conditioning changes the probability.
Common Mistakes
Summary Table
| Concept | Formula | When to Use |
|---|---|---|
| Conditional Probability | \( P(A \mid B) = \frac{P(A \cap B)}{P(B)} \) | Given B happened, find P(A) |
| Multiplication Rule | \( P(A \cap B) = P(A \mid B) \cdot P(B) \) | Find joint probability from conditional |
| Independence Test | \( P(A \mid B) = P(A) \)? | Check if events affect each other |
| From a Table | \( \frac{\text{both}}{\text{row/column total}} \) | Count-based data in a two-way table |
Question 1 of 5
In a class of 40 students, 18 play guitar, 12 play piano, and 5 play both. What is \( P(\text{Guitar} \mid \text{Piano}) \)?
Question 2 of 5
A bag contains 4 green and 6 yellow marbles. You draw one marble, do not replace it, and draw a second. What is \( P(\text{Yellow 2nd} \mid \text{Green 1st}) \)?
Question 3 of 5
If \( P(A) = 0.4 \), \( P(B) = 0.5 \), and \( P(A \cap B) = 0.2 \), are A and B independent?
Question 4 of 5
A survey finds: 70% of teens own a smartphone, and 40% of teens both own a smartphone and use social media daily. What is \( P(\text{Social Media} \mid \text{Smartphone}) \)?
Question 5 of 5
Use the following two-way table of 300 students:
| Passed | Failed | Total | |
|---|---|---|---|
| Studied | 120 | 30 | 150 |
| Did not study | 60 | 90 | 150 |
| Total | 180 | 120 | 300 |
What is \( P(\text{Studied} \mid \text{Passed}) \)?