Learn / Library / Expected value
Shuffled coats at checkroom
traders leave their coats at a checkroom. The attendant hands the coats back in a uniformly random order, one coat to each trader. What is the expected number of traders who receive their own coat?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Define an indicator for each trader and use linearity of expectation.
Solution
- Let the indicator of trader equal if that trader gets their own coat, and otherwise.
- By symmetry each trader receives any given coat with the same chance, so the probability of getting their own coat is .
- By linearity of expectation the total is the sum of equal terms: .
- The expected number is .
Answer: