Main Content


Poisson mean and variance


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


M = poisstat(lambda) returns the mean of the Poisson distribution using mean parameters in lambda. The size of M is the size of lambda.

[M,V] = poisstat(lambda) also returns the variance V of the Poisson distribution.

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


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™.

Version History

Introduced before R2006a