Binomial Distribution

Interpretation

A random variable Y=∑iXi follows a binomial distribution, counting the number of successes of the random variable X that follows the Bernoulli Distribution

Probability Distribution Function

A random variable X has a binomial distribution, denoted by X∼Bin(n,p) if and only if it has the probability distribution function

f(x)=P(X=x)=(nx)px(1−p)n−x

for 0≤x≤n, with:

  1. f(x)≥0
  2. ∑xf(x)=1

where n represents the number of total trials, p the probability of "success" and x the number of "successes"

Mean

E(X)=∑xxf(x)=∑x=0nx(nx)px(1−p)n−x=∑x=1nxn!x!(n−x)!px(1−p)n−x=∑x=1nn(n−1)!(x−1)!(n−x)!p⋅px−1(1−p)n−x=np∑x=1n(n−1)!(x−1)!(n−1−(x−1))!px−1(1−p)n−1−(x−1)=np∑x=1nBin(n−1,p)μ=np⋅1=np

Variance

Var(X)=np(1−p)

If X represents the number of successes in n trials, then Y=Xn represents the Sample Proportion of successes

Using Chebyshev's Theorem we get the law of large numbers:

limn→∞P(|y−p|≤c)=1

Moment-generating function

MX(t)=[1+p(et−1)]n

examples