Learn R Programming

DescTools (version 0.99.60)

mgeom: 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)

Value

List with mean and variance

Arguments

prob

Probability of success

See Also

Examples

Run this code
mgeom(prob = 0.2)

Run the code above in your browser using DataLab