### Matching Experiment

Ball 1 Ball 2 Ball 3 Ball 4 Ball 5 Ball 6 Ball 7 Ball 8 Ball 9 Ball 10 Ball 11 Ball 12 Ball 13 Ball 14 Ball 15 Ball 16 Ball 17 Ball 18 Ball 19 Ball 20
Distribution graph

#### Description

The experiment is to randomly permute $$n$$ balls, numbered 1 to $$n$$. A match occurs whenever the ball number and the position number agree. The matches are shown in red. The random variable $$N$$ that give the number of matches is recorded on each update. The probability density function and moments of $$N$$ are shown in blue in the distribution graph and are recorded in the distribution table. On each update, the empirical density function and moments are shown in red in the distribution graph and are recorded in the distribution table. The parameter $$n$$ can be varied with the input control.