# Binomial sum variance inequality

The binomial sum variance inequality states that the variance of the sum of binomially distributed random variables will always be less than or equal to the variance of a binomial variable with the same n and p parameters. In probability theory and statistics, the sum of independent binomial random variables is itself a binomial random variable if all the component variables share the same success probability. If success probabilities differ, the probability distribution of the sum is not binomial. The lack of uniformity in success probabilities across independent trials leads to a smaller variance. and is a special case of a more general theorem involving the expected value of convex functions. In some statistical applications, the standard binomial variance estimator can be used even if the component probabilities differ, though with a variance estimate that has an upward bias.

## Inequality statement

Consider the sum, Z, of two independent binomial random variables, X ~ B(m0, p0) and Y ~ B(m1, p1), where Z = X + Y. Then, the variance of Z is less than or equal to its variance under the assumption that p0 = p1, that is, if Z had a binomial distribution. Symbolically, $Var(Z)\leqslant E[Z](1-{\tfrac {E[Z]}{m_{0}+m_{1}}})$ .

[Proof]

We wish to prove that

$Var(Z)\leqslant E[Z](1-{\frac {E[Z]}{m_{0}+m_{1}}})$ We will prove this inequality by finding an expression for Var(Z) and substituting it on the left-hand side, then showing that the inequality always holds.

If Z has a binomial distribution with parameters n and p, then the expected value of Z is given by E[Z] = np and the variance of Z is given by Var[Z] = np(1 – p). Letting n = m0 + m1 and substituting E[Z] for np gives

$Var(Z)=E[Z](1-{\frac {E[Z]}{m_{0}+m_{1}}})$ The random variables X and Y are independent, so the variance of the sum is equal to the sum of the variances, that is

$Var(Z)=E[X](1-{\frac {E[X]}{m_{0}}})+E[Y](1-{\frac {E[Y]}{m_{1}}})$ In order to prove the theorem, it is therefore sufficient to prove that

$E[X](1-{\frac {E[X]}{m_{0}}})+E[Y](1-{\frac {E[Y]}{m_{1}}})\leqslant E[Z](1-{\frac {E[Z]}{m_{0}+m_{1}}})$ Substituting E[X] + E[Y] for E[Z] gives

$E[X](1-{\frac {E[X]}{m_{0}}})+E[Y](1-{\frac {E[Y]}{m_{1}}})\leqslant (E[X]+E[Y])(1-{\frac {E[X]+E[Y]}{m_{0}+m_{1}}})$ Multiplying out the brackets and subtracting E[X] + E[Y] from both sides yields

$-{\frac {E[X]^{2}}{m_{0}}}-{\frac {E[Y]^{2}}{m_{1}}}\leqslant -{\frac {(E[X]+E[Y])^{2}}{m_{0}+m_{1}}}$ Multiplying out the brackets yields

$E[X]-{\frac {E[X]^{2}}{m_{0}}}+E[Y]-{\frac {E[Y]^{2}}{m_{1}}}\leqslant E[X]+E[Y]-{\frac {(E[X]+E[Y])^{2}}{m_{0}+m_{1}}}$ Subtracting E[X] and E[Y] from both sides and reversing the inequality gives

${\frac {E[X]^{2}}{m_{0}}}+{\frac {E[Y]^{2}}{m_{1}}}\geqslant {\frac {(E[X]+E[Y])^{2}}{m_{0}+m_{1}}}$ Expanding the right-hand side gives

${\frac {E[X]^{2}}{m_{0}}}+{\frac {E[Y]^{2}}{m_{1}}}\geqslant {\frac {E[X]^{2}+2E[X]E[Y]+E[Y]^{2}}{m_{0}+m_{1}}}$ Multiplying by $m_{0}m_{1}(m_{0}+m_{1})$ yields

$(m_{0}m_{1}+{m_{1}}^{2}){E[X]^{2}}+({m_{0}}^{2}+m_{0}m_{1}){E[Y]^{2}}\geqslant m_{0}m_{1}({E[X]}^{2}+2E[X]E[Y]+{E[Y]]^{2}})$ Deducting the right-hand side gives the relation

${m_{1}}^{2}{E[X]^{2}}-2m_{0}m_{1}E[X]E[Y]+{m_{0}}^{2}{E[Y]^{2}}\geqslant 0$ or equivalently

$(m_{1}E[X]-m_{0}E[Y])^{2}\geqslant 0$ The square of a real number is always greater than or equal to zero, so this is true for all independent binomial distributions that X and Y could take. This is sufficient to prove the theorem.

Although this proof was developed for the sum of two variables, it is easily generalized to greater than two. Additionally, if the individual success probabilities are known, then the variance is known to take the form

$\operatorname {Var} (Z)=n{\bar {p}}(1-{\bar {p}})-ns^{2},$ where $s^{2}={\frac {1}{n}}\sum _{i=1}^{n}(p_{i}-{\bar {p}})^{2}$ . This expression also implies that the variance is always less than that of the binomial distribution with $p={\bar {p}}$ , because the standard expression for the variance is decreased by ns2, a positive number.

## Applications

The inequality can be useful in the context of multiple testing, where many statistical hypothesis tests are conducted within a particular study. Each test can be treated as a Bernoulli variable with a success probability p. Consider the total number of positive tests as a random variable denoted by S. This quantity is important in the estimation of false discovery rates (FDR), which quantify uncertainty in the test results. If the null hypothesis is true for some tests and the alternative hypothesis is true for other tests, then success probabilities are likely to differ between these two groups. However, the variance inequality theorem states that if the tests are independent, the variance of S will be no greater than it would be under a binomial distribution.