01 / 21

Conditional Probability
& Independence

Learn how knowing one event changes the probability of another: master \( P(A \mid B) \), the multiplication rule, and what it truly means for events to be independent.

AP Statistics

What Is Conditional Probability?

Conditional probability asks: given that event \( B \) has already occurred, what is the probability that event \( A \) also occurs? We write this as \( P(A \mid B) \) and read it "the probability of \( A \) given \( B \)."

Think of it as zooming in: once you know \( B \) happened, irrelevant outcomes disappear and you re-evaluate \( A \) inside this new, smaller world.

Visualizing \( P(A \mid B) \)

S A B
\(A \cap B\)
Focus here

Why Does This Matter?

Medical Testing
Given a positive test result, what is the probability you actually have the disease?
Spam Filters
Given certain words in an email, what is the probability it is spam? (Bayes' Theorem)
Games & Strategy
Given that a card has been drawn, how do the remaining probabilities change?

Conditional probability is the foundation of Bayesian reasoning, machine learning classifiers, and everyday decision-making under uncertainty.

The Definition of \( P(A \mid B) \)

1
\( P(A \cap B) \): the probability both \( A \) and \( B \) occur together.
2
\( P(B) \): the probability of the given event: our new "universe."
3
Result: a re-scaled probability, always between 0 and 1.

The Multiplication Rule

Rearranging the definition gives us a powerful tool for computing joint probabilities:

This says: the probability of both events equals the probability of one event times the conditional probability of the other, given the first.

Tree Diagram: Multiplication Rule

S
\(P(B)\)
B
\(P(B')\)
B'
\(P(A \mid B)\)
\(A \cap B\)
\(P(B) \cdot P(A \mid B)\)
\(P(A' \mid B)\)
\(A' \cap B\)
\(P(A \mid B')\)
\(A \cap B'\)
\(P(A' \mid B')\)
\(A' \cap B'\)

What Is Independence?

Two events \( A \) and \( B \) are independent if knowing that one occurred tells you nothing new about the other. Formally:

If \( A \) and \( B \) are independent, the multiplication rule simplifies: you just multiply the individual probabilities. No conditional step needed.

Dependent vs Independent

Dependent Events
Drawing cards without replacement: the first draw changes the deck, so \( P(A \mid B) \neq P(A) \).
Independent Events
Flipping a coin and rolling a die: the coin outcome has no effect on the die, so \( P(A \mid B) = P(A) \).

How to Test for Independence

1
Compute \( P(A) \), \( P(B) \), and \( P(A \cap B) \) from the given data (table, Venn diagram, or description).
2
Calculate the product \( P(A) \cdot P(B) \).
3
Compare: if \( P(A \cap B) = P(A) \cdot P(B) \), the events are independent. Otherwise, they are dependent.

How to Apply the Formula

1
Identify the events. What is \( A \)? What is \( B \)? Which one is given (the condition)?
2
Find the joint probability \( P(A \cap B) \): count outcomes in both, or use the data table.
3
Find \( P(B) \): the probability of the given event.
4
Divide: \( P(A \mid B) = \dfrac{P(A \cap B)}{P(B)} \).
5
Interpret: State the result in context. "Given that \( B \) occurred, there is a ___ probability of \( A \)."

Example 1: Drawing Cards

A standard 52-card deck. Let \( A \) = "draw a King" and \( B \) = "draw a face card." Find \( P(A \mid B) \).

1
Events: \( A \) = King (4 cards), \( B \) = face card (Jack, Queen, King: 12 cards).
2
Joint: \( A \cap B \) = King and face card = King. So \( P(A \cap B) = \frac{4}{52} \).
3
Given: \( P(B) = \frac{12}{52} \).
4
Divide: \( P(A \mid B) = \dfrac{4/52}{12/52} = \dfrac{4}{12} = \dfrac{1}{3} \).

Example 2: Two-Way Table

200 students were surveyed about study habits and exam results:

Pass Fail Total
Studied 120 30 150
Did not study 20 30 50
Total 140 60 200

Example 3: Are They Independent?

Using the same table: Is "Studied" independent of "Pass"?

1
\( P(\text{Studied}) = 0.75 \) and \( P(\text{Pass}) = \frac{140}{200} = 0.70 \).
2
Product: \( P(\text{Studied}) \cdot P(\text{Pass}) = 0.75 \times 0.70 = 0.525 \).
3
Joint: \( P(\text{Studied} \cap \text{Pass}) = \frac{120}{200} = 0.60 \).
4
Compare: \( 0.60 \neq 0.525 \), so the events are dependent.

Common Mistakes

✕ Confusing direction
\( P(A \mid B) \neq P(B \mid A) \) in general. Always check which event is the condition.
✕ Mutually exclusive = Independent
If \( A \) and \( B \) can't both occur, then \( P(A \mid B) = 0 \neq P(A) \). They are dependent!
✕ Forgetting to re-scale
Writing \( P(A \mid B) = P(A \cap B) \) without dividing by \( P(B) \). The denominator is essential.

Summary Comparison

Conditional Probability Independence
Definition \( P(A \mid B) = \frac{P(A \cap B)}{P(B)} \) \( P(A \cap B) = P(A) \cdot P(B) \)
Key idea Probability updated with new information Information about \( B \) does not change \( P(A) \)
Multiplication rule \( P(A \cap B) = P(B) \cdot P(A \mid B) \) \( P(A \cap B) = P(A) \cdot P(B) \)
Relationship Test Dependent if \( P(A \mid B) \neq P(A) \) Independent if \( P(A \mid B) = P(A) \)
Example Drawing without replacement Rolling two separate dice

Question 1 of 5

If \( P(A) = 0.4 \), \( P(B) = 0.5 \), 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

If \( P(A) = 0.5 \), \( P(B) = 0.4 \), and \( P(A \cap B) = 0.15 \), are \( A \) and \( B \) independent?

Question 4 of 5

Events \( A \) and \( B \) are mutually exclusive with \( P(A) = 0.3 \) and \( P(B) = 0.4 \). What is \( P(A \mid B) \)?

Question 5 of 5

A bag has 5 red and 3 blue marbles. You draw two marbles without replacement. What is the probability the second marble is red, given the first was blue?