Skip to content

Mathematics · Ch 10 — Random Variables and Probability Distributions

Mean and Variance of the Binomial Distribution

10.6

Mean and Variance of the Binomial Distribution

For a general discrete distribution, computing the mean and variance means summing xiP(xi)x_i P(x_i) and xi2P(xi)−μ2x_i^2 P(x_i) - \mu^2 term by term, as in section 10.3. For the Binomial distribution specifically, this sum works out to a strikingly simple closed form (the algebra behind it is left aside here, but the result is the single most useful fact about the distribution):

Theorem. If X∼B(n,p)X \sim B(n,p), then mean μ=np\text{mean } \mu = np and variance σ2=npq\text{variance } \sigma^2 = npq.

This matches intuition well: if a coin with probability pp of heads is tossed nn times, the expected number of heads is simply nn times the chance of heads on each toss, i.e. npnp. The variance npqnpq shows that the spread is largest when p=q=0.5p = q = 0.5 (a fair, unbiased trial) and shrinks toward 00 as pp moves toward either extreme 00 or 11 (an almost-certain outcome has almost no variability left in it).

Worked Example (finding a probability). A coin is tossed 2020 times. Treating heads as success with p=12p = \frac12, the number of heads X∼B(20,0.5)X \sim B(20, 0.5) has mean μ=np=20×0.5=10\mu = np = 20 \times 0.5 = 10 and variance σ2=npq=20×0.5×0.5=5\sigma^2 = npq = 20 \times 0.5 \times 0.5 = 5, so the standard deviation is σ=5≈2.24\sigma = \sqrt5 \approx 2.24. On average we expect 1010 heads, and the typical deviation from that average is a little over 22 heads either way — which matches the everyday sense that getting exactly 1010 heads out of 2020 tosses is common, while getting, say, 1919 heads would be extraordinarily rare. …