Sum of squares

The sum of squares is the total of the squared deviations from the mean, and it is the numerator of the variance formula.

The sum of squares adds up how far every value falls from the mean after squaring each gap, so positive and negative deviations can no longer cancel. You compute SS=(xixˉ)2\text{SS} = \sum (x_i - \bar{x})^2, where xˉ\bar{x} (x-bar) is the mean. For the data 2, 4, 6, 8 the mean is 5, the squared deviations are 9, 1, 1, and 9, and the sum of squares is 20. Dividing that 20 by n1=3n - 1 = 3 gives the sample variance s26.667s^2 \approx 6.667, and its square root is the sample standard deviation.

Where this comes up

More describing data terms, or browse the full statistics glossary.