Learn R Programming

Distributacalcul (version 0.2.2)

V_binom: Variance of the Binomial distribution

Description

Variance of the Binomial distribution with size \(n\) and probability of success \(p\).

Usage

V_binom(size, prob)

Arguments

size

Number of trials (0 or more).

prob

Probability of success on each trial.

Value

Function :

Invalid parameter values will return an error detailing which parameter is problematic.

Details

The Binomial distribution with probability of success \(p\) for \(n\) trials has probability mass function : $$Pr(X = k) = \left(\frac{n}{k}\right) p^n (1 - p)^{n - k}$$ for \(k = 0, 1, 2, \dots, n\), \(p \in [0, 1]\), and \(n > 0\)

See Also

Other Binomial Distribution: E_binom(), Etronq_binom(), MGF_binom(), PGF_binom(), TVaR_binom(), VaR_binom()

Examples

Run this code
# NOT RUN {
V_binom(size = 3, prob = 0.5)

# }

Run the code above in your browser using DataLab