The exponential distribution with rate \(\lambda\) has mean and variance \(\mu = \frac{1}{\lambda}\) \(\mathrm{Var}(X) = \frac{1}{\lambda^2}\)

mexp(rate)

Arguments

rate

Rate parameter (1 / mean)

Value

List with mean and variance

References

Hogg, R.V., McKean, J., and Craig, A.T. (2018). Introduction to Mathematical Statistics. Pearson.

See also

Examples

mexp(rate = 0.5)
#> $mean
#> [1] 2
#> 
#> $variance
#> [1] 4
#>