MathLabs
TheoremProved

The Deviations from the Mean Sum to Zero

Statement

For any data set x1,x2,…,xnx_1, x_2, \ldots, x_n with mean xˉ\bar x, ∑i=1n(xi−xˉ)=0\sum_{i=1}^{n}(x_i-\bar x) = 0.

Why is it true?

The mean is defined precisely as the balance point of the data — think of a see-saw with weights at each xix_i — so the values above the mean must exactly offset the values below it, or else xˉ\bar x would not be the balance point.

Proof sketch

Expand the sum by distributing: ∑i=1n(xi−xˉ)=∑i=1nxi−∑i=1nxˉ\sum_{i=1}^{n}(x_i-\bar x) = \sum_{i=1}^{n}x_i - \sum_{i=1}^{n}\bar x. The second sum adds the constant xˉ\bar x to itself nn times, so ∑i=1nxˉ=nxˉ\sum_{i=1}^{n}\bar x = n\bar x.

By definition, xˉ=1n∑i=1nxi\bar x = \frac{1}{n}\sum_{i=1}^{n}x_i, so multiplying both sides by nn gives nxˉ=∑i=1nxin\bar x = \sum_{i=1}^{n}x_i. This is exactly the same quantity as the first sum in the expansion above.

Substituting back, ∑i=1n(xi−xˉ)=∑i=1nxi−nxˉ=∑i=1nxi−∑i=1nxi=0\sum_{i=1}^{n}(x_i-\bar x) = \sum_{i=1}^{n}x_i - n\bar x = \sum_{i=1}^{n}x_i - \sum_{i=1}^{n}x_i = 0, which proves the claim.

Topics that use this theorem

Step-by-step proofs

No step-by-step proof yet for this theorem.

References

  1. David Freedman, Robert Pisani, Roger Purves (2007). Statistics
  2. David S. Moore, William I. Notz (2020). The Basic Practice of Statistics