Sub topic 9
Drawing With and Without Replacement
This chapter assumes you can count with permutations and combinations, apply the multiplication rule for independent events, and handle conditional probability. Here you will use those tools on one situation that appears in many CAT problems: picking items from a collection one after another.
Why replacement matters
A draw is a random pick of an item from a collection, such as a ball from a bag or a card from a deck. When you make several draws, one question decides the method: is the item put back before the next draw?
- With replacement: the item goes back, so the collection is the same for every draw. The draws are independent.
- Without replacement: the item stays out, so the collection shrinks. The draws are dependent, because the result of one draw changes the odds of the next.
Problem statements rarely say "dependent". They use phrases like "a ball is drawn and put back", "two cards are drawn", or "three balls are drawn at random". You must read these phrases carefully.
| Wording | Meaning | Treat as |
|---|---|---|
| "drawn and replaced", "with replacement" | The collection resets each time | Independent draws |
| "drawn one after another, not replaced" | The collection shrinks | Dependent draws |
| "two balls are drawn at random" (no more detail) | Simultaneous pick | Without replacement |
| "a coin is tossed twice", "a die is rolled twice" | The source cannot be depleted | Independent trials |
Method 1: Sequential probabilities
Multiply the probability of each draw in order, using the collection as it stands at that moment.
Take a bag with 5 red and 3 blue balls.
With replacement. Each draw has P(red) = 5/8. For two reds in a row:
P(both red) = 5/8 × 5/8 = 25/64
Without replacement. The first draw has P(red) = 5/8. If it was red, 4 red balls remain among 7 balls, so the second draw has P(red) = 4/7:
P(both red) = 5/8 × 4/7 = 20/56 = 5/14
The second factor is a conditional probability: P(2nd red | 1st red). The multiplication rule says P(A and B) = P(A) × P(B | A). With replacement, P(B | A) = P(B), so the rule reduces to a simple product.
Method 2: Counting with combinations
For draws without replacement where order does not matter, count subsets. The number of favourable subsets divided by the number of all subsets gives the probability.
For two reds from the same bag:
P(both red) = C(5,2) / C(8,2) = 10/28 = 5/14
This matches the sequential answer. The two methods agree because "draw 2 balls at once" and "draw 2 balls one by one without replacement" produce the same probabilities for unordered outcomes.
from math import comb
from fractions import Fraction
# Bag has 5 red and 3 blue balls; 2 are drawn without replacement.
print(Fraction(comb(5, 2), comb(8, 2))) # 5/14The same code with sequential logic confirms it:
from fractions import Fraction
red, blue = 5, 3
total = red + blue
sequential = Fraction(red, total) * Fraction(red - 1, total - 1)
print(sequential) # 5/14Which method to choose
- Use combinations when the question asks about a group with a given composition ("exactly 2 red and 1 blue"). Counting is faster than listing orderings.
- Use sequential probabilities when the order is specified ("first red, then blue") or when there are only two draws.
- Use the complement when the question says "at least one".
Mixed compositions
Consider the same bag, with 3 balls drawn without replacement. Find P(exactly 2 red, 1 blue).
Choose 2 of the 5 red balls and 1 of the 3 blue balls:
P = C(5,2) × C(3,1) / C(8,3) = 10 × 3 / 56 = 30/56 = 15/28
The sequential method also works, but it needs care. The arrangements RRB, RBR and BRR each have the same probability, so you multiply by the 3 orderings:
- RRB: 5/8 × 4/7 × 3/6 = 60/336 = 5/28
- 3 orderings: 3 × 5/28 = 15/28
Forgetting the factor of 3 is one of the most common mistakes in this topic.
from math import comb
from fractions import Fraction
print(Fraction(comb(5, 2) * comb(3, 1), comb(8, 3))) # 15/28Replacement with more than two outcomes
With replacement, the probabilities stay fixed, so a draw of n items with a specified number of each colour follows a pattern similar to the binomial formula. For 3 draws with replacement from the same bag, P(exactly 2 red) is:
C(3,2) × (5/8)² × (3/8) = 3 × 25/64 × 3/8 = 225/512
The factor C(3,2) = 3 counts the positions of the two reds. Compare this with the without-replacement answer, 15/28 ≈ 0.536. The with-replacement answer is 225/512 ≈ 0.439. The two differ because, without replacement, drawing red lowers the red share for later draws, which pulls the outcome toward a balanced mix. The binomial pattern is covered fully in a later chapter.
"At least one" under both schemes
The complement rule works in both cases. You compute the probability of "none" and subtract it from 1.
Bag: 5 red, 3 blue. Draw 2. Find P(at least one blue).
- Without replacement: P(no blue) = C(5,2)/C(8,2) = 5/14, so the answer is 1 − 5/14 = 9/14.
- With replacement: P(no blue) = (5/8)² = 25/64, so the answer is 1 − 25/64 = 39/64.
Order does not matter for single positions
A useful fact for dependent draws: without replacement, the probability that the second draw is red is still 5/8, the same as for the first draw, if you do not know the first result.
Check it using total probability:
P(2nd red) = P(R then R) + P(B then R) = 5/8 × 4/7 + 3/8 × 5/7 = 20/56 + 15/56 = 35/56 = 5/8
Each position in a random sequence is equally likely to hold any given item. This symmetry is useful for problems such as "the fourth card drawn is an ace", where the answer is just 4/52, with no need to consider the first three cards.
The symmetry fails once you are told something about the earlier draws. If the first ball is known to be red, the second draw is red with probability 4/7. Whether you are given information about other draws is what separates 5/8 from 4/7.
The four leaf probabilities sum to 1, which is a quick check on your tree: 20/56 + 15/56 + 15/56 + 6/56 = 56/56.
Cards: a standard without-replacement case
A deck has 52 cards, with 4 aces, 13 cards per suit, and 12 face cards. Cards dealt from a deck are not replaced.
Two cards, both aces. P = C(4,2)/C(52,2) = 6/1326 = 1/221. Sequentially: 4/52 × 3/51 = 12/2652 = 1/221.
Five cards, all hearts. P = C(13,5)/C(52,5) = 1287/2598960 ≈ 0.000495.
Two cards, same suit. Pick the suit (4 ways), then two cards from it: 4 × C(13,2) / C(52,2) = 4 × 78 / 1326 = 312/1326 = 4/17. Sequentially: after the first card, 12 of the remaining 51 cards share its suit, so P = 12/51 = 4/17. The sequential route is much faster here.
from math import comb
from fractions import Fraction
print(Fraction(comb(4, 2), comb(52, 2))) # 1/221
print(Fraction(4 * comb(13, 2), comb(52, 2))) # 4/17Common errors
- Using the same denominator for each draw. Without replacement, the denominator drops by one each time: 8, 7, 6, and so on.
- Dropping the numerator along with the denominator. Only the favourable count drops if the earlier draw was favourable. After a red draw, the red count falls but the blue count stays.
- Forgetting orderings. "Two red, one blue" can occur in 3 orders. Either use combinations or multiply by the number of arrangements.
- Mixing ordered and unordered counting. If the numerator uses combinations, the denominator must also use combinations. Do not divide C(5,2) by 8 × 7.
- Assuming independence by habit. Two cards from a deck are not independent. Two tosses of a coin are.
- Ignoring information given. "Given the first is red" changes the answer from 5/8 to 4/7, as shown earlier.
Large populations: when replacement barely matters
If the collection is very large compared with the number of draws, removing a few items hardly changes the proportions. Drawing 2 items from 1000, 400 of them defective:
- With replacement: P(both defective) = 0.4 × 0.4 = 0.16
- Without replacement: 400/1000 × 399/999 ≈ 0.15976
The two answers are very close. CAT questions with answer options far apart sometimes allow you to approximate in this way, but only when the options leave enough room. For small collections, such as 8 balls or 52 cards with several draws, the difference is large and you must be exact.
Choosing quickly in the exam
Worked example: three draws from two groups
A box has 4 white, 3 black and 2 green balls. Three balls are drawn without replacement. Find the probability of drawing one ball of each colour.
Choose one ball of each colour: 4 × 3 × 2 = 24 ways. All possible draws: C(9,3) = 84.
P = 24/84 = 2/7
Now find P(no green ball). All three come from the 7 non-green balls: C(7,3)/C(9,3) = 35/84 = 5/12. So P(at least one green) = 7/12.
from math import comb
from fractions import Fraction
print(Fraction(4 * 3 * 2, comb(9, 3))) # 2/7
print(1 - Fraction(comb(7, 3), comb(9, 3))) # 7/12Exercise
A bag holds 6 red and 4 green balls. Three balls are drawn one at a time. Find P(exactly 2 red) (a) with replacement and (b) without replacement.
Show answer
(a) With replacement: C(3,2) × (6/10)² × (4/10) = 3 × 0.36 × 0.4 = 0.432 = 54/125. (b) Without replacement: C(6,2) × C(4,1) / C(10,3) = 15 × 4 / 120 = 60/120 = 1/2.
Exercise
Two cards are dealt from a standard 52-card deck. Find the probability that neither is a heart, and then the probability that at least one is a heart.
Show answer
P(neither is a heart) = C(39,2)/C(52,2) = 741/1326 = 19/34 (sequentially, 39/52 × 38/51 = 19/34). P(at least one heart) = 1 − 19/34 = 15/34.
Exercise
Five cards are drawn without replacement from a shuffled deck. Without any calculation involving the other four cards, find the probability that the third card drawn is a king.
Show answer
By symmetry, each position is equally likely to hold any card, so the probability is 4/52 = 1/13.