powered by
Formula: μ=r⋅1−pp Var(X)=r⋅1−pp2
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