Expected number of people who get their own hat back
Asked at Jane Street
At a coat check, people hand in their hats, and at the end the hats are returned in a completely random order (a uniformly random permutation).
What is the expected number of people who get their own hat back?
Show a hint
Let each person carry an indicator for "I got my own hat." You do not need the hats to be independent to add up expectations.