13.1 Measures of Dispersion: Range and Mean Deviation
The mean tells you where data are centred; a measure of dispersion tells you how widely they scatter. Start with the range, then average the distances $|x_i-a|$ from a central value to get the mean deviation.
A bottling plant fills "$500\ \text{ml}$" bottles. Two machines are tested on eight bottles each, and both give a mean volume of exactly $500\ \text{ml}$. Machine P's bottles measure $498, 503, 500, 497, 502, 501, 499, 500$; machine Q's measure $492, 507, 500, 495, 510, 488, 503, 505$. Q regularly gives customers $10\ \text{ml}$ too little and wastes $10\ \text{ml}$ on others. The mean cannot see this, because it was built to describe the centre of the data; what the quality inspector needs is a number for the scatter around that centre.
Numbers that describe scatter are called measures of dispersion. In this section we meet the two simplest. The range just compares the largest and smallest values. The mean deviation looks at every observation: it measures how far each one is from a central value โ the mean or the median โ and averages those distances. Along the way we discover why the obvious idea, averaging the deviations themselves, always gives $0$, and why the median turns out to be the best centre to measure distances from.
Dispersion and the Range
The mean, median and mode from Class 10 are measures of central tendency: each gives one value that represents the whole data set. Two data sets can share a centre and still look completely different, as the bottles show. So a full description of data needs two kinds of number โ one for the centre, one for the spread.
The dispersion (or scatter) of a set of observations is the extent to which they differ from one another or from a central value. A number that describes it is a measure of dispersion; it is $0$ when all observations are equal and grows as they spread out.
The simplest measure of dispersion is the range: $$\text{Range}=\text{largest observation}-\text{smallest observation}.$$ It has the same unit as the data.
The range is quick to find and easy to understand โ weather reports quote the day's temperature range, and a teacher may say "marks ranged from $31$ to $96$". But it uses only two observations and ignores everything in between. A single unusual value, an outlier, can make it huge, and two very different data sets can have the same range.
(b) Find the ranges of the data sets $\{10, 50, 50, 50, 50, 50, 90\}$ and $\{10, 20, 30, 50, 70, 80, 90\}$. Do they describe the spread well?
(c) Find the range of the bottle volumes of machines P and Q above.
Deviations and the Mean Deviation
To use every observation, measure how far each one is from a fixed central value $a$. The number $x_i-a$ is the deviation of $x_i$ from $a$: positive when $x_i$ lies above $a$, negative when it lies below. A natural first idea is to average the deviations from the mean. It fails completely, and the reason is worth knowing.
For any observations $x_1,x_2,\dots,x_n$ with mean $\bar x=\dfrac1n\displaystyle\sum_{i=1}^{n}x_i$, $$\sum_{i=1}^{n}(x_i-\bar x)=0.$$ More generally $\displaystyle\sum_{i=1}^{n}(x_i-a)=n(\bar x-a)$, which is $0$ only when $a=\bar x$.
Proof. Split the sum: $\displaystyle\sum(x_i-a)=\sum x_i-\sum a=n\bar x-na=n(\bar x-a)$, because $\sum x_i=n\bar x$ by the definition of the mean and $a$ is added $n$ times. Putting $a=\bar x$ gives $0$. $\blacksquare$
So the positive deviations always exactly cancel the negative ones โ that is what makes the mean the "balance point" of the data. The average signed deviation from the mean is $0$ for every data set, whether it is tightly packed or wildly scattered, so it measures nothing. The cure is to ignore the signs and use the distances $|x_i-a|$ (the modulus of Section 2.3). Section 13.3 uses a second cure, squaring.
The mean deviation of the observations $x_1,x_2,\dots,x_n$ about a number $a$ is the mean of their absolute deviations from $a$: $$\text{M.D.}(a)=\frac1n\sum_{i=1}^{n}|x_i-a|.$$ It is almost always taken about the mean or the median: $$\text{M.D.}(\bar x)=\frac1n\sum_{i=1}^{n}|x_i-\bar x|,\qquad \text{M.D.}(M)=\frac1n\sum_{i=1}^{n}|x_i-M|.$$ It has the same unit as the data, and it is $0$ exactly when every observation equals $a$.
- Find the centre: the mean $\bar x=\tfrac1n\sum x_i$, or the median $M$ (arrange the data in order first; for odd $n$ it is the middle value, for even $n$ the average of the two middle values).
- Write down each deviation $x_i-a$ and drop its sign to get $|x_i-a|$.
- Add the absolute deviations and divide by $n$, the number of observations. Give the unit.
- Check: before dropping the signs, the deviations from the mean must add up to $0$ (Theorem 13.1).
| $x_i$ | 12 | 5 | 9 | 14 | 7 | 11 | 8 | 6 |
|---|---|---|---|---|---|---|---|---|
| $x_i-\bar x$ | 3 | โ4 | 0 | 5 | โ2 | 2 | โ1 | โ3 |
| $|x_i-\bar x|$ | 3 | 4 | 0 | 5 | 2 | 2 | 1 | 3 |
(a) $34, 23, 40, 19, 28, 45, 31, 26, 37$;
(b) $14, 9, 21, 17, 11, 25, 13, 18$.
Why the Median Is the Best Centre for Distances
In Example 3 we measured distances from the median, in Example 2 from the mean. Does the choice matter? Think of the observations as houses along a straight road and $a$ as the position of a bus stop; $n\cdot\text{M.D.}(a)=\sum|x_i-a|$ is the total distance everyone walks to the stop. Where should the stop go?
Let $M$ be the median of $x_1,x_2,\dots,x_n$. For every real number $a$, $$\text{M.D.}(a)\ \ge\ \text{M.D.}(M).$$ When $n$ is odd, equality holds only for $a=M$. When $n$ is even, every $a$ between the two middle observations (inclusive) gives the same least value. In particular $\text{M.D.}(M)\le\text{M.D.}(\bar x)$.
Proof. Arrange the data in increasing order and look at $S(a)=\sum|x_i-a|$. Suppose $a$ moves a small distance $h\gt0$ to the right without passing any observation. Every observation to the left of $a$ is now $h$ farther away, and every observation to the right is $h$ nearer. If $L$ observations lie to the left of $a$ and $R$ to the right, $S$ changes by $h(L-R)$. So $S$ decreases as $a$ moves right while $L\lt R$ (fewer than half the observations are to the left), and increases once $L\gt R$. The switch happens where half the observations lie on each side โ at the median. For odd $n$ that is the single middle value; for even $n$, $L=R=\tfrac n2$ all the way between the two middle values, so $S$ is constant (and least) there. Dividing by $n$ gives the result for $\text{M.D.}(a)$. $\blacksquare$
The mean minimises a different quantity โ the sum of squared deviations โ which is why it belongs with the variance of Section 13.3. When the data are roughly symmetric the mean and median are close and the two mean deviations nearly agree; an outlier pulls the mean towards it and makes $\text{M.D.}(\bar x)$ noticeably larger than $\text{M.D.}(M)$.
1. Forgetting the modulus. Without $|\ \ |$ the deviations from the mean add to $0$ and you will "find" a mean deviation of $0$ for any data.
2. Finding the median without sorting. The median is the middle of the ordered list. For $14, 9, 21, 17$ it is $\tfrac{14+17}{2}=15.5$, not $\tfrac{9+21}{2}$.
3. Dividing by the wrong number. Divide the sum of the absolute deviations by $n$, the number of observations โ not by the number of distinct values, and not by $n-1$.
4. Range as "smallest to largest". The range is one number, the difference $\text{max}-\text{min}$; "from $29$ to $36$" is the spread written out, and its range is $7$.
5. Mixing the centres. If the question says "about the median", measure distances from $M$, even when you have already worked out $\bar x$.
Exercises
- 1 Find the range of $23, 17, 35, 41, 29, 12, 38$.
- 2 The minimum temperatures (in $^\circ\text{C}$) in a hill town over a week were $-2, 3, 5, 1, -4, 0, 2$. Find the range.
- 3 Find the deviations of $3, 8, 6, 11, 7$ from their mean, and check that they add to $0$.
- 4 The range of a data set is $18$ and its smallest value is $27$. Find its largest value.
- 5 Show that $\sum_{i=1}^{n}(x_i-a)=0$ if and only if $a=\bar x$.
- 6 The deviations of five observations from $20$ are $-3, 5, 0, -6$ and $k$. If the mean of the observations is $21$, find $k$ and the five observations.
- 1 $5, 8, 9, 11, 12, 14, 15, 22$
- 2 $36, 72, 45, 41, 47, 58, 61, 49, 52, 39$
- 3 the first eight even natural numbers
- 4 $2.5, 3.1, 1.8, 4.2, 3.4$
- 5 $-5, -2, 0, 3, 4$
- 6 $a, a+d, a+2d, a+3d, a+4d$, where $d\gt0$
- 7 the ages (in years) of six people in a family: $8, 12, 38, 41, 65, 70$
- 1 $21, 15, 18, 24, 30, 19, 27$
- 2 $22, 35, 28, 41, 30, 26, 33, 38$
- 3 $3, 5, 5, 6, 8, 9, 12, 12, 12, 15, 20$
- 4 For $2, 4, 6, 8, 30$ find the mean deviation about the mean and about the median. Which is smaller, and why?
- 5 $1.2, 0.8, 1.5, 2.1, 0.9, 1.1$
- 6 the heights (in cm) of nine seedlings: $42, 51, 38, 47, 55, 40, 49, 44, 53$
- 7 The observations $5, 9, 11, x, 17$ are in increasing order and their mean deviation about the median is $3.6$. Find $x$.
- 1 The July rainfall (in mm) over six years was $210, 250, 230, 240, 220, 230$ in town A and $120, 340, 180, 300, 150, 290$ in town B. Find the mean, the range and the mean deviation about the mean for each town. Which town's July rainfall is more dependable?
- 2 A student's journey times to school (in minutes) on five days were $25, 32, 28, 45, 30$. Find the mean deviation about the median and about the mean.
- 3 Find the mean deviation about the mean of $3, 7, 11, 15$. Each observation is then doubled and $5$ is added. Find the new mean deviation directly, and explain the result.
- 4 Without recalculating, say how the mean deviation about the mean of a data set changes if (a) $7$ is added to every observation; (b) every observation is multiplied by $-2$. Justify your answers.
- 5 The monthly incomes (in thousands of rupees) of seven workers in a small office are $18, 20, 21, 22, 23, 25, 300$. Find the range with and without the last value. Why is the range a poor measure of spread here?
- 6 Find the mean deviation about the mean of the first $n$ natural numbers for $n=5$ and for $n=6$.
- 7 Seven students' times (in minutes) to finish a puzzle were recorded as $4, 6, 6, 7, 9, 10, 21$. (a) Find the mean deviation about the median. (b) It was then found that $21$ had been copied wrongly for $12$. Find the correct mean deviation about the median.
How this is examined: Board papers ask for a mean deviation about the mean or the median of a short list (2โ3 marks, usually set out as a table), MCQs and assertionโreason items on $\sum(x_i-\bar x)=0$, and case studies comparing the consistency of two data sets. JEE Main likes data in arithmetic progression and the "least mean deviation" property of the median.
E1. Board ยท 1 mark The mean deviation about the mean of $4, 8, 12, 16, 20$ is (A) $4.8$ (B) $12$ (C) $0$ (D) $24$
E2. Board ยท 1 mark Assertion (A): For every data set, $\sum(x_i-\bar x)=0$. Reason (R): The mean deviation is defined using the absolute values $|x_i-\bar x|$. Choose: (A) Both A and R are true and R is the correct explanation of A. (B) Both A and R are true but R is not the correct explanation of A. (C) A is true but R is false. (D) A is false but R is true.
E3. Board ยท 3 marks Find the mean deviation about the median of $11, 3, 8, 7, 5, 9, 14, 6$.
E4. Board ยท Case study A health department records the waiting times (in minutes) of six patients at two clinics. Clinic X: $12, 15, 18, 15, 20, 10$. Clinic Y: $5, 30, 8, 25, 12, 10$. (i) Show that the mean waiting times are equal. (1 mark) (ii) Find the range for each clinic. (1 mark) (iii) Find the mean deviation about the mean for each clinic and say which clinic is more consistent. (2 marks)
E5. JEE Main For the data $2, 3, 7, 8, 10, 15$, the set of all real $a$ for which $\displaystyle\sum_{i=1}^{6}|x_i-a|$ is least is (A) $\{7.5\}$ (B) $[7,8]$ (C) $\{7\}$ (D) $[3,10]$
E6. JEE Main Numerical answer. Find the mean deviation about the mean of the $20$ numbers $4, 8, 12, \dots, 80$.
Research question. Is your reaction time more consistent with your writing hand than with your other hand โ and does the answer depend on which measure of spread you use?
Why it matters. Sprint starters, goalkeepers and drivers all depend on fast and reliable reactions. Sports scientists and road-safety researchers report not only an average reaction time but also its variability, because an occasional very slow reaction can matter more than a slightly slower average.
What to do.
- Work in pairs. Your partner holds a $30\ \text{cm}$ ruler vertically with its $0$ mark level with your open thumb and finger, then lets go without warning; you catch it and read the distance $d$ (in cm) at your fingers.
- Do $10$ catches with each hand, recording every value of $d$ (a smaller $d$ means a faster reaction).
- For each hand find the mean, the median, the range, $\text{M.D.}(\bar x)$ and $\text{M.D.}(M)$. Use the check-lab above to confirm your arithmetic.
- Compare the hands. Do the range and the mean deviation agree about which hand is more consistent? Does one bad catch change the range much more than the mean deviation?
Tools: A $30\ \text{cm}$ ruler, a partner, a notebook or spreadsheet
Hand in: Your two data lists, a dot plot for each hand on the same scale, a table of the five statistics, and a short paragraph stating which hand is more consistent and which measure you trust most, with a reason.
Going further. A ruler falling freely from rest drops $d=\tfrac12gt^2$, so the reaction time is $t=\sqrt{2d/g}$ with $g\approx9.8\ \text{m/s}^2$ (use $d$ in metres). Convert your catches to times. Is the mean deviation of the times the same multiple of the mean deviation of the distances for every catch? Why not?
๐งช Self-check quiz
Q1. The range of $7, 3, 12, 9, 5$ is
Q2. For any data set, the sum of the deviations from the mean, $\sum(x_i-\bar x)$, is
Q3. The mean deviation about the mean of $2, 4, 6, 8, 10$ is
Q4. The mean deviation about the median of $8, 3, 6, 10, 1, 7$ is
Q5. A data set has mean deviation about the mean equal to $2$. Every observation is multiplied by $3$ and then $4$ is added. The new mean deviation about the mean is