mgeom: Mean and Variance of the Geometric Distribution

View source: R/moments.R

mgeomR Documentation

Mean and Variance of the Geometric Distribution

Description

Formula: \mu = \frac{1 - p}{p} \mathrm{Var}(X) = \frac{1 - p}{p^2}

Usage

mgeom(prob)

Arguments

prob

Probability of success

Value

List with mean and variance

References

Grimmett, G. and Stirzaker, D. (2001). Probability and Random Processes. Oxford University Press.

See Also

dgeom

Examples

mgeom(prob = 0.2)

AndriSignorell/DescTools documentation built on June 11, 2025, 10:41 p.m.