Sub topic 9
Drawing With and Without Replacement
Assume you know fractions, combinations, and basic probability. This chapter focuses on choosing the correct model when objects are drawn from a collection more than once.
What replacement changes
Replacement means returning an object to the collection before the next draw.
- With replacement, the collection returns to its original composition after every draw.
- Without replacement, the selected object remains out, so the composition changes.
This difference determines whether later probabilities stay the same.
Suppose a bag contains 5 red and 3 blue balls. The probability of red on the first draw is
\[ P(R_1)=\frac{5}{8}. \]
If the red ball is replaced, the second draw again has 5 red and 3 blue balls:
\[ P(R_2)=\frac{5}{8}. \]
If it is not replaced, the second draw has 4 red and 3 blue balls:
\[ P(R2\mid R1)=\frac{4}{7}. \]
The symbol \(\mid\) means “given that.” Thus, \(P(R2\mid R1)\) is the probability of red on the second draw given that the first draw was red.
Sequential probabilities
To find the probability of a sequence, multiply the probabilities along that sequence.
For two red balls without replacement:
\[ P(R1\text{ and }R2) =\frac{5}{8}\times\frac{4}{7} =\frac{5}{14}. \]
For two red balls with replacement:
\[ P(R1\text{ and }R2) =\frac{5}{8}\times\frac{5}{8} =\frac{25}{64}. \]
The first calculation uses changing denominators. The second uses the same fraction twice because the draws are independent.
| Situation | First red | Second red after first red | Probability of two reds |
|---|---|---|---|
| With replacement | \(5/8\) | \(5/8\) | \(25/64\) |
| Without replacement | \(5/8\) | \(4/7\) | \(5/14\) |
The order matters when the question asks for a particular sequence. If the question asks for “one red and one blue” in either order, add the two disjoint sequences:
\[ P(RB)+P(BR) =\frac{5}{8}\cdot\frac{3}{7} +\frac{3}{8}\cdot\frac{5}{7} =\frac{15}{28}. \]
An alternative is counting. Without replacement, choosing 2 balls from 8 gives \(\binom{8}{2}\) possible pairs. Choosing 2 red balls gives \(\binom{5}{2}\) pairs:
\[ P(\text{two red})=\frac{\binom{5}{2}}{\binom{8}{2}} =\frac{10}{28} =\frac{5}{14}. \]
The counting method ignores order. It is often quicker when the desired result depends only on the final group.
from math import comb
from fractions import Fraction
red, blue, draws = 5, 3, 2
probability = Fraction(comb(red, draws), comb(red + blue, draws))
print(probability) # 5/14A decision diagram
Common CAT traps
- Using \(5/8\) again after removing a red ball. The correct probability is \(4/7\).
- Multiplying probabilities for “red or blue.” “Or” usually requires addition, while “and” usually requires multiplication.
- Counting ordered outcomes when the question asks only which objects were selected.
- Forgetting the second possible order in “one red and one blue.”
- Treating replacement and non-replacement as interchangeable because the first-draw probability is the same.
Exercise
A box contains 4 white and 6 black balls. Two balls are drawn without replacement. What is the probability that they have different colours?
Show answer
There are two valid orders: white then black, or black then white. Thus, \(P(WB)+P(BW)=\frac{4}{10}\cdot\frac{6}{9}+\frac{6}{10}\cdot\frac{4}{9}=\frac{8}{15}\).