A question on probability and simple arrangement

129 Views Asked by At

Given n people live in n houses and at some instant all of them disappear and reappear in some other house. What is the probability that no two meet each other?

1

There are 1 best solutions below

0
On

The question is not completely clear.

I'll answer the following interpretation:

$n \geq 2$ persons live in $n$ houses, one person per house. Now each person is randomly moved to another house, with equal probability for each possibility. What is the probability that after this moving process, there is again exactly one person per house?

The number of possible outcomes is $(n-1)^n$, since for every person there are $n-1$ possibilities (all houses different from the own one). The number of favorable outcomes is the number $!n$ of all fixed-point free permutations, also called derangements. See the wikipedia article for closed expressions for $!n$.

So the probability is $$P(n) = \frac{!n}{(n-1)^n}.$$

For small $n$, we get $$\begin{array}{cc} n & 2 & 3 & 4 & 5 & 6 & 7 \\ \hline P(n) & 100\% & 25\% & 11.11\% & 4.30\% & 1.70\% & 0.66\% \end{array} $$ By the asymtotics of $!n$, we see $$\lim_{n\to\infty} P(n) = 0.$$