Sub topic 8
Coins, Dice and Cards: Standard Models
CAT probability questions are usually built from three objects: coins, dice and playing cards. This chapter sets up each one so you can write down its sample space and count favourable outcomes without hesitation.
You should already know the classical formula P(E) = favourable / total for equally likely outcomes. You should also know the complement rule and the basic counting tools nCr and nPr. The addition and multiplication rules appear here only in simple form. Later chapters treat them in full.
The Common Setup
Each standard object gives a sample space of equally likely outcomes. That is what lets you use favourable over total. Most mistakes come from one of two places: counting outcomes that are not equally likely, or counting the same outcome twice.
| Object | Outcomes per trial | Sample space for n trials |
|---|---|---|
| Coin | 2 (H, T) | 2^n |
| Die | 6 (1 to 6) | 6^n |
| Card draw (k cards) | 52 cards | C(52, k) unordered hands, or 52Pk ordered draws |
Coins
A fair coin has two outcomes, H and T, each with probability 1/2. Tossing n coins gives 2^n ordered outcomes. Treat the coins as distinguishable even if they are identical in the problem, because HT and TH are different outcomes.
The number of outcomes with exactly k heads is nCk. So:
- P(exactly k heads in n tosses) = nCk / 2^n
- P(at least one head) = 1 − 1/2^n
- P(all heads) = 1/2^n
For 4 tosses, P(exactly 2 heads) = 4C2 / 16 = 6/16 = 3/8. P(at least 2 heads) = 1 − (1 + 4)/16 = 11/16. The excluded cases are zero heads (1 way) and one head (4 ways).
Dice
A fair die has six equally likely faces. For two dice, treat them as a red die and a blue die. The pair (3, 4) is then a different outcome from (4, 3), and the sample space has 36 equally likely ordered pairs.
Sum of two dice
The number of ways to reach each sum rises from 1 to 6 and then falls back to 1.
| Sum | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Ways | 1 | 2 | 3 | 4 | 5 | 6 | 5 | 4 | 3 | 2 | 1 |
You can regenerate this table in a few lines.
from collections import Counter
from itertools import product
ways = Counter(a + b for a, b in product(range(1, 7), repeat=2))
for s in range(2, 13):
print(s, ways[s])The table gives quick answers:
- P(sum = 7) = 6/36 = 1/6. Seven is the most likely sum, and a favourite exam target.
- P(sum ≥ 10) = (3 + 2 + 1)/36 = 1/6.
- P(sum is prime) = (1 + 2 + 4 + 6 + 2)/36 = 15/36 = 5/12, using the sums 2, 3, 5, 7 and 11.
- P(doubles) = 6/36 = 1/6, because once the first die is rolled, exactly one face on the second die matches it.
Products, maxima and "at least" conditions
For products and parity, use the complement. A product is odd only when both numbers are odd. That gives 3 × 3 = 9 outcomes, so P(product even) = 1 − 9/36 = 3/4.
For a maximum, count outcomes where every value is at most some bound. P(max ≤ m) = m²/36. Then P(max = 4) = P(max ≤ 4) − P(max ≤ 3) = 16/36 − 9/36 = 7/36.
Three dice
Three dice give 216 ordered outcomes. Sums 9 and 10 look equally likely but are not. Both can be written as six unordered triples, but the triples have different numbers of orderings. A triple with three distinct values has 6 orderings, a triple with one repeated value has 3, and a triple with all values equal has 1.
from collections import Counter
from itertools import product
ways = Counter(sum(t) for t in product(range(1, 7), repeat=3))
print(ways[9], ways[10]) # 25 27So P(sum = 9) = 25/216 and P(sum = 10) = 27/216 = 1/8.
Playing Cards
A standard deck has 52 cards. There are 4 suits (spades, hearts, diamonds, clubs) with 13 ranks each. Hearts and diamonds are red, and spades and clubs are black. Keep these counts in memory:
| Category | Count |
|---|---|
| Red cards | 26 |
| Black cards | 26 |
| Cards of one suit | 13 |
| Cards of one rank (for example, aces) | 4 |
| Face cards (J, Q, K) | 12 |
| Face cards of one suit | 3 |
CAT treats the ace as one card of rank "ace". It is not a face card unless the question says so.
Single-card events
For one card, probabilities follow from the counts. P(king) = 4/52 = 1/13. P(red) = 1/2. P(face card) = 12/52 = 3/13.
Overlapping categories need the addition rule with the overlap subtracted. A card can be both a king and a heart, so:
P(king or heart) = 4/52 + 13/52 − 1/52 = 16/52 = 4/13.
Hands of several cards
When the order of cards in the hand does not matter, count combinations in both numerator and denominator. Choose how many cards come from each category, then multiply the choices.
Suppose 3 cards are drawn. The probability of exactly 2 kings and 1 queen is:
(4C2 × 4C1) / 52C3 = 24 / 22100 = 6/5525.
For "at least one ace" in 3 cards, use the complement. The cards with no ace come from the other 48:
1 − 48C3 / 52C3 = 1 − 17296/22100 = 1201/5525.
from math import comb
from fractions import Fraction
print(Fraction(comb(4, 2) * comb(4, 1), comb(52, 3))) # 6/5525
print(1 - Fraction(comb(48, 3), comb(52, 3))) # 1201/5525Two cards from the same suit
You can compute this by combinations: 4 × 13C2 / 52C2 = 312/1326 = 4/17. You can also use sequential fractions. The first card can be anything. The second must come from the 12 remaining cards of that suit among 51, so the probability is 12/51 = 4/17. Both methods agree, and the sequential one is faster here.
Choosing a Method for Standard Models
- Small fixed outcomes (two dice, three coins): list or tabulate. The sum table is worth memorising.
- "At least", "at most one", or "not all": use the complement.
- Hands from a deck: use combinations by category, or sequential fractions if the draw is simple.
- Overlap (king or heart, red or face): subtract the intersection.
- Exact counts among repeated trials: use nCk times the product of probabilities. This is developed in the chapter on repeated independent trials.
Common Errors
- Counting HT and TH as one outcome.
- Counting (3, 4) and (4, 3) as one outcome when computing a probability, but as two when listing sums.
- Forgetting that a face card of a suit is part of both the face-card group and the suit group.
- Using 52 as the denominator for the second draw when the first card was not replaced. Use 51.
- Double-counting a hand when selecting "one king, then another card" and allowing the other card to also be a king.
Exercise
Two fair dice are rolled. What is the probability that the sum is a prime number?
Show answer
The primes possible are 2, 3, 5, 7 and 11. They have 1, 2, 4, 6 and 2 ways respectively, which total 15. The probability is 15/36 = 5/12.
Exercise
A fair coin is tossed 4 times. What is the probability of getting at least 2 heads?
Show answer
The sample space has 16 outcomes. Zero heads has 1 outcome and one head has 4 outcomes. So P(at least 2 heads) = 1 − 5/16 = 11/16.
Exercise
Two cards are drawn without replacement from a standard deck. What is the probability that both belong to the same suit?
Show answer
The first card can be any card. The second must come from the 12 remaining cards of the same suit among the 51 left, so the probability is 12/51 = 4/17.