A boxplot draws the five-number summary of a quantitative data set: the minimum, first quartile, median, third quartile and maximum. The 1.5 × IQR rule calls a value an outlier when it lies more than 1.5 IQRs below or above , and a boxplot marks those values as separate points. A boxplot shows center, spread, skew and outliers at a glance, but it hides gaps, clusters and the number of peaks.
Quick check
If and , what is the interquartile range?Show answerHide answer
.
What is when the IQR is 12?Show answerHide answer
. That distance sets the outlier boundaries.
Know these already? Jump to the practice questions
What you'll be able to do
- State the five-number summary of a data set.
- Calculate the outlier boundaries with the 1.5 × IQR rule and identify any outliers.
- Construct a boxplot with outliers plotted as separate points.
- Explain what a boxplot shows about a distribution and what it hides.
Key terms
Five-number summary
The minimum, , the median, and the maximum of a data set.
- In plain English
- Five values that split the ordered data into four parts with about a quarter of the values in each.
- Don't write
- The mean in a five-number summary; it uses the median.
Outlier (1.5 × IQR rule)
A value below or above .
- In plain English
- A value unusually far beyond the middle half.
- Don't write
- "outlier" for a value exactly on a boundary; it must lie beyond it.
Whisker
The line from the box to the smallest or the largest value that is not an outlier.
- In plain English
- The reach of the ordinary values beyond the box.
- Don't write
- A whisker that ends at a boundary such as ; it ends at a data value.
What is the five-number summary?
Order the data, then find the minimum, , the median, and the maximum. and are the medians of the lower and upper halves, leaving out the overall median when is odd; the note on measures of center and variability covers that method.
The five values cut the data into four parts, each holding about 25% of the values. So about half the data lie between and , and the IQR, , is the width of that middle half. Graphing calculator output lists the five-number summary directly.
Check yourself
Show answerHide answer
About 50%, because the median splits the data in half.
How does the 1.5 × IQR rule find outliers?
Learn this: a value is an outlier if it lies below or above . These two boundaries are often called fences.
For and , the IQR is 12 and . The fences are and . A value of 51 is an outlier; a value of exactly 50 is not, because it does not lie beyond the fence.
The rule uses the IQR because the IQR is resistant: the outliers you are hunting cannot stretch the yardstick that finds them. An outlier is a flag to investigate, not an error to delete. Check whether it is a recording mistake or a genuine unusual individual.
Key idea
Compute both fences, then compare the smallest and largest values with them; only values beyond a fence are outliers.
Check yourself
Show answerHide answer
Yes. The IQR is 6, so the upper fence is , and 24 lies above it.
How do you draw a boxplot?
- Draw a scaled number line and label it with the variable and units.
- Draw a box from to , with a line across it at the median.
- Draw each whisker from the box to the most extreme value that is not an outlier.
- Mark each outlier as a separate point.
A boxplot that shows outliers this way is sometimes called a modified boxplot. The figure "Boxplot of 15 hypothetical test completion times, with an outlier at 58 minutes" shows the data from Worked example 1: the right whisker stops at 41, the largest ordinary value, and 58 sits alone.
Check yourself
Show answerHide answer
At 41, the largest value that is not an outlier; 58 is plotted as a separate point.
What does a boxplot show and hide?
A boxplot shows the median, the IQR (the length of the box), the range and any outliers. It also hints at skew: when the right whisker and the right part of the box are longer, the distribution is likely skewed right.
It hides a lot. You cannot see individual values, the number of values, gaps, clusters or the number of peaks. A bimodal distribution and a roughly flat one can share the same boxplot. A long whisker means the values there are spread out, not that there are more of them, since each of the four parts holds about a quarter of the data.
Check yourself
Show answerHide answer
No. The five-number summary hides the peaks; you need a histogram, dotplot or stemplot to see them.
Worked example 1: A boxplot with an outlier
Question: The times, in minutes, that 15 students in a hypothetical class took to finish a test are 22, 25, 27, 28, 30, 31, 31, 33, 34, 35, 36, 38, 40, 41 and 58. (a) Find the five-number summary. (b) Use the 1.5 × IQR rule to identify any outliers. (c) State where each whisker ends.
What tells you the method
"1.5 × IQR rule" means find the quartiles, then the fences.
Step 1: Find the median and quartiles.
With 15 values, the median is the 8th, 33. The lower half 22, 25, 27, 28, 30, 31, 31 gives ; the upper half 34, 35, 36, 38, 40, 41, 58 gives .
WhyWith odd, the median is left out of both halves.
Step 2: Calculate the fences.
and , so the fences are and .
WhyOutliers lie beyond these two boundaries.
Step 3: Compare the extremes.
The minimum, 22, is above 13, so there are no low outliers. The maximum, 58, is above 53, so it is an outlier; the next value, 41, is not.
WhyOnly values beyond a fence count.
Check it
58 is 20 minutes above , twice the IQR, so it clearly stands apart.
Answer
(a) The five-number summary is 22, 28, 33, 38 and 58 minutes. (b) The fences are 13 and 53, so 58 minutes is the only outlier. (c) The left whisker ends at 22 and the right whisker at 41.
Worked example 2: Outliers from a summary alone
Question: A hypothetical data set has minimum 4, , median 15, and maximum 35. (a) Calculate the outlier fences. (b) Determine whether the data contain any outliers, and whether you can tell how many.
What tells you the method
You have only five numbers, so compare the minimum and maximum with the fences.
Step 1: Calculate the fences.
and , so the fences are and .
WhyThe rule needs only , and the IQR.
Step 2: Test the extremes.
The minimum, 4, is above 1.5, so there are no low outliers. The maximum, 35, is above 29.5, so there is at least one high outlier.
WhyIf the most extreme value is not beyond a fence, no value on that side is.
Step 3: Decide whether you can count them.
You cannot: other values between 29.5 and 35 may exist, and the summary does not show them.
WhyA five-number summary hides every value except those five.
Check it
The right side is much longer () than the left (), which fits a high outlier.
Answer
(a) The fences are 1.5 and 29.5. (b) There is at least one high outlier, the maximum of 35, and no low outlier; the exact number of outliers cannot be told from the summary.
Your turn
Question: A hypothetical data set is 3, 5, 6, 6, 7, 8, 9, 10, 11, 12, 14 and 25. Use the 1.5 × IQR rule to find the fences and any outliers.
Step 1:
With 12 values, the median is , (from 3, 5, 6, 6, 7, 8) and (from 9, 10, 11, 12, 14, 25).
Step 2: Your go: calculate the IQR and both fences, then test the extremes.
Show the full solutionHide the solution
and . The fences are and . The minimum, 3, is above ; the maximum, 25, is above 19.75, and the next value, 14, is not.
Answer: The fences are and 19.75, and the only outlier is 25.
Traps
Trap
Drawing the whisker out to the fence.
It seems right because the fence marks where ordinary values stop. But the fence is not a data value; the whisker ends at the most extreme actual value inside the fences.
Check yourself
Show answerHide answer
At 22 and 41, the most extreme values that are not outliers.
Trap
Reading a longer section of a boxplot as holding more data.
It seems right because a longer part looks bigger. But each of the four parts holds about 25% of the values; a longer part means those values are more spread out.
Check yourself
Show answerHide answer
Neither. Each whisker covers about 25% of the values; the left ones are just more spread out.
What's examined
Boxplots and the 1.5 × IQR rule are tested on the AP® Statistics exam, in both the multiple-choice and free-response sections. You may be asked to identify outliers with the rule, showing the fences, to construct a boxplot from data, or to explain what a boxplot can and cannot show. Justify an outlier claim with numbers: state the fence and compare the value with it.
Practice questions
- Recall In a boxplot drawn with the 1.5 × IQR rule, where do the whiskers end?
- A) At the fences and
- B) At the minimum and maximum, even when they are outliers
- C) At the most extreme values that are not outliers
- D) One standard deviation from the mean
Show answer
Answer: C) At the most extreme values that are not outliers.
Marking points:
- Whiskers end at actual data values inside the fences.
- A stops at the fences, which are not data values. B ignores the outliers. D mixes in the standard deviation.
- Recall A data set has and . What is the upper fence for outliers?
- A) 58
- B) 70
- C) 78
- D) 88
Show answer
Answer: B) 70
Marking points:
- , and .
- A adds half the IQR. C multiplies by 1.5. D adds three IQRs.
- Apply A hypothetical data set has five-number summary 10, 18, 21, 30 and 44. Which statement must be true?
- A) The data contain no outliers.
- B) More values lie between 21 and 30 than between 18 and 21.
- C) The mean is 21.
- D) The distribution has a single peak.
Show answer
Answer: A) The data contain no outliers.
Marking points:
- , so the fences are and ; 10 and 44 lie inside both.
- B misreads length as count. C confuses the median with the mean. D is a feature a boxplot hides.
- Apply A hypothetical data set is 2, 15, 17, 18, 20, 21, 23 and 26. Identify any outlier using the 1.5 × IQR rule, and state where the left whisker ends.
Show answer
Answer: The outlier is 2, and the left whisker ends at 15.
Marking points:
- Median 19, , , so .
- The fences are and ; 2 is below 7, and 26 is below 31.
- The smallest value that is not an outlier is 15.
- Exam-style A boxplot of hypothetical quiz scores shows minimum 40, , median 65, and maximum 90. Which feature of the scores could this boxplot hide?
- A) The median score
- B) The interquartile range
- C) The range
- D) Two separate clusters of scores
Show answer
Answer: D) Two separate clusters of scores.
Marking points:
- A boxplot shows only the five-number summary and outliers, so clusters and gaps can be invisible.
- A, B and C can all be read directly from the boxplot.
- Exam-style Hypothetical salaries at a small company, in thousands of dollars, have minimum 38, , median 52, and maximum 112. The second-largest salary is 79. (a) Show that the maximum salary is an outlier by the 1.5 × IQR rule. (b) State where the right whisker ends.
Show answer
Answer: (a) The upper fence is 85, and 112 is above it, so 112 is an outlier. (b) The right whisker ends at 79.
Marking points:
- and , so the upper fence is .
- 112 > 85, so the maximum is an outlier; 79 < 85, so 79 is the largest ordinary value.
Key points
Recall, then reveal
Say the main points from memory first, then check them.
Show key pointsHide key points
- The five-number summary is the minimum, , the median, and the maximum, each part holding about a quarter of the data.
- The fences are and ; only values beyond them are outliers.
- Whiskers end at the most extreme values that are not outliers, and each outlier is plotted as its own point.
- A boxplot shows center, spread, skew and outliers, but hides gaps, clusters, peaks and sample size.