Main Content

poisstat

Poisson mean and variance

Syntax

M = poisstat(lambda)
[M V] = poisstat(λ)

Description

M = poisstat(lambda)returns the mean of the Poisson distribution using mean parameters inlambda. The size ofMis the size oflambda.

[M V] = poisstat(λ)also returns the varianceVof the Poisson distribution.

For the Poisson distribution with parameter λ, both the mean and variance are equal to λ.

Examples

Find the mean and variance for the Poisson distribution with λ = 2.

[m,v] = poisstat([1 2; 3 4]) m = 1 2 3 4 v = 1 2 3 4

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced before R2006a