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

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

Examples

mgeom(prob = 0.2)
#> $mean
#> [1] 4
#> 
#> $variance
#> [1] 20
#>