Formula: \(\mu = n \cdot p\) \(\mathrm{Var}(X) = n \cdot p \cdot (1 - p)\)

mbinom(size, prob)

Arguments

size

Number of trials

prob

Probability of success

Value

List with mean and variance

References

Casella, G. and Berger, R.L. (2002). Statistical Inference. Duxbury.

See also

Examples

mbinom(size = 10, prob = 0.3)
#> $mean
#> [1] 3
#> 
#> $variance
#> [1] 2.1
#>