Range, Quartiles and Box Plots
Measure spread with the range and interquartile range, find a five-number summary, use the 1.5 × IQR rule for outliers, and read and compare box plots.
Welcome back!
Step 1 of 12Learn
Same average, different story
Two classes take the same test. Both have a mean score of 75. In Class A, every score is between 70 and 80. In Class B, scores run from 40 to 100. Are the classes the same?
Clearly not. Class A is consistent; Class B has students who are struggling and students who are soaring. A measure of center alone hides that difference. You also need a measure of spread (or variability): how much the values differ from each other.
The simplest is the range:
range = maximum − minimum
Class A's range is 80 − 70 = 10; Class B's is 100 − 40 = 60.
The range is easy, but it depends on only two values, the most extreme ones. A single unusual score can make it huge. If one Class A student had been sick and scored 20, the range would jump to 60, even though everyone else stayed between 70 and 80. For a measure that ignores the extremes, statisticians use quartiles.
Step 2 of 12Practice · Chart
Two classes, mean about 75
Tap the score range that holds every Class A student.
Tap the bar that answers the question, then press Check.
Step 3 of 12Practice · Work it out
Find the range of these times in seconds: 14, 22, 9, 31, 18.
Step 4 of 12Learn
Quartiles and the five-number summary
Quartiles split sorted data into four parts with about the same number of values in each.
- Sort the data and find the median (Q2).
- Q1 (first quartile) is the median of the lower half.
- Q3 (third quartile) is the median of the upper half.
With an odd number of values, leave the overall median out of both halves. (Some calculators and software use slightly different rules, so answers can differ a little.)
Example: books read over the summer by 9 students: 3, 5, 7, 8, 9, 11, 12, 14, 30.
- Median: the 5th value, 9.
- Lower half 3, 5, 7, 8: Q1 = (5 + 7) ÷ 2 = 6.
- Upper half 11, 12, 14, 30: Q3 = (12 + 14) ÷ 2 = 13.
The five-number summary is minimum, Q1, median, Q3, maximum: 3, 6, 9, 13, 30.
The interquartile range is IQR = Q3 − Q1 = 13 − 6 = 7. It measures the spread of the middle half of the data, so the extreme 30 doesn't affect it at all. The IQR is resistant, just like the median.
Step 5 of 12Practice · Put in order
Put the steps for finding a five-number summary in order.
Drag the items, or use the arrow buttons, to put them in order.
- Sort the data from smallest to largest
- Report the minimum, Q1, median, Q3 and maximum
- Find the median of the whole data set
- Find Q1 as the median of the lower half and Q3 as the median of the upper half
Step 6 of 12Practice · Work it out
Find the IQR of: 2, 4, 5, 7, 8, 10, 12, 15.
Step 7 of 12Practice · Diagram
Five-number summary of 2, 4, 5, 7, 8, 10, 12, 15
Tap the marker with half the data below it and half above it.
Tap the shape that answers the question, then press Check.
- Min 2
2
- Q1 4.5
Median of the lower half 2, 4, 5, 7.
- Median 7.5
Average of the two middle values 7 and 8.
- Q3 11
Median of the upper half 8, 10, 12, 15.
- Max 15
15
Step 8 of 12Learn
Outliers and box plots
How far out does a value need to be to count as an outlier? A common rule uses the IQR:
- Lower fence = Q1 − 1.5 × IQR
- Upper fence = Q3 + 1.5 × IQR
Any value beyond a fence is an outlier. For the books data, 1.5 × 7 = 10.5, so the fences are 6 − 10.5 = −4.5 and 13 + 10.5 = 23.5. The student who read 30 books is an outlier.
A box plot (box-and-whisker plot) draws the five-number summary:
- a box from Q1 to Q3, with a line at the median;
- whiskers from the box out to the smallest and largest values that are not outliers;
- outliers plotted as separate dots.
In the plot below, the right whisker stops at 14, and 30 appears on its own. Box plots are excellent for comparing groups side by side: you can see at a glance which group has the higher median and which is more spread out.
Step 9 of 12Practice · True or false
In a box plot, the box shows the middle 50% of the data.
Step 10 of 12Note
Step 11 of 12Practice · Choose one
Two classes took the same test. Class A: median 78, IQR 10. Class B: median 72, IQR 25. Which statement is best supported?
Step 12 of 12Practice · Work it out
A data set has Q1 = 20 and Q3 = 32. Using the 1.5 × IQR rule, what is the upper fence? Any value above it is an outlier.
Lesson complete!