Quoto

Learn / Library / Expected value

Shuffled coats at checkroom

Expected valueEasy

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.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Define an indicator for each trader and use linearity of expectation.

Solution
  1. Let the indicator of trader equal if that trader gets their own coat, and otherwise.
  2. By symmetry each trader receives any given coat with the same chance, so the probability of getting their own coat is .
  3. By linearity of expectation the total is the sum of equal terms: .
  4. The expected number is .

Answer: