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

See Also

dgeom

Examples

mgeom(prob = 0.2)

DescTools documentation built on April 4, 2025, 1:55 a.m.