Ten letters go into ten envelopes at random. On average, how many land in the right envelope?
Expected value
Medium
An expected-value puzzle that indicator variables and linearity of expectation solve.
Published
November 17, 2026
NoteQuestion
Ten letters have ten matching addressed envelopes. You put the letters into the envelopes at random, one letter in each envelope, so every order is equally likely. On average, how many letters land in their own envelope?
Try it first, then open the solution.
TipSolution
The answer is 1 letter.
The method
Two rules of expected values solve this question and many like it.
An indicator variable \(I\) is 1 when an event happens and 0 when it does not. Its expected value is the probability of the event:
Formula (2) holds whether or not the variables are independent. To count how many of some events happen, give each event an indicator and add the indicators. By (1) and (2), the average count is then the sum of the events’ probabilities, with no need for the distribution of the count.
Applying the method
Let \(I_i\) be 1 when letter \(i\) lands in its own envelope. Letter \(i\) is equally likely to land in any of the 10 envelopes, so by (1)
\[E[I_i] = P(\text{letter } i \text{ in its envelope}) = \frac{1}{10}. \tag{3}\]
The number of letters in their own envelope is \(X = I_1 + \cdots + I_{10}\). The indicators depend on each other, since nine letters in their own envelopes leave the tenth letter its own envelope too, but (2) does not need independence:
\[E[X] = 10 \times \frac{1}{10} = 1. \tag{4}\]
The answer is the same for any number of letters \(n \geq 1\), since \(E[X] = n \times 1/n = 1\).
The common wrong answers each answer a different question:
Answer
The slip
0.1
the chance for one letter, not the average count
1/10!
the chance that all ten letters are right
≈ 0.37
the chance that no letter is right
NoteCode: check every order of the letters
from itertools import permutationsorders = right =0for order in permutations(range(10)): orders +=1 right +=sum(letter == envelope for envelope, letter inenumerate(order))print(orders, right, right / orders)
3628800 3628800 1.0
Similar questions
The same two rules answer these questions. Click a question to see its answer.
NoteYou roll a fair die 18 times. On average, how many sixes do you get?
Let \(I_k\) be 1 when roll \(k\) is a six, so \(E[I_k] = 1/6\) by (1). By (2),
NoteYou roll a fair die 6 times. On average, how many different faces do you see?
Let \(I_f\) be 1 when face \(f\) shows at least once. The rolls are independent, so face \(f\) misses all 6 rolls with probability \((5/6)^6\), and by the complement rule it shows at least once with probability \(1 - (5/6)^6 \approx 0.665\). By (1) and (2),