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

See Also

dbinom

Examples

mbinom(size = 10, prob = 0.3)

DescTools documentation built on April 4, 2025, 1:55 a.m.