You're mad! Lunatic! Deranged!

Let P ( n ) P(n) be the probability that a random permutation of n n distinct elements have no element in their original position.

Find lim n P ( n ) \lim_{n \rightarrow \infty} P(n)


The answer is 0.36787944.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Jake Lai
Dec 23, 2014

It is known that there are k = 0 n n ! ( 1 ) k k ! \displaystyle \sum_{k=0}^{n} \frac{n!(-1)^{k}}{k!} derangements of a set of n n elements out of a total of n ! n! permutations.

Hence,

P ( n ) = 1 n ! k = 0 n n ! ( 1 ) k k ! = k = 0 n ( 1 ) k k ! \displaystyle P(n) = \frac{1}{n!} \sum_{k=0}^{n} \frac{n!(-1)^{k}}{k!} = \sum_{k=0}^{n} \frac{(-1)^{k}}{k!}

Using the fact that k = 0 x k k ! = e x \displaystyle \sum_{k=0}^{\infty} \frac{x^{k}}{k!} = e^{x} ,

lim n P ( n ) = k = 0 ( 1 ) k k ! = e 1 0.3678 \lim_{n \rightarrow \infty} P(n) = \sum_{k=0}^{\infty} \frac{(-1)^{k}}{k!} = \boxed{e^{-1} \approx 0.3678}

Very nice problem! It's amazing how often e e appears in probability.

Michael Ng - 6 years, 5 months ago

Log in to reply

Indeed! I was doing a maths project recently on the secretary problem and there it was, appearing from simple probabilistic settings. I should post a problem on stopping at the nth best candidate, actually - that'll be soon.

Jake Lai - 6 years, 5 months ago

A rather quick approach to the problem would be to use the identity ! n = n ! e + 1 2 , n 1 !n=\left \lfloor \dfrac{n!}{e}+\dfrac{1}{2} \right \rfloor~,~n\geq1 and neglect the floor function and the value 1 2 \dfrac{1}{2} while evaluating the limit since, in the limit , we have n n\to \infty and neglecting those considerations in the identity won't affect the limit much and we can get an approximation quicker this way. So,

lim n P ( n ) = lim n ! n n ! lim n n ! n ! e e 1 0.3678 \displaystyle \lim_{n\to \infty}P(n)= \lim_{n\to \infty}\dfrac{!n}{n!}\approx \lim_{n\to \infty} \dfrac{n!}{n!\cdot e} \approx e^{-1} \approx \boxed{0.3678}

Prasun Biswas - 6 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...