Previous Up Next

7.3.5  Producing random numbers with a Poisson distribution: randpoisson

Recall that given a number λ, the corresponding Poisson distribution P(λ) satisfies

Prob(X ≤ k) = exp(−λ)λk/k!

It will have mean λ and standard deviation √λ.

The randpoisson command will take a parameter λ and return an integer chosen at random using the Poisson distribution. If you enter


you might get


Previous Up Next