Statistics Toolbox | ![]() ![]() |
Mean and variance for the geometric distribution
Syntax
Description
[M,V] = geostat(P)
returns the mean and variance for the geometric distribution with parameters specified by P
.
The mean of the geometric distribution with parameter p is q/p, where q = 1-p. The variance is q/p2.
Examples
[m,v] = geostat(1./(1:6)) m = 0 1.0000 2.0000 3.0000 4.0000 5.0000 v = 0 2.0000 6.0000 12.0000 20.0000 30.0000
See Also
geocdf
, geoinv
, geopdf
, geornd
![]() | geornd | gline | ![]() |