Hat Problem
'n' people go to a party and drop off their hats to a hat-check person.When the party is over, a different hat-check person is on duty and returns then hats randomly back to each person. What is the expected number of people who get back their hats?
This problem is a classic example of a derangement problem, where the goal is to find how many people receive their own hat when hats are returned at random. Let's walk through the reasoning step by step to find the expected number of people who get back their own hats.
Key Points:
- We have people.
- Each person has dropped off their hat with a hat-check person.
- The hats are returned randomly.
We need to calculate the expected number of people who will get their own hat back.
Solution Outline:
Let be an indicator random variable for each person , where:
Thus, the total number of people who get their own hats back is the sum of all these indicator variables:
Now, we want to find the expected value of , i.e.,
Step 1: Calculate the Expected Value of
Since
Thus, for any :
Step 2: Calculate the Expected Value of
Since , we can use the linearity of expectation:
Each so:
Conclusion:
The expected number of people who get their own hats back is 1, regardless of how many people are at the party.
This result might be surprising, but it reflects the fact that, on average, only one person is expected to get their own hat back in this random hat-return scenario.
Comments
Post a Comment