Statistics & Probability · Grades 6

Range, Interquartile Range and Mean Absolute Deviation

Quick answer

A measure of center tells you where data sits; a measure of spread tells you how tightly it clusters there. Range is the largest value minus the smallest. The interquartile range is the width of the middle half, which ignores outliers. Mean absolute deviation is the average distance from the mean, using every value. Two sets can share a mean and still be completely different.

What you'll learn

  • Calculate range, interquartile range and mean absolute deviation
  • Explain why a measure of center alone can mislead
  • Choose a measure of spread that suits the shape of the data

Why the center is only half the story

These two data sets have exactly the same mean and the same median.

A:  49,  50,  51B:  10,  50,  90A: \; 49, \; 50, \; 51 \qquad B: \; 10, \; 50, \; 90

Both have mean 5050 and median 5050. Reported that way they are identical, and they are not remotely alike.

Set A — values packed around 50 A dot plot from 0 to 100 with three dots crowded together at 49, 50 and 51, near the middle of the axis. 0 10 20 30 40 50 60 70 80 90 100
Set A — values packed around 50
Set B — the same mean, spread wide A dot plot on the same 0 to 100 axis with dots at 10, 50 and 90, spaced far apart across the whole width. 0 10 20 30 40 50 60 70 80 90 100
Set B — the same mean, spread wide

A measure of spread is the number that separates them. It answers: how far from the center does the data actually sit?

This matters outside of textbooks. Two bus routes averaging 3030 minutes are not equally useful if one always takes 2828 to 3232 and the other varies between 1010 and 5050. The average is the same; only one is worth planning around.

Range: the full width

range=largestsmallest\text{range} = \text{largest} - \text{smallest} A:5149=2B:9010=80A: 51 - 49 = 2 \qquad B: 90 - 10 = 80

The range separates those two sets instantly, and it is the quickest measure to compute.

Its weakness is that it uses only two values and throws the rest away. One outlier sets the range on its own:

5,6,6,7,7,8,94range=895, 6, 6, 7, 7, 8, 94 \quad\Rightarrow\quad \text{range} = 89

Six of those seven values sit within 33 of each other, and the range says 8989.

Interquartile range: the middle half

The quartiles cut sorted data into four parts. Q1Q_1 is the median of the lower half and Q3Q_3 is the median of the upper half.

IQR=Q3Q1\text{IQR} = Q_3 - Q_1

Take 4,7,9,12,14,15,214, 7, 9, 12, 14, 15, 21. The median is 1212. With an odd count, leave the median out of both halves:

lower (4,7,9)Q1=7upper (14,15,21)Q3=15\text{lower } (4, 7, 9) \Rightarrow Q_1 = 7 \qquad \text{upper } (14, 15, 21) \Rightarrow Q_3 = 15 IQR=157=8\text{IQR} = 15 - 7 = 8

The IQR is the width of the middle 50% of the data. Because it discards the top and bottom quarters, an outlier sitting out in one of those tails has no effect on it at all.

DataRangeIQR
5,6,6,7,7,8,95, 6, 6, 7, 7, 8, 94422
5,6,6,7,7,8,945, 6, 6, 7, 7, 8, 94898922

Replacing 99 with 9494 multiplies the range by more than twenty and leaves the IQR untouched. That is exactly the behaviour you want when one value is unusual.

Mean absolute deviation: the average distance from the mean

Range and IQR each use two values. Mean absolute deviation (MAD) uses every one.

Three steps:

  1. Find the mean.
  2. Find how far each value is from it, ignoring the sign.
  3. Average those distances.

For 3,5,8,123, 5, 8, 12:

mean=284=7\text{mean} = \frac{28}{4} = 7
ValueDistance from 77
3344
5522
8811
121255
MAD=4+2+1+54=124=3\text{MAD} = \frac{4 + 2 + 1 + 5}{4} = \frac{12}{4} = 3

On average, values sit 33 away from the mean.

The signs are dropped for a reason worth knowing. Distances above the mean and below it always cancel exactly — that is what being the mean means — so without dropping the signs the total would be 00 for every data set ever collected, and would say nothing. Taking each distance as an absolute value is what keeps the measure alive.

Choosing between them

MeasureUsesAffected by outliers?
range22 valuesheavily
IQR22 quartilesno
MADevery valueyes, but spread out

Match the measure of spread to the measure of center:

  • Reporting the mean? Report the MAD. Both use every value.
  • Reporting the median? Report the IQR. Both resist outliers.

That pairing is the point. A median with a range attached mixes a measure that ignores extremes with one that is decided by them.

Worked examples

Common mistakes

Practice problems

  1. Find the range of 8,3,11,68, 3, 11, 6.

    Answer

    88

    Full solution

    113=811 - 3 = 8.

  2. Find the range of 20,20,2020, 20, 20.

    Answer

    00

    Full solution

    2020=020 - 20 = 0. A range of zero means every value is the same.

  3. Find Q1Q_1 and Q3Q_3 for 1,3,5,7,9,11,131, 3, 5, 7, 9, 11, 13.

    Answer

    Q1=3Q_1 = 3, Q3=11Q_3 = 11

    Full solution

    The median is 77. Lower half (1,3,5)(1, 3, 5) gives Q1=3Q_1 = 3; upper half (9,11,13)(9, 11, 13) gives Q3=11Q_3 = 11.

  4. Find the IQR of that same set.

    Answer

    88

    Full solution

    113=811 - 3 = 8.

  5. Find the MAD of 1,3,51, 3, 5.

    Answer

    431.33\tfrac{4}{3} \approx 1.33

    Full solution

    Mean is 33. Distances are 2,0,22, 0, 2, so the MAD is 431.33\tfrac{4}{3} \approx 1.33.

  6. Find the MAD of 10,20,30,4010, 20, 30, 40.

    Answer

    1010

    Full solution

    Mean is 2525. Distances are 15,5,5,1515, 5, 5, 15, giving 404=10\tfrac{40}{4} = 10.

  7. Two sets both have mean 5050. One has MAD 22, the other MAD 1818. Which is more consistent?

    Answer

    The one with MAD 22

    Full solution

    A smaller MAD means values sit closer to the mean on average.

  8. Find the IQR of 4,6,8,10,12,144, 6, 8, 10, 12, 14.

    Hint

    An even count, so both halves have three values.

    Answer

    66

    Full solution

    The median falls between 88 and 1010. Lower half (4,6,8)(4, 6, 8) gives Q1=6Q_1 = 6; upper half (10,12,14)(10, 12, 14) gives Q3=12Q_3 = 12.

    IQR=126=6\text{IQR} = 12 - 6 = 6.

  9. A data set has range 6060 and IQR 44. What does that suggest?

    Answer

    There is at least one outlier.

    Full solution

    The middle half of the data spans only 44, so most values are packed tightly.

    For the full range to reach 6060, at least one value must sit far out in a tail. A large gap between range and IQR is the signature of an outlier.

  10. Nadia reports that a set of exam marks has median 6262 and range 8080. Suggest a better pairing.

    Hint

    Do those two measures treat extremes the same way?

    Answer

    Median with IQR.

    Full solution

    She has paired a measure that ignores extreme values with one that is decided entirely by them.

    The median of 6262 deliberately shrugs off a mark of 22 or 9999. The range of 8080 is computed from nothing but those two ends, so the pair pulls in opposite directions and a reader cannot combine them.

    Median with IQR is consistent: both describe the bulk of the data and both ignore the tails. Mean with MAD would also be consistent, since both use every value — what does not work is one of each.

Frequently asked questions

What is the range?

The largest value minus the smallest. For 4, 7, 9, 20 the range is 20 − 4 = 16. It uses only two values, so one outlier changes it completely.

What is the interquartile range?

The width of the middle half of the data: Q3 minus Q1. Because it ignores the top and bottom quarters, an outlier does not affect it.

How do I find the quartiles?

Sort the data and find the median. Q1 is the median of the values below it, and Q3 is the median of the values above it. With an odd count, leave the median itself out of both halves.

What is mean absolute deviation?

The average distance of the values from the mean. Find the mean, take how far each value is from it, ignore the signs, and average those distances.

Why do we need a measure of spread at all?

Because two sets can have the same mean and look nothing alike. 49, 50, 51 and 10, 50, 90 both average 50, and only a measure of spread separates them.

What to learn next

Key terms in this lesson

Absolute value
The absolute value of a number is its distance from zero on the number line. Distance ignores direction, so it is never negative: both 5 and -5 have absolute value 5.
Mean
The mean is the total of the values divided by how many there are. It shares the total out evenly, so it need not equal any value in the data, and a single outlier can pull it a long way.
Median
The median is the middle value once the data is in order. With an even count it is the mean of the two middle values. Because it depends on position rather than size, an outlier barely moves it.
Outlier
An outlier is a value far from the rest of the data. It pulls the mean towards itself and inflates the range, while leaving the median and interquartile range almost untouched.
Quartile
Quartiles cut ordered data into four equal parts. Q1 has a quarter of the values below it, Q3 has three quarters below it, and the gap between them is the interquartile range.

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.6.SP.B.5Statistics and ProbabilitySummarize numerical data sets in relation to their context, such as by:
  • CCSS.MATH.CONTENT.6.SP.B.5cStatistics and ProbabilityGiving quantitative measures of center (median and/or mean) and variability (interquartile range and/or mean absolute deviation), as well as describing any overall pattern and any striking deviations from the overall pattern with reference to the context in which the data were gathered.
  • CCSS.MATH.CONTENT.6.SP.B.5dStatistics and ProbabilityRelating the choice of measures of center and variability to the shape of the data distribution and the context in which the data were gathered.