mnbinom: Mean and Variance of the Negative Binomial Distribution

View source: R/moments.R

mnbinomR Documentation

Mean and Variance of the Negative Binomial Distribution

Description

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

Usage

mnbinom(size, prob)

Arguments

size

Number of successes

prob

Probability of success

Value

List with mean and variance

References

Casella, G. and Berger, R.L. (2002). Statistical Inference. Duxbury.

See Also

dnbinom

Examples

mnbinom(size = 5, prob = 0.4)

AndriSignorell/DescTools documentation built on June 11, 2025, 10:41 p.m.