mbinom: Mean and Variance of the Binomial Distribution

View source: R/moments.R

mbinomR Documentation

Mean and Variance of the Binomial Distribution

Description

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

Usage

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

dbinom

Examples

mbinom(size = 10, prob = 0.3)

AndriSignorell/DescTools documentation built on June 11, 2025, 10:41 p.m.