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

See Also

dnbinom

Examples

mnbinom(size = 5, prob = 0.4)

DescTools documentation built on April 4, 2025, 1:55 a.m.