Let's look at some simple numbers: 6, 13, 15, 21, 32, 33, 42. Now let's compute the average, also called the "mean":
Avg = 6 + 13 + 15 + 21 + 32 + 33 + 41 = 161/7 = 23
One of the questions you could ask about this set of numbers is, "How closely are these numbers gathered around the average?". One of the ways to figure this out is to compute the distance from each number to the mean:
6 - 23 = -17
13 - 23 = -10
15 - 23 = - 8
21 - 23 = - 2
32 - 23 = 9
33 - 23 = 10
41 - 23 = 18
We've got negative and positive values. If we just add these "distances" together, the negative values will cancel out the positive values and we won't get the true accumulated distance of each number. If we square each of the values (remember, the square of a number is just the number multiplied by itself), we will then get all positive values because a negative number multiplied by another negative number yields a positive number.
-17 x -17 = 289
-10 x -10 = 100
- 8 x - 8 = 64
- 2 x - 2 = 4
9 x 9 = 81
10 x 10 = 100
18 x 18 = 324
Now we add up the squares:
289 + 100 + 64 + 4 + 81 + 100 + 324 = 962
and take the average:
962/7 = 137.52
By the way, the average-of-the-sum-of-the-squares of the distances (137.52 in this example) is called "variance" in statistics. Still, just simple arithmetic so far, right? One more step...take the square-root of the average, or variance, and you get 11.72. This final value is called "standard deviation", and is represented by the Greek letter sigma. For the set of numbers in our exmaple, the standard deviation, or sigma, is 11.72.