0

How do I calculate the pmf of $X_N$, where $X$ is the number of people out of $N$ getting back their own hat after a random hat exchange?

How can I calculate it without listing all the possible outcomes?

RHS
  • 413

1 Answers1

2

Hint: For $0\leq n\leq N$ : $P(X_{N}=n)$ is the probability that exactly $n$ people got their hat back.

In how many ways this can be done ?

If want to fix some $n$ hats in their place (in how many ways can we choose them ?) and dearrange the other $N-n$ hats (in how many ways can you do that ?)

Belgi
  • 23,150
  • Thank you. But I think what you just did was rewriting my question. Also n is from 0. Means no one getting there own hat. – RHS May 18 '13 at 11:42
  • I think maybe you could show how to get the pmt of N=4 as an example. – RHS May 18 '13 at 12:06
  • @RHS - this is not a rewrite to your question. the hints are in the last paragraph. Note that the word "dearrange" is a link to guide you do find the number of permutations without fixed points – Belgi May 18 '13 at 12:35