mnbinom {DescTools}R 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

See Also

dnbinom

Examples

mnbinom(size = 5, prob = 0.4)

[Package DescTools version 0.99.60 Index]