mbinom {DescTools}R 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

See Also

dbinom

Examples

mbinom(size = 10, prob = 0.3)

[Package DescTools version 0.99.60 Index]