Statistics & Probability · Grade 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.
Both have mean and median . Reported that way they are identical, and they are not remotely alike.
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 minutes are not equally useful if one always takes to and the other varies between and . The average is the same; only one is worth planning around.
Range: the full width
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:
Six of those seven values sit within of each other, and the range says .
Interquartile range: the middle half
The quartiles cut sorted data into four parts. is the median of the lower half and is the median of the upper half.
Take . The median is . With an odd count, leave the median out of both halves:
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.
| Data | Range | IQR |
|---|---|---|
Replacing with multiplies the range by more than twenty and leaves the IQR untouched. That is exactly the behavior 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:
- Find the mean.
- Find how far each value is from it, ignoring the sign.
- Average those distances.
For :
| Value | Distance from |
|---|---|
On average, values sit 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 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
| Measure | Uses | Affected by outliers? |
|---|---|---|
| range | values | heavily |
| IQR | quartiles | no |
| MAD | every value | yes, 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.
Range, IQR and MAD calculator
Type your numbers, separated by commas, spaces or new lines. Whole numbers, decimals and fractions all work. Choose what to show and which picture to draw, and the steps below follow the lessons line for line.
The steps below find the range, the quartiles, the interquartile range and the mean absolute deviation of 12, 7, 19, 4, 15, the data of Example 1 in this lesson, with a dot plot. Turn on JavaScript to try your own numbers.
Worked example:
5 values: range 15, Q1 5.5, Q3 17, IQR 11.5, mean absolute deviation 4.72.
The data in order
There are 5 values. From smallest to largest:
Find the range
The range is the largest value minus the smallest.
Find the quartiles and IQR
The median splits the ordered data into a lower half and an upper half, and is left out of both.
Mean absolute deviation
First, the mean.
Find how far each value is from the mean , ignoring the sign, then average those distances (in the order the values were entered).
What the picture shows
A dot plot of 5 values from 4 to 19. Every value has its own dot.
Runs on your device: nothing you type is sent or saved. The lessons behind each step: mean, median and mode, measures of spread, standard deviation, box plots and dot plots and histograms. Quartiles are the medians of the lower and upper halves, with the median left out of both halves when the count is odd. A value on the edge of two histogram bins goes in the higher bin. When every value occurs equally often there is no mode, and a single value that repeats () is its own mode.
Worked examples
Common mistakes
Practice problems
-
Find the range of .
Answer
Full solution
.
-
Find the range of .
Answer
Full solution
. A range of zero means every value is the same.
-
Find and for .
Answer
,
Full solution
The median is . Lower half gives ; upper half gives .
-
Find the IQR of that same set.
Answer
Full solution
.
-
Find the MAD of .
Answer
Full solution
Mean is . Distances are , so the MAD is .
-
Find the MAD of .
Answer
Full solution
Mean is . Distances are , giving .
-
Two sets both have mean . One has MAD , the other MAD . Which is more consistent?
Answer
The one with MAD
Full solution
A smaller MAD means values sit closer to the mean on average.
-
Find the IQR of .
Hint
An even count, so both halves have three values.
Answer
Full solution
The median falls between and . Lower half gives ; upper half gives .
.
-
A data set has range and IQR . What does that suggest?
Answer
There is at least one outlier.
Full solution
The middle half of the data spans only , so most values are packed tightly.
For the full range to reach , at least one value must sit far out in a tail. A large gap between range and IQR is the signature of an outlier.
-
Nadia reports that a set of exam marks has median and range . 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 deliberately shrugs off a mark of or . The range of 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.
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 toward 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.