Sample Probability Calculations

We can calculate probabilities for the Poisson( [Maple Math] ) distribution using either the probability

distribution function (PDF) or the cumulative distribution function (CDF). We will denote

the PDF by f and the CDF by F . We will consider these functions for a variable X having

the Poisson(2) distribution.

> lambda:=2;

[Maple Math]

> f:=x->PoissonPDF(lambda,x);

[Maple Math]

> F:=x->PoissonCDF(lambda,x);

[Maple Math]

Below you will find three different ways to calculate P( [Maple Math] ) .

> evalf(f(0)+f(1)+f(2)+f(3));

[Maple Math]

> evalf(sum(f(x),x=0..3));

[Maple Math]

> evalf(F(3));

[Maple Math]