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 , where (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 gives the sample variance , and its square root is the sample standard deviation.
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 , where are the values, (x-bar) is the mean, and 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.