Main Content

poisstat

Poisson mean and variance

Description

m = poisstat(lambda) returns the mean for the Poisson distribution with the rate parameter lambda.

[m,v] = poisstat(lambda) also returns the variance for the distribution.

example

Examples

collapse all

Compute the mean and variance of a Poisson distribution with the rate parameter lambda.

lambda = 3;
[mean,variance] = poisstat(lambda)
mean = 
3
variance = 
3

Input Arguments

collapse all

Rate parameter of the Poisson distribution, specified as a positive scalar or an array of positive scalars.

Data Types: single | double

Output Arguments

collapse all

Mean for the Poisson distribution, returned as a numeric scalar or an array of numeric scalars. m is the same size as lambda. Each element in m is the mean of the Poisson distribution specified by the corresponding element in lambda.

The mean of the Poisson distribution is lambda.

Variance for the Poisson distribution, returned as a numeric scalar or an array of numeric scalars. v is the same size as lambda. Each element in v is the variance of the Poisson distribution specified by the corresponding element in lambda.

The variance of the Poisson distribution is lambda.

Extended Capabilities

expand all

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

Version History

Introduced before R2006a