Documentation Center

  • Trial Software
  • Product Updates

geostat

Geometric mean and variance

Syntax

[M,V] = geostat(P)

Description

[M,V] = geostat(P) returns the mean of and variance for the geometric distribution with corresponding probabilities in 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

| | |

Was this topic helpful?