Sum of Squares vs Variance

Both terms below come up in the same part of the course, and students mix them up. Here is each one defined on its own, side by side, so you can see where they part company.

Sum of squares

Describing data

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.

Full entry for sum of squares

Variance

Describing data

The variance measures spread from squared distances to the mean, dividing their total by n - 1 for a sample and by n for a population.

Variance quantifies spread from the squared deviations, so it is always non-negative. The sample variance is s2=1n1(xixˉ)2s^2 = \frac{1}{n-1}\sum (x_i - \bar{x})^2, where xix_i are the values, xˉ\bar{x} (x-bar) is the mean, and nn is the number of values. For example, data tightly packed around the mean have a small variance. Because the deviations are squared, variance is measured in squared units, and its square root is the standard deviation.

Full entry for variance

Where each one fits in the course