Prime-Faced Dice and Independence: Why Fairness Matters
Grimmett and Welsh's prime-faced die exercise has a two-line proof and a hidden assumption. Here is where the prime does its work, and where the claim breaks.

Exercise 25 in section 1.7 of Grimmett and Welsh's Probability: an Introduction (1986) gives you a die with a prime number p of faces, thrown once. It asks you to show that no two events A and B can be independent unless one of them is the empty set or the whole sample space. A reader working through the book raised it on Mathematics Stack Exchange because the exercise never says the die is fair.
With a fair die the exercise falls to a divisibility argument. Without fairness, the asker reduced independence to a quadratic in three probabilities, got stuck in inequalities, and could not see where primality would enter. The question was whether the authors had left out the word 'fair'.
They almost certainly did. Without that assumption the statement is false, and the reason it fails shows exactly what the prime is doing.
| Fair die | A | B | P(A) · P(B) | P(A ∩ B) | Independent? |
|---|---|---|---|---|---|
| 6 faces | {2, 4, 6} | {1, 2} | 3/6 · 2/6 = 1/6 | |{2}| / 6 = 1/6 | Yes |
| 7 faces | {2, 4, 6} | {1, 2} | 3/7 · 2/7 = 6/49 | |{2}| / 7 = 7/49 | No |
The counting condition behind independence
On a fair die with n faces, every event has probability |A|/n, where |A| is the number of faces in it. Independence means P(A ∩ B) = P(A) · P(B). Substituting gives |A ∩ B|/n = |A| · |B| / n², which rearranges to a pure counting statement:
n · |A ∩ B| = |A| · |B|The probability has gone. What is left is a question about integers: can two subset sizes multiply to a multiple of n, with the multiplier equal to the size of their overlap? The table above is just this identity checked twice. For six faces, 3 · 2 = 6 · 1. For seven faces you would need 3 · 2 = 7 · |A ∩ B|, and 6 is not a multiple of 7.
Why a prime count closes every gap
Set n = p prime. The identity says p divides |A| · |B|. A prime that divides a product must divide one of the factors, so p divides |A| or |B|. Both sizes lie between 0 and p inclusive, and the only multiples of p in that range are 0 and p. So one of the events has zero faces, which makes it the empty set, or all p faces, which makes it the whole sample space.
The converse also holds. The empty set and the whole space are independent of every event, because P(∅ ∩ B) = 0 = 0 · P(B) and P(Ω ∩ B) = P(B) = 1 · P(B). The exercise's claim is therefore exact for a fair die: those trivial pairs are the only independent pairs. This is the 'divisibility considerations' route the accepted answer points to, and it is a two-line proof, which fits a book that describes its exercises as mostly routine.
What a composite count allows
If n is composite, the argument breaks at the step where a factor of the product must contain all of n. Write n = a · b with both a and b greater than 1, and lay the faces out as an a-by-b grid. Let A be one row and B be one column. Then |A| = b, |B| = a, and they share exactly one cell, so n · 1 = a · b. The counting identity holds and the events are independent.
Fair 6-sided die, 6 = 2 × 3, faces relabelled as a grid
col 1 col 2 col 3
row 1 [ 1 ] [ 2 ] [ 3 ] ← A = {1, 2, 3}, size 3
row 2 [ 4 ] [ 5 ] [ 6 ]
↑
B = {1, 4}, size 2
A ∩ B = {1}
P(A) · P(B) = 3/6 · 2/6 = 1/6 = P(A ∩ B)This is the structural reason primality matters. Independence on a fair die is the same as finding a product structure on the faces. A prime number of faces has none, apart from 1 × p.
Drop fairness and the claim fails
The asker's unfair-die attempt sets u = P(A \ B), v = P(B \ A) and w = P(A ∩ B). Independence, (u + w)(v + w) = w, expands to the quadratic in the question:
w² + w(u + v − 1) + uv = 0Nothing about p appears in that equation. Primality can only bite when every probability is forced to be a multiple of 1/p, and fairness is what forces that. Once the weights are free, the face count stops mattering. The accepted answer gives a 7-sided die weighted so that face 7 never comes up and the other six are equally likely. That is effectively a fair d6, so A = {2, 4, 6} and B = {1, 2} are independent again. Check it against the quadratic with u = P({4, 6}) = 1/3, v = P({1}) = 1/6 and w = 1/6:
1/36 + (1/6)(1/3 + 1/6 − 1) + 1/18 = 1/36 − 3/36 + 2/36 = 0Another answer pushes this to the extreme with P(D = 1) = 1. Then P(A ∩ B) is 1 exactly when face 1 is in both events, which equals the product of the indicators for A and B. Every pair of events is independent. The die is, in that answer's words, virtually a 1-sided die.
What to watch for
The prime-count result is a statement about the uniform distribution, not about dice. Keep these points in view before you reuse it:
- Check the distribution, not the label. 'A die with p faces' says nothing about the probabilities unless fairness is stated or can be justified. The counterexamples above use legitimate distributions on seven faces.
- The proof needs equal weights. Probabilities like 1/7 that become uniform on a smaller set, or a point mass, bring back independent pairs immediately.
- Single throw only. The sample space here is one roll. Two throws of a prime-faced die have p² outcomes, which is composite, and the events 'first roll is 1' and 'second roll is 1' are the row-and-column construction again.
- Don't try to solve the unfair case by force. Proving the quadratic has no admissible solution, as the asker attempted, cannot succeed, because the counterexamples are solutions of it.
Is P(each face) = 1/n ?
│
├─ no → nothing follows from n; independence depends on the weights
│
└─ yes → is n prime?
│
├─ yes → only pairs involving ∅ or Ω are independent
│
└─ no, n = a·b → row × column gives non-trivial independent eventsThis article draws on Die with prime number of faces implies events are not independent why? and answers to it (1, 2), on the Stack Exchange network, licensed under CC BY-SA 4.0.
- #Grimmett and Welsh
- #divisibility argument
- #fair die
- #independence
- #independent events
- #probability



Comments