Probability Distribution and Shape

> restart;

> with(plots):

>

The Poisson Distribution

The Poisson( [Maple Math] ) distribution is a discrete distribution on the non-negative integers {0,1,2,...}.

The parameter [Maple Math] must be positive.

If X is a random variable having the Poisson( [Maple Math] ) distribution, then the probability distribution

function for X is

f ( k ) = P( X = k ) = [Maple Math] , k = 0, 1, 2, ...

Recall the convention 0! = 1.

The following code will draw a probability histogram for the Poisson( [Maple Math] ) distribution

for [Maple Math] =2, but you are encouraged to try other values of [Maple Math] .

> lambda:=2;

[Maple Math]

> ProbHist(PoissonPDF(lambda,x),0..20,21);

[Maple Plot]

To see the effect of [Maple Math] on the shape of the Poisson( [Maple Math] ) distribution, the following

animation will draw a series of probability histograms as [Maple Math] varies from 1 to 15.

> for n from 1 to 15 do

> num:=convert(evalf(n), string):

> tracker[n]:=textplot([18,0.3,`Lambda is `.num],color=blue):

> H[n]:=ProbHist(PoissonPDF(n,x),0..25,26):

> P[n]:=display({H[n],tracker[n]}):

> od:

> display([seq(P[n], n=1..15)], insequence=true,title="Lambda is Increasing from 1 to 15");

[Maple Plot]

>