• Practice
  • About 16 min
  • 5 practice questions

Deviation sums: using Σ(x − a) and Σ(x − a)² to find means and variances

Use Σ(x − a) to find the mean and a missing observation, and Σ(x − a)² together with it to find the variance, without needing the individual observations.

If something looks wrong, please tell us.

Many problems do not give the observations at all. They give the sum of deviations from some convenient number a, and sometimes the sum of the squares of those deviations. This is enough to find the mean and the variance. The method rests on two simple facts about deviations from the mean, and on a formula that moves the reference point from a to the mean.

The key facts

  • The deviations from the mean add to zero: Σ(x − x̄) = 0. So when all but one deviation from the mean are known, the last is the negative of their sum.
  • From any number a: Σ(x − a) = Σx − na = n(x̄ − a). So x̄ = a + Σ(x − a)/n.
  • For the variance: Σ(x − a)² = n[σ² + (x̄ − a)²], hence σ² = Σ(x − a)²/n − (x̄ − a)².

x̄ = a + Σ(x − a)/n. σ² = Σ(x − a)²/n − (x̄ − a)². The deviations from the mean always add to zero. The sum of squares about the mean is the smallest sum of squares about any point.

Worked example 1: the missing deviation

Five observations have mean 20. Four of their deviations from the mean are −4, −2, 1 and 3. The fifth deviation must make the total zero: −4 − 2 + 1 + 3 = −2, so the fifth is +2, and the fifth observation is 20 + 2 = 22. The observations are 16, 18, 21, 23, 22. Check: the sum is 100 and the mean is 100/5 = 20.

Worked example 2: mean and variance from deviation sums

For 10 observations, Σ(x − 5) = 10 and Σ(x − 5)² = 100. The mean is 5 + 10/10 = 6. The variance is 100/10 − (6 − 5)² = 10 − 1 = 9, so σ = 3. Notice that 10 is not the variance: it is the mean square about 5, and 5 is not the mean.

Worked example 3: negative sum of deviations

For 8 observations, Σ(x − 12) = −16 and Σ(x − 12)² = 88. The mean is 12 − 16/8 = 12 − 2 = 10. The variance is 88/8 − (10 − 12)² = 11 − 4 = 7.

Worked example 4: going the other way

A data set has n = 20, mean 15 and variance 4. Find Σ(x − 10)². Using Σ(x − a)² = n[σ² + (x̄ − a)²] with a = 10: 20 × [4 + (15 − 10)²] = 20 × 29 = 580. As a check, Σx = 300 and Σx² = 20 × (4 + 225) = 4580, so Σ(x − 10)² = Σx² − 20Σx + 100 × 20 = 4580 − 6000 + 2000 = 580.

Reading the formula

The term (x̄ − a)² is always non-negative, so Σ(x − a)²/n is never smaller than σ². It equals σ² only when a is the mean. This is why the sum of squared deviations is smallest about the mean, and it explains the correction needed when a is not the mean.

Traps

  • Treating Σ(x − a)²/n as the variance when a is not the mean.
  • Using the sum of deviations Σ(x − a) as if it were zero: it is zero only for a = x̄.
  • Forgetting to divide Σ(x − a) by n when finding the mean.
  • Mixing up the sign: if Σ(x − a) is negative, the mean is below a.

Key takeaways: the mean is a + Σ(x − a)/n; the variance is Σ(x − a)²/n − (x̄ − a)². Deviations from the mean sum to zero, which lets you find a missing deviation.

Check your understanding

  1. 1. Five observations have mean 20. Four of the deviations from the mean are −4, −2, 1 and 3. What is the fifth observation?

    1. 18
    2. 24
    3. 2
    4. 22
    Show answer

    Answer: D. The fifth deviation is −(−4 − 2 + 1 + 3) = +2, so the observation is 20 + 2 = 22. (The number 2 is the deviation, not the observation.)

  2. 2. For 10 observations Σ(x − 5) = 10. What is the mean?

    1. 5
    2. 6
    3. 7
    4. 15
    Show answer

    Answer: B. x̄ = 5 + 10/10 = 6.

  3. 3. For 10 observations Σ(x − 5) = 10 and Σ(x − 5)² = 100. What is the variance?

    1. 10
    2. 11
    3. 9
    4. 1
    Show answer

    Answer: C. σ² = 100/10 − (6 − 5)² = 10 − 1 = 9.

  4. 4. For 8 observations Σ(x − 12) = −16 and Σ(x − 12)² = 88. What is the variance?

    1. 7
    2. 11
    3. 9
    4. 5
    Show answer

    Answer: A. The mean is 12 − 2 = 10. σ² = 88/8 − (10 − 12)² = 11 − 4 = 7.

  5. 5. A data set has 20 observations with mean 15 and variance 4. What is Σ(x − 10)²?

    1. 80
    2. 500
    3. 580
    4. 380
    Show answer

    Answer: C. Σ(x − a)² = n[σ² + (x̄ − a)²] = 20 × (4 + 25) = 580.

Privacy · Terms · Refunds · Delivery