mgeom {DescTools} | R 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
Examples
mgeom(prob = 0.2)
[Package DescTools version 0.99.60 Index]