girgit.org

Statistics

Mean deviation: the average distance from the centre

The big ideaThe mean deviation is the average distance of the observations from a centre (the mean or the median), found by dropping the minus signs on the deviations before averaging them.

In simple words

Stand at the middle of your numbers. Walk to each number and count how many steps away it is. It does not matter if you walked left or right; steps are steps. Now find the average number of steps. Small average: the numbers stay close to the middle. Big average: they are spread far out.

Why not just average the deviations?

The deviation of an observation \( x \) from a fixed value \( a \) is \( x - a \). A natural idea is to average all the deviations. It fails. A centre sits between the smallest and largest values, so some deviations are positive and some negative, and they cancel. From the mean they cancel exactly, every time:

\[ \sum_{i=1}^{n} (x_i - \bar{x}) = \sum_{i=1}^{n} x_i - n\bar{x} = n\bar{x} - n\bar{x} = 0 \]

A local train's minutes late on eight days: 3, 7, 0, 12, 5, 9, 4, 8. The mean is \( \frac{48}{8} = 6 \). The deviations are \( -3, 1, -6, 6, -1, 3, -2, 2 \), which add up to 0. Their average is 0, as if the train never varied at all. Useless.

Try it: is that zero just bad luck with these eight days? Change the days and see.

The fix: take absolute values

What we really want is the distance of each value from the centre, and distance on a number line is the absolute value \( |x - a| \): the deviation with its minus sign dropped. The average of these distances is the mean deviation about \( a \), written M.D.\( (a) \):

\[ \text{M.D.}(a) = \frac{\text{sum of absolute deviations from } a}{\text{number of observations}} = \frac{1}{n}\sum_{i=1}^{n} |x_i - a| \]

Any centre will do, but two are used most:

\[ \text{M.D.}(\bar{x}) = \frac{1}{n}\sum_{i=1}^{n} |x_i - \bar{x}| \]

\[ \text{M.D.}(\text{M}) = \frac{1}{n}\sum_{i=1}^{n} |x_i - \text{M}| \]

where \( \bar{x} \) is the mean and M is the median.

Four steps for ungrouped data

  • 1. Find the centre \( a \) (the mean or the median).
  • 2. Find each deviation \( x_i - a \).
  • 3. Drop the signs: \( |x_i - a| \).
  • 4. Average them: add up and divide by \( n \).

Worked examples

Worked example 1: about the mean

Find the mean deviation about the mean for the train data 3, 7, 0, 12, 5, 9, 4, 8.

\( x_i \)\( x_i - \bar{x} \)\( |x_i - \bar{x}| \)
3−33
711
0−66
1266
5−11
933
4−22
822
Total 48024
  1. Mean: \( \bar{x} = \frac{48}{8} = 6 \).
  2. Sum of absolute deviations: 24.
  3. M.D.\( (\bar{x}) = \frac{24}{8} = 3 \). On a typical day the train is about 3 minutes away from its usual 6 minutes late.

Worked example 2: about the median

Find the mean deviation about the median for 5, 18, 7, 2, 11, 9, 25, 6, 14, 8, 4.

  1. Sort: 2, 4, 5, 6, 7, 8, 9, 11, 14, 18, 25. There are 11 values (odd), so the median is the \( \frac{11 + 1}{2} = 6 \)th value: M = 8.
  2. Absolute deviations from 8: 6, 4, 3, 2, 1, 0, 1, 3, 6, 10, 17. Their sum is 53.
  3. M.D.(M) \( = \frac{53}{11} \approx 4.82 \).

For comparison, the mean of these data is \( \frac{109}{11} \approx 9.91 \) and the mean deviation about it is about 5.16, a little bigger. That is no accident: the sum of distances is smallest when measured from the median.

Try it. Find the mean deviation about the median for 14, 9, 21, 6, 11, 17, 8, 12, 25, 10.

Answer
Sorted: 6, 8, 9, 10, 11, 12, 14, 17, 21, 25. With 10 values the median is the mean of the 5th and 6th: \( \frac{11 + 12}{2} = 11.5 \). Absolute deviations: 5.5, 3.5, 2.5, 1.5, 0.5, 0.5, 2.5, 5.5, 9.5, 13.5, total 45. M.D.(M) \( = \frac{45}{10} = 4.5 \).

Words to know

Deviation
\( x - a \): how far, and in which direction, a value is from \( a \).
Absolute value \( |x - a| \)
The deviation without its sign: pure distance.
Mean deviation M.D.\( (a) \)
The average of the absolute deviations from \( a \).
M.D.\( (\bar{x}) \), M.D.(M)
Mean deviation about the mean, about the median.

What is the mean deviation about the mean of 2, 4, 6, 8, 10?

  1. 0
  2. 2.4
  3. 3
  4. 8

Why do we take absolute values when finding the mean deviation?

  1. To make the answer smaller
  2. Because positive and negative deviations would cancel out
  3. Because the median cannot be used otherwise