Variance from totals and combined data
A standard-deviation calculation needs only three totals: how many values there are, their sum, and their sum of squares. That lets you combine data sets or run a question backwards.
Pool totals, not standard deviations
pool these three
n · Σx · Σx²
Add the matching total from each group.
calculate once
variance = Σx²/n − (Σx/n)²
finish
SD = √variance
Never average or add two SDs.
Recover a missing squared total
The three totals are the number of values, their sum and their sum of squares. If the mean and standard deviation are given, square the SD to obtain the variance and rearrange the same formula.
Worked example
Find the missing group's squared total
A combined set has , mean 8.54 and SD 1.38. One group contributes . Find the other group's squared total.
The whole set has squared total .
(9709/51/M/J/25 Q3(d))
Combine by adding totals
- Create one total count. Add the two group sizes.
- Create one ordinary total. Add the two values. If a mean is given, first recover its total with .
- Create one squared total. Add the two values. If an SD is given, first recover its squared total.
- Run one variance formula. Use the combined totals and the exact combined mean.
Worked example
Standard deviation from pooled totals
A combined set has , and .
Keep that unrounded value inside the variance calculation.
Evaluate the squared-total term:
Then subtract the square of the unrounded mean: minus .
(9709/51/O/N/25 Q3(b))
Common mistake
A four-line audit prevents most errors
| Line | Write | Check |
|---|---|---|
| 1 | N = n₁ + n₂ | all observations counted |
| 2 | ΣX = Σx + Σy | ordinary totals, not means |
| 3 | ΣX² = Σx² + Σy² | squared totals, not squared sums |
| 4 | Var = ΣX²/N − (ΣX/N)² | root only if SD is asked |
Group A has 12 values with mean 6 and SD 2. Group B has 8 values with mean 11 and SD 3. Find the population SD of all 20 values.
Show worked answer
A: , . B: , .
The combined mean is .
