Conditional Probability
Find probabilities when drawing without replacement, read conditional probabilities from two-way tables, and test whether two events are independent.
Welcome back!
Step 1 of 12Learn
When the first event changes the odds
A bag holds 5 red and 3 blue marbles. You draw two without replacement: the first marble stays out. What is P(both red)?
The first draw is red with probability 5/8. If it was red, the bag now holds 4 red and 3 blue, so the second draw is red with probability 4/7. Multiply along the path:
P(both red) = 5/8 × 4/7 = 20/56 = 5/14 ≈ 0.36
With replacement, the answer would be 5/8 × 5/8 = 25/64 ≈ 0.39. Removing a red marble made a second red slightly less likely.
These events are dependent: the first result changes the probability of the second. The multiplication still works, but the second factor must reflect what is left.
This matters for cards, raffles, choosing people for teams and quality checks, where items are not put back. With large groups the difference is small; with small groups it can be big. Drawing 2 aces in a row from a deck is 4/52 × 3/51, not (4/52)².
Step 2 of 12Practice · Diagram
Drawing two marbles without replacement (5 red, 3 blue)
Tap the second-draw branch whose chance went UP because of the first draw.
Tap the shape that answers the question, then press Check.
- Bag of 8
- Red first: 5/8
- Blue first: 3/8
- Then red: 4/7
One red is gone: 4 red of 7 left. P(both red) = 5/8 × 4/7 = 20/56.
- Then blue: 3/7
- Then red: 5/7
- Then blue: 2/7
P(both blue) = 3/8 × 2/7 = 6/56.
Step 3 of 12Practice · Work it out
You draw two cards from a standard deck without replacement. The probability that both are aces is 1 in how many?
Step 4 of 12Learn
Conditional probability and two-way tables
The conditional probability P(A | B) is read "the probability of A given B." It means: among only the cases where B happened, how often does A happen?
A school surveys 120 students:
| Plays a sport | No sport | Total | |
|---|---|---|---|
| 9th grade | 30 | 20 | 50 |
| 10th grade | 40 | 30 | 70 |
| Total | 70 | 50 | 120 |
- P(sport | 9th grade): look only at the 9th-grade row. 30 of 50 play, so it is 0.6.
- P(9th grade | sport): look only at the sport column. 30 of 70 are in 9th grade, so it is about 0.43.
Same 30 students, different denominators, different answers. The word after "given" tells you which row or column becomes the whole world.
The formula version is P(A | B) = P(A and B) / P(B). Here, P(sport and 9th) = 30/120 and P(9th) = 50/120, and dividing gives 30/50 = 0.6, the same as reading the row.
Step 5 of 12Practice · Work it out
Using the table of 120 students, what is P(no sport | 10th grade)? Round to two decimal places.
Step 6 of 12Practice · Chart
The 120 students by grade and sport
Tap the grade in which a larger SHARE of students plays a sport.
Tap the bar that answers the question, then press Check.
| Item | Plays a sport | No sport |
|---|---|---|
| 9th grade | 30 | 20 |
| 10th grade | 40 | 30 |
Step 7 of 12Practice · True or false
For any two events, P(A | B) is equal to P(B | A).
Step 8 of 12Learn
Testing for independence
Conditional probability gives a precise test. Events A and B are independent exactly when knowing B does not change the probability of A:
A and B are independent if P(A | B) = P(A).
In the survey, P(sport) overall is 70/120 ≈ 0.583. Among 9th graders, P(sport | 9th) = 0.6. The two are close but not equal, so in this data, grade and playing a sport are slightly dependent. With real survey data, small differences like this are usually treated as chance; large differences suggest a genuine link.
Compare with a die. P(even) = 1/2. Given the roll was greater than 2, the outcomes are {3, 4, 5, 6}, and two are even, so P(even | greater than 2) = 2/4 = 1/2. Knowing the roll was greater than 2 did not change the chance of even, so these two events are independent, even though they overlap.
Independent and mutually exclusive are different ideas. In fact, mutually exclusive events with nonzero probabilities are always dependent: if one happens, the other becomes impossible.
Step 9 of 12Compare
With replacement vs. without replacement
| Aspect | With replacement | Without replacement |
|---|---|---|
| What happens to the first item | Put back before the next draw | Kept out |
| Are the draws independent? | Yes | No, they are dependent |
| Two reds from 5 red, 3 blue | 5/8 × 5/8 = 25/64 | 5/8 × 4/7 = 20/56 |
| Typical examples | Rolling dice, spinning spinners, sampling with returns | Dealing cards, raffles, picking team members |
Step 10 of 12Practice · Choose one
A bag has 4 green and 6 yellow marbles. You draw two without replacement. What is the probability both are green?
Step 11 of 12Practice · Fill in the blanks
Fill in the blanks
The conditional probability formula is P(A | B) = P(A and B) ÷ P().
Step 12 of 12Practice · Work it out
P(A and B) = 0.12 and P(B) = 0.3. What is P(A | B)?
Lesson complete!