01 / 21

Conditional
Probability

Learn to compute \( P(A \mid B) \) from tables, trees, and descriptions: what changes when you already know something happened?

Math 2

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

\( S \) (all outcomes)
\( B \)
\( A \)
\( A \cap B \)
New focus

Why Does It Matter?

Medicine
If a patient tests positive, what is the probability they truly have the disease?
Weather
Given that it's cloudy, what is the probability it will rain today?
Sports
Given that a team wins the first game, what is the probability they win the series?

Every time you update a prediction after learning new information, you are using conditional probability.

The Core Formula

\( P(A \mid B) = \dfrac{P(A \cap B)}{P(B)} \)
1
\( P(A \cap B) \): the probability that both A and B occur.
2
\( P(B) \): the probability that B occurs (must be \( > 0 \)).
3
Result: the fraction of B's outcomes in which A also happens.

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

1
Identify A and B. Decide which event is the condition ("given") and which you want the probability of.
2
Restrict to B. In a table: look only at the B row or column. In a tree: follow the B branch.
3
Find \( A \cap B \). Count or compute how many outcomes satisfy both A and B.
4
Divide. Compute \( P(A \mid B) = \frac{\text{count in both A and B}}{\text{total count in B}} \).
5
Interpret. State your answer in context: "Given that B, there is a ___% chance of A."

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}) \).

Start
\( \frac{3}{5} \)
\( B_1 \)
\( \frac{2}{5} \)
\( R_1 \)
\( \frac{2}{4} \)
\( B_2 \)
\( \frac{2}{4} \)
\( R_2 \)
\( \frac{3}{4} \)
\( B_2 \)
\( \frac{1}{4} \)
\( R_2 \)
Focus branch

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}) \).

1
\( P(\text{Breakfast}) = 0.60 \)
2
\( P(\text{Pass} \mid \text{Breakfast}) = 0.80 \)
3
Rearrange the formula: \( P(A \cap B) = P(A \mid B) \cdot P(B) \)
4
\( P(\text{Pass} \cap \text{Breakfast}) = 0.80 \times 0.60 = 0.48 \)

The Multiplication Rule

\( P(A \cap B) = P(A \mid B) \cdot P(B) \)

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:

Independent
\( P(A \mid B) = P(A) \)
Conditioning changes nothing.
Dependent
\( P(A \mid B) \neq P(A) \)
Conditioning changes the probability.

Common Mistakes

✕ Swapping the Condition
Confusing \( P(A \mid B) \) with \( P(B \mid A) \). Always check: which event is "given"?
✕ Wrong Denominator
Using the grand total instead of the conditional total. Restrict to B first, then count.
✕ Assuming Independence
Multiplying \( P(A) \cdot P(B) \) without checking whether A and B are actually independent.

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

What is \( P(\text{Studied} \mid \text{Passed}) \)?