The Binomial Distribution

Introduces the binomial distribution as the distribution of the number of successes in n independent identical trials, each with success probability p. Covers the probability mass function, cumulative probabilities, mean, and variance.

Step 1 of 157%

Tutorial

The Binomial Distribution

Many random experiments consist of nn identical, independent trials, where each trial results in either a success or a failure. The probability of success pp is the same for every trial. Examples include flipping a coin nn times, rolling a die nn times and counting sixes, or inspecting nn parts for defects.

If XX counts the number of successes in nn such trials, then XX follows a binomial distribution with parameters nn and p,p, written

XB(n,p).X \sim B(n, p).

Its probability mass function is

P(X=k)=(nk)pk(1p)nk,k=0,1,2,,n.P(X = k) = \binom{n}{k} p^k (1-p)^{n-k}, \qquad k = 0, 1, 2, \ldots, n.

The binomial coefficient (nk)=n!k!(nk)!\binom{n}{k} = \dfrac{n!}{k!(n-k)!} counts the number of ways to choose which kk of the nn trials are the successes. The factor pk(1p)nkp^k(1-p)^{n-k} is the probability of any one specific sequence with kk successes and nkn-k failures.

For example, suppose a fair coin is flipped 33 times and XX is the number of heads. Then XB(3,0.5),X \sim B(3, 0.5), and

P(X=2)=(32)(0.5)2(0.5)1=31412=38.P(X = 2) = \binom{3}{2}(0.5)^2(0.5)^1 = 3 \cdot \tfrac{1}{4} \cdot \tfrac{1}{2} = \tfrac{3}{8}.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle