• Practice
  • About 17 min
  • 5 practice questions

Combined variance and finding unknown observations

Combine the mean and variance of two groups, and recover unknown observations when the mean and variance are given.

If something looks wrong, please tell us.

Two kinds of question appear again and again: "two groups are put together, find the variance of the whole" and "the mean and variance are known, find the missing observations". Both rely on totals, as in lesson 3. Variance continues to mean division by n.

Combining two groups

Suppose group 1 has n₁ values with mean x̄₁ and variance σ₁², and group 2 has n₂, x̄₂, σ₂². The combined mean is x̄ = (n₁x̄₁ + n₂x̄₂)/(n₁ + n₂). The combined variance is not the average of the variances: each group also contributes the squared distance of its mean from the combined mean.

Combined variance σ² = [n₁(σ₁² + d₁²) + n₂(σ₂² + d₂²)]/(n₁ + n₂), where d₁ = x̄₁ − x̄ and d₂ = x̄₂ − x̄. Equivalently, add the two Σx² totals and use Σx²/n − x̄².

Worked example 1

Group 1: 10 values, mean 12, variance 4. Group 2: 15 values, mean 17, variance 9. Combined mean = (120 + 255)/25 = 15. Then d₁ = −3 and d₂ = 2, so σ² = [10(4 + 9) + 15(9 + 4)]/25 = (130 + 195)/25 = 13. Check with totals: Σx² = 10(4 + 144) + 15(9 + 289) = 1480 + 4470 = 5950, and 5950/25 − 15² = 238 − 225 = 13.

Notice that the combined variance, 13, is larger than both group variances. Putting groups with different means together always adds spread; only when the means are equal is the combined variance just the weighted average of the variances.

Why the extra d² term? The variance of a group measures spread about that group's own mean. When groups are combined, spread is measured about the new combined mean, and each group's values are on average further from it by the distance between the two means. The d² term adds exactly that extra spread, and the totals method does the same automatically.

Finding two unknown observations

If all but two observations are known, the mean gives their sum x + y and the variance gives x² + y². Then xy = ((x + y)² − (x² + y²))/2, and x and y are the roots of t² − (x + y)t + xy = 0.

Worked example 2

Five observations have mean 4.4 and variance 8.24. Three of them are 1, 2 and 6. Sum of all five = 22, so x + y = 22 − 9 = 13. Σx² = 5(8.24 + 4.4²) = 5(8.24 + 19.36) = 138, so x² + y² = 138 − 41 = 97. Then xy = (169 − 97)/2 = 36, and t² − 13t + 36 = 0 gives t = 4 or 9. The missing observations are 4 and 9.

Worked example 3: two observations from scratch

Two observations have mean 5 and variance 4. With only two values, each lies the same distance from the mean, and the variance is that distance squared. So the distance is 2 and the observations are 3 and 7. Check: ((3 − 5)² + (7 − 5)²)/2 = 4.

  1. Write the given mean and variance as Σx and Σx² first.
  2. Subtract the known observations from both totals.
  3. Use the sum and the sum of squares to get the product, then solve the quadratic.
  4. Check the answer by recomputing the mean and variance.

Key takeaways. Combine groups through totals, or with the d² correction; never just average the variances. Two unknown observations come from a sum and a sum of squares, solved as a quadratic. Always check by recomputing.

Check your understanding

  1. 1. 20 observations have mean 30 and 30 observations have mean 40. What is the combined mean?

    1. 35
    2. 34
    3. 36
    4. 37
    Show answer

    Answer: C. Totals 600 and 1200. Combined mean = 1800/50 = 36.

  2. 2. Two groups of 10 have means 10 and 20 and variances 4 and 6. What is the variance of all 20 values?

    1. 5
    2. 25
    3. 35
    4. 30
    Show answer

    Answer: D. Combined mean 15, d = ±5. σ² = [10(4 + 25) + 10(6 + 25)]/20 = (290 + 310)/20 = 30.

  3. 3. Seven observations have mean 8 and variance 16. Five of them are 2, 4, 10, 12, 14. What are the other two?

    1. 5 and 9
    2. 4 and 10
    3. 7 and 7
    4. 6 and 8
    Show answer

    Answer: D. Sum = 56, so x + y = 56 − 42 = 14. Σx² = 7(16 + 64) = 560, so x² + y² = 560 − 460 = 100. Then xy = (196 − 100)/2 = 48, giving 6 and 8.

  4. 4. Group A has n = 5, Σx = 50, Σx² = 520; group B has n = 5, Σx = 70, Σx² = 1000. What is the variance of the combined group?

    1. 6
    2. 8
    3. 10
    4. 12
    Show answer

    Answer: B. Combined: n = 10, Σx = 120, Σx² = 1520. Mean 12, variance 152 − 144 = 8.

  5. 5. Two observations have mean 9 and variance 9. What are they?

    1. 0 and 18
    2. 3 and 15
    3. 6 and 12
    4. 7.5 and 10.5
    Show answer

    Answer: C. Each lies √9 = 3 from the mean, so the observations are 6 and 12. Check: (9 + 9)/2 = 9.

Privacy · Terms · Refunds · Delivery