R/moments.R
mbinom.Rd
Formula: \(\mu = n \cdot p\) \(\mathrm{Var}(X) = n \cdot p \cdot (1 - p)\)
mbinom(size, prob)
Number of trials
Probability of success
List with mean and variance
dbinom
mbinom(size = 10, prob = 0.3) #> $mean #> [1] 3 #> #> $variance #> [1] 2.1 #>