Learn R Programming

DescTools (version 0.99.60)

mnbinom: 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)

Value

List with mean and variance

Arguments

size

Number of successes

prob

Probability of success

See Also

Examples

Run this code
mnbinom(size = 5, prob = 0.4)

Run the code above in your browser using DataLab