* this demonstration shows some concepts about Poisson distributions.
data list list /hits (f1).
begin data.
0
1
2
3
4
5
end data.
compute meanhits = .61.
compute probexact = pdf.poisson(hits,meanhits).
do if hits eq 0.
compute problower = 0.
compute cumprob1 = probexact.
compute cumprob2 = probexact.
else.
compute problower = lag(cumprob1).
compute cumprob1 = probexact+lag(cumprob1).
compute cumprob2 = cdf.poisson(hits,meanhits).
end if.
compute probhigher = 1-cumprob1.
formats meanhits probexact cumprob1 cumprob2 problower probhigher (f6.5).
list.
*CDF.POISSON. CDF.POISSON(quant, mean). Numeric. Returns the cumulative
probability
that a value from the Poisson distribution, with the specified mean or
rate parameter,
will be less than or equal to quant.
*PDF.POISSON. PDF.POISSON(quant, mean). Numeric. Returns the probability
that a value from the Poisson distribution, with the specified mean or
rate parameter,
will be equal to quant.
* Help > Algorithms > Distribution and Special Functions > Discrete
Distributions (Distribution and Special Functions algorithms)
Art Kendall
Social Research Consultants