Question 2.31: At a party N men throw their hats into the center of a room.......

At a party N men throw their hats into the center of a room. The hats are mixed up and each man randomly selects one. Find the expected number of men who select their own hats.

The blue check mark means that this solution has been answered and checked by an expert. This guarantees that the final answer is accurate.
Learn more on how we answer questions.

Letting X denote the number of men that select their own hats, we can best compute E[X] by noting that

X=X1+X2++XNX=X_{1}+X_{2}+\cdot\cdot\cdot+X_{N}

where

Xi={1,if the ith man selects his own hat0, otherwiseX_{i}=\begin{cases} 1, & \text{if the ith man selects his own hat}\\ 0, & \text{ otherwise}\end{cases}

Now, because the ith man is equally likely to select any of the N hats, it follows that

P{Xi=1}P\{X_{i}=1\} = P{ith man selects his own hat} = 1N\frac{1}{N}

and so

E[Xi]=1P{Xi=1}+0P{Xi=0}=1NE[X_{i}]=1P\{X_{i}=1\}+0P\{X_{i}=0\}={\frac{1}{N}}

Hence, from Equation (2.11)

E[a1X1+a2X2++anXn]=a1E[X1]+a2E[X2]++anE[Xn]E[a_{1}X_{1}+a_{2}X_{2}+\cdot\cdot\cdot+a_{n}X_{n}]=a_{1}E[X_{1}]+a_{2}E[X_{2}]+\cdot\cdot\cdot+a_{n}E[X_{n}]       (2.11)

we obtain

E[X]=E[X1]++E[XN]=(1N)N=1E[X]=E[X_{1}]+\cdot\cdot\cdot+E[X_{N}]=\left({\frac{1}{N}}\right)N=1

Hence, no matter how many people are at the party, on the average exactly one of the men will select his own hat.

Related Answered Questions

Question: 2.27

Verified Answer:

Recalling (see Example 2.22) that E[X] = μ, we hav...
Question: 2.51

Verified Answer:

Since E[X_{i}]={\frac{1}{2}},\mathrm{Var}(X...
Question: 2.49

Verified Answer:

Let X be the number of items that will be produced...
Question: 2.44

Verified Answer:

The moment generating function of X + Y is given b...
Question: 2.39

Verified Answer:

The joint density of X and Y is given by f_...
Question: 2.37

Verified Answer:

Since the event {X + Y = n} may be written as the ...
Question: 2.36

Verified Answer:

From Equation (2.18), f_{X+Y}(a)={\frac{d}{...