The sum of squared deviations is a foundational calculation in statistics. It measures how far each value in a data set sits from the mean, after squaring those distances so that positive and negative deviations do not cancel each other out. You will use it when calculating variance, standard deviation, standard error, and many other statistical quantities. Learning how to find the sum of squared deviations by hand also makes it easier to understand what statistical software is doing behind the scenes.
What Is the Sum of Squared Deviations?
The sum of squared deviations—often abbreviated as SSD or called the sum of squares—is the total of every squared difference between an observed value and the mean of its data set.
For a data set with values (x_1, x_2, \dots, x_n), the formula is:
[ SSD = \sum_{i=1}^{n}(x_i - \bar{x})^2 ]
In this formula:
- (x_i) represents each individual data value.
- (\bar{x}) represents the mean of the data set.
- ((x_i - \bar{x})) is the deviation from the mean.
- Squaring the deviation makes every result nonnegative.
- The sigma symbol (\sum) means “add all of these squared deviations together.”
The result tells you how much the values spread out around the mean. A small sum of squared deviations means the values cluster closely around the average. A large sum means they are more spread out Simple, but easy to overlook..
Why Squaring Deviations Matters
If you simply added the deviations from the mean, the positive and negative differences would cancel out. Their sum is zero. The deviations are (-4, -2, 0, 2, 4). Which means for example, in the data set (4, 6, 8, 10, 12), the mean is (8). That happens in every data set when you use the arithmetic mean, so the raw deviations are not useful as a measure of spread.
Squaring each deviation solves that problem. A value that is 10 units from the mean contributes (100) to the sum, while a value that is 2 units away contributes only (4). Negative signs disappear, and larger deviations receive more weight. This is why the sum of squared deviations is sensitive to outliers and why it forms the basis of variance and standard deviation.
The Formula at a Glance
Two common ways exist — each with its own place That's the part that actually makes a difference..
Definitional formula:
[ SSD = \sum (x_i - \bar{x})^2 ]
Computational formula:
[ SSD = \sum x_i^2 - \frac{(\sum x_i)^2}{n} ]
The definitional formula is easier to understand because it follows the logic of “deviation, square, add.” The computational formula is often faster when you already have the sum of the values and the sum of their squares. Both formulas produce the same result.
How to Find the Sum of Squared Deviations Step by Step
Step 1: List the Data Values
Write down every value in the data set. Make sure you include all