Skip to content

Mathematics · Ch 10 — Random Variables and Probability Distributions

The Binomial Distribution

10.5

The Binomial Distribution

Suppose nn independent Bernoulli trials are performed, each with probability pp of success and q=1−pq = 1-p of failure. Let XX be the random variable counting the total number of successes in the nn trials; XX can take any of the values 0,1,2,…,n0, 1, 2, \dots, n. What is the probability of getting exactly xx successes?

Building the formula. Fix a particular arrangement of the nn trials with exactly xx successes and n−xn-x failures — say, the first xx trials succeed and the remaining n−xn-x fail. Because the trials are independent, the probability of this one specific sequence is found by multiplying the individual probabilities together:

p×p×⋯×p⏟x times×q×q×⋯×q⏟(n−x) times=pxq n−x\underbrace{p \times p \times \cdots \times p}_{x \text{ times}} \times \underbrace{q \times q \times \cdots \times q}_{(n-x) \text{ times}} = p^x q^{\,n-x}.

But this is only one of the many orders in which xx successes and n−xn-x failures can occur among nn trials — the successes could fall on any xx of the nn trial positions, and by the counting rule for combinations there are exactly nCx^{n}C_x such arrangements. Since these arrangements are mutually exclusive alternative ways of getting xx successes, their probabilities add up. Hence:

P(X=x)=nCx pxq n−x,x=0,1,2,…,nP(X = x) = {}^{n}C_x \, p^x q^{\,n-x}, \qquad x = 0, 1, 2, \dots, n.

A discrete random variable following this rule is said to have a Binomial distribution with parameters nn and pp, written X∼B(n,p)X \sim B(n, p). It applies exactly when the four Bernoulli-trial conditions of the previous section hold: fixed nn, two outcomes per trial, independence, and constant pp.

Why "binomial". Notice that nC0 qn,  nC1 p qn−1,  nC2 p2qn−2,…,nCn pn^{n}C_0\,q^n, \; {}^{n}C_1\,p\,q^{n-1}, \; {}^{n}C_2\,p^2q^{n-2}, \dots, {}^{n}C_n\,p^n are exactly the successive terms in the binomial expansion of (q+p)n(q+p)^n. That is why ∑x=0nP(X=x)=(q+p)n=1n=1\sum_{x=0}^{n} P(X=x) = (q+p)^n = 1^n = 1 automatically — the probabilities are guaranteed to add to 11 simply because p+q=1p + q = 1, without any extra checking. …