Math 2.0

Probability theory and stochastic processes Proof

Proof of the formula for the variance of a sum

Builds on Expected valueVarianceCovarianceLinearity of expectation

Proof

We expand the square of the centred sum and use linearity of expectation.

  1. Let X1,…,XnX_1, \dots, X_n be real random variables on one probability space with E[Xi2]<∞E[X_i^2] < \infty for each ii. Let S=X1+⋯+XnS = X_1 + \dots + X_n.
  2. For each real xx, ∣x∣≤(1+x2)/2\abs{x} \le (1 + x^2)/2, because (∣x∣−1)2≥0(\abs{x} - 1)^2 \ge 0.
  3. The integral of nonnegative functions is monotone. So by step 2, E[∣Xi∣]≤(1+E[Xi2])/2<∞E[\abs{X_i}] \le (1 + E[X_i^2])/2 < \infty, and each XiX_i is integrable, with expected value mi=E[Xi]m_i = E[X_i].
  4. Let Yi=Xi−miY_i = X_i - m_i. Since (x−m)2≤2x2+2m2(x - m)^2 \le 2x^2 + 2m^2 for real xx and mm, we get E[Yi2]≤2E[Xi2]+2mi2<∞E[Y_i^2] \le 2E[X_i^2] + 2m_i^2 < \infty.
  5. For real uu and vv, ∣uv∣≤(u2+v2)/2\abs{uv} \le (u^2 + v^2)/2. So ∣YiYj∣≤(Yi2+Yj2)/2\abs{Y_i Y_j} \le (Y_i^2 + Y_j^2)/2, and each product YiYjY_i Y_j is integrable.
  6. By linearity of expectation, SS is integrable and E[S]=m1+⋯+mnE[S] = m_1 + \dots + m_n. So S−E[S]=Y1+⋯+YnS - E[S] = Y_1 + \dots + Y_n.
  7. Expanding the square of a finite sum gives, pointwise, (S−E[S])2=∑i=1nYi2+2∑1≤i<j≤nYiYj.(S - E[S])^2 = \sum_{i=1}^n Y_i^2 + 2 \sum_{1 \le i < j \le n} Y_i Y_j.
  8. All terms on the right are integrable by steps 4 and 5. By linearity of expectation, E[(S−E[S])2]=∑i=1nE[Yi2]+2∑1≤i<j≤nE[YiYj].E[(S - E[S])^2] = \sum_{i=1}^n E[Y_i^2] + 2 \sum_{1 \le i < j \le n} E[Y_i Y_j].
  9. By the definition of the variance, the left side is Var⁡(S)\operatorname{Var}(S) and E[Yi2]=Var⁡(Xi)E[Y_i^2] = \operatorname{Var}(X_i).
  10. By the definition of the covariance, E[YiYj]=E[(Xi−mi)(Xj−mj)]=Cov⁡(Xi,Xj)E[Y_i Y_j] = E[(X_i - m_i)(X_j - m_j)] = \operatorname{Cov}(X_i, X_j).
  11. Steps 8 to 10 give Var⁡(∑i=1nXi)=∑i=1nVar⁡(Xi)+2∑1≤i<j≤nCov⁡(Xi,Xj).\operatorname{Var}\left(\sum_{i=1}^n X_i\right) = \sum_{i=1}^n \operatorname{Var}(X_i) + 2 \sum_{1 \le i < j \le n} \operatorname{Cov}(X_i, X_j).
  12. For n=2n = 2 with X1=XX_1 = X and X2=YX_2 = Y, the only pair is (1,2)(1, 2). So Var⁡(X+Y)=Var⁡(X)+Var⁡(Y)+2Cov⁡(X,Y)\operatorname{Var}(X + Y) = \operatorname{Var}(X) + \operatorname{Var}(Y) + 2 \operatorname{Cov}(X, Y).

Idea

The deviation of the sum from its mean is the sum of the deviations of the terms. Squaring a sum gives the squares plus twice the cross products. Their expectations are the variances and the covariances.

Reading path

To understand this page from the ground up, read these 47 pages in order. The foundations come first.

  1. Construction of the reals from Cauchy sequences concept
  2. Element definition
  3. Integers object
  4. Ordered field definition
  5. Proposition concept
  6. Random experiment concept
  7. Rational numbers object
  8. Real numbers object
  9. Set definition
  10. Ring of integers statement
  11. Disjunction definition
  12. Implication definition
  13. Predicate definition
  14. Ordered pair definition
  15. Union definition
  16. Sample space definition
  17. The rationals form a field statement
  18. Existential quantifier definition
  19. Universal quantifier definition
  20. Cartesian product definition
  21. Subset definition
  22. The rationals form an ordered field statement
  23. Uniqueness quantifier definition
  24. Binary relation definition
  25. Universal set definition
  26. Order on the reals definition
  27. Power set definition
  28. Complement definition
  29. Function definition
  30. Interval definition
  31. Injective function definition
  32. Preimage of a set definition
  33. Sigma-algebra definition
  34. Countable set definition
  35. Event definition
  36. Borel sigma-algebra definition
  37. Probability axioms concept
  38. Probability measure definition
  39. Probability space definition
  40. Random variable definition
  41. Discrete random variable definition
  42. Random variable with a density definition
  43. Expected value definition
  44. Linearity of expectation statement
  45. Variance definition
  46. Covariance definition
  47. Proof of the formula for the variance of a sum proof

Where this leads

65 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Variance, Sum of correlated variables
About this page
Tag1Q8PDAHQVC
URIm2://1Q8PDAHQVC
Kindproof
WritingW0 stub
MSC60A05
ProvesVariance of a sum
UsesExpected value, Variance, Covariance, Linearity of expectation
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.