navbar-top.gif
btn_spacer.gifHomeTopicsLatestRandomAboutFAQsParticipateAuthoring Areabtn_spacer.gif

The Number of Fixed Points in a Random Permutation

For a random permutation of , let be the random variable that counts the number of digits that remain in their original position. This Demonstration allows you to compare the relative frequencies of obtained in a sample of size 400 with the exact and approximate distributions of . It also gives the sample mean and standard deviation.


This is the so-called matching problem, in which individuals mix their hats up and then randomly make a selection. The random variable is the number of individuals that select their own hat. The permutations that lead to are called derangements. The distribution of is given by , . Both the expectation and the variance of equal 1, regardless of the value of . As goes to infinity, the distribution of converges to the Poisson distribution with parameter 1.
Free Download: Mathematica Player--Runs all Demonstrations & more


Share & Bookmark This Demonstration


Powered by Wolfram Mathematica
Give us your feedback
Give us your feedback

Source page:




 often  occasionally  never

Note: Please do not include anything you consider confidential or proprietary. We will keep your information private. We will not give it to any third party.
Privacy Policy »

©  2008 The Wolfram Demonstrations Project & Contributors    Wolfram Research    Site Index    Terms of Use    Privacy Policy    RSS    Atom