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.
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) \)
Why Does This Matter?
Conditional probability is the foundation of Bayesian reasoning, machine learning classifiers, and everyday decision-making under uncertainty.
The Definition of \( P(A \mid B) \)
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
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
How to Test for Independence
How to Apply the Formula
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) \).
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"?
Common Mistakes
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?