Linear Combinations of Binomial Random Variables

How to combine independent binomial random variables: when the sum is itself binomial, and how to compute the mean and variance of linear combinations of binomials.

Step 1 of 119%

Tutorial

Sum of Independent Binomials with the Same p

When two binomial random variables share the same success probability pp and are independent, their sum is also binomial.

Theorem. If XBin(n,p)X \sim \text{Bin}(n, p) and YBin(m,p)Y \sim \text{Bin}(m, p) are independent, then

X+YBin(n+m,p).X + Y \sim \text{Bin}(n + m,\, p).

Intuitively, XX counts successes in nn independent trials with success probability pp, and YY counts successes in mm more independent trials with the same pp. Pooling all n+mn + m trials gives a binomial with parameter n+mn + m and the same pp.

For example, if XBin(3,0.4)X \sim \text{Bin}(3, 0.4) and YBin(5,0.4)Y \sim \text{Bin}(5, 0.4) are independent, then

X+YBin(8,0.4).X + Y \sim \text{Bin}(8,\, 0.4).

Two warnings.

  1. The success probabilities must match. If XBin(3,0.4)X \sim \text{Bin}(3, 0.4) and YBin(5,0.7)Y \sim \text{Bin}(5, 0.7), then X+YX + Y is not binomial.
  2. The result requires independence.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle