powered by
Formula: \(\mu = r \cdot \frac{1 - p}{p}\) \(\mathrm{Var}(X) = r \cdot \frac{1 - p}{p^2}\)
mnbinom(size, prob)
List with mean and variance
Number of successes
Probability of success
dnbinom
mnbinom(size = 5, prob = 0.4)
Run the code above in your browser using DataLab