Concepts such as *mean* and *deviation* are to statistics what dough, tomato sauce and mozzarella cheese are to pizza: Simple in principle, but having such a variety of interrelated applications that it is easy to lose track of basic terminology and the order in which you must perform certain operations.

Calculating the sum of the squared deviations from the mean of a sample is a step along the way to computing two vital descriptive statistics: the variance and the standard deviation.

## Step 1: Calculate the Sample Mean

To calculate a mean (often referred to as an average), add the individual values of your sample together and divide by *n*, the total items in your sample. For example, if your sample includes five quiz scores and the individual values are 63, 89, 78, 95 and 90, the sum of these five values is 415, and the mean is therefore

## Step 2: Subtract the Mean From the Individual Values

In the present example, the mean is 83, so this subtraction exercise yields values of

These values are called the deviations, because they describe the extent to which each value deviates from the sample mean.

## Step 3: Square the Individual Variations

In this case:

These values are, as you would expect, the squares of the deviations determined in the previous step.

## Step 4: Add the the Squares of the Deviations

To get the sum of the squares of the deviations from the mean, and thereby complete the exercise, add the values you calculated in step 3. In this example, this value is

The sum of the squares of the deviations is often abbreviated SSD in stats parlance.

## Bonus Round

This exercise does the bulk of the work involved in calculating the variance of a sample, which is the SSD divided by n − 1, and the standard deviation of the sample, which is the square root of the variance.