Quartiles, IQR, and outliers practice problems
By Jude Wallis · Published
These 8 problems build the five-number summary, the interquartile range, and the 1.5 IQR outlier rule, using the median-excluded (TI-84) quartile convention. Every solution writes out the sorted list first, then shows each arithmetic step.
AP Statistics: Unit 1 (topics 1.7 Summary Statistics for One Quantitative Variable, 1.8 Graphical Representations of Summary Statistics for One Quantitative Variable). These problems cover Unit 1 topics 1.7 (quartiles, the interquartile range, and other measures of center and variability) and 1.8 (the five-number summary and boxplots) in the Fall 2026 AP Statistics course, where Unit 1 carries 20 to 30% of the multiple-choice section.
What these problems build
These 8 problems build three linked Unit 1 skills: the five-number summary (minimum, , median, , maximum), the interquartile range , and the 1.5 IQR rule for flagging outliers. Problems 1 and 2 are routine summaries for an odd and an even number of values. Problems 3 and 4 apply the outlier rule, problem 5 works backwards from a stated median or quartile, and problem 6 shows what one extreme value does to the mean and does not do to the median. Problems 7 and 8 pull the pieces together into a modified boxplot and an AP-style multi-part question.
Two conventions run through every solution. Quartiles follow the median-excluded (TI-84) rule: find the median first, then take as the median of the values strictly below it and as the median of the values strictly above it, leaving the median value out of both halves when the count is odd. A value is an outlier when it falls more than below or more than above , and a value sitting exactly on a fence is not flagged. Every solution writes the sorted list out first, because almost every error in this topic starts with an unsorted list.
For the methods behind these, see how to find quartiles by hand, the 1.5 IQR outlier rule, and how to make a boxplot. Check your work with the five-number summary calculator, and move values around to watch the quartiles shift in the descriptive statistics sandbox. The matching course pages are topic 1.7 and topic 1.8.
Problem 1
A climbing gym logs the number of routes each of 9 members completed during one Tuesday session: 12, 5, 9, 14, 7, 11, 6, 10, 8. Give the five-number summary and the interquartile range.
Show the worked solution
Sort the values from smallest to largest: 5, 6, 7, 8, 9, 10, 11, 12, 14. There are members.
Find the median. With 9 values the median is the 5th value in the sorted list, so the median is 9 routes. The count is odd, so this value is left out of both halves.
Lower half: 5, 6, 7, 8. Its median is routes.
Upper half: 10, 11, 12, 14. Its median is routes.
Read the extremes off the sorted list: the minimum is 5 routes and the maximum is 14 routes.
Compute the spread: routes. For comparison the range is routes.
Five-number summary: 5, 6.5, 9, 11.5, 14 routes; routes.
Problem 2
A beekeeper weighs the honey harvested from each of 12 hives, in kilograms: 31, 18, 27, 22, 35, 20, 29, 24, 33, 26, 21, 28. Give the five-number summary and the interquartile range.
Show the worked solution
Sort the values: 18, 20, 21, 22, 24, 26, 27, 28, 29, 31, 33, 35. There are hives.
Find the median. With an even count it is the average of the 6th and 7th values: kg.
The median falls between two data values, so no value is left out: the lower half is the first six values 18, 20, 21, 22, 24, 26 and the upper half is the last six values 27, 28, 29, 31, 33, 35.
is the median of the lower half: kg.
is the median of the upper half: kg.
The minimum is 18 kg and the maximum is 35 kg, so kg.
Five-number summary: 18, 21.5, 26.5, 30, 35 kg; kg.
Problem 3
A print shop records the number of minutes it took to finish each of 11 rush orders: 22, 19, 25, 21, 60, 23, 20, 26, 24, 18, 27. (a) Find , , and the IQR. (b) Compute the 1.5 IQR fences and decide which orders, if any, are outliers.
Show the worked solution
Sort the values: 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 60. There are orders.
The median is the 6th value, 23 minutes. Because the count is odd, leave it out of both halves.
(a) Lower half: 18, 19, 20, 21, 22. Its middle value is minutes. Upper half: 24, 25, 26, 27, 60. Its middle value is minutes.
(a) minutes.
(b) minutes.
(b) Lower fence: minutes. Upper fence: minutes.
(b) Compare every value with the fences. The fastest order, 18 minutes, sits above the lower fence of 11, and every order from 18 to 27 minutes sits inside both fences. Only the 60-minute order exceeds the upper fence of 35.
(a) minutes, minutes, minutes. (b) Fences at 11 and 35 minutes; the 60-minute order is the only outlier.
Problem 4
A trailhead counter at a state park records the number of hikers who start the loop each day for 12 days: 45, 40, 2, 47, 44, 90, 43, 50, 41, 46, 52, 48. An ice storm closed the access road on one of those days, and another was the day of the trail festival. Use the 1.5 IQR rule to find every outlier.
Show the worked solution
Sort the values: 2, 40, 41, 43, 44, 45, 46, 47, 48, 50, 52, 90. There are days.
The median is the average of the 6th and 7th values: hikers.
The lower half is the first six values 2, 40, 41, 43, 44, 45, so hikers.
The upper half is the last six values 46, 47, 48, 50, 52, 90, so hikers.
hikers, so hikers.
Lower fence: hikers. Upper fence: hikers.
Check both tails. At the low end the ice-storm day at 2 hikers is below 31.5, so it is a low outlier, while the next smallest day at 40 hikers is well above the fence. At the high end the festival day at 90 hikers is above 59.5, so it is a high outlier, while the next largest day at 52 hikers is below the fence.
Notice what having one outlier on each end does to the mean. The 12 values sum to 548, so hikers (x-bar is the sample mean), only 0.17 above the median of 45.5. The two outliers pull the mean in opposite directions and nearly cancel, so a mean close to the median is no evidence that a data set is free of outliers.
Fences at 31.5 and 59.5 hikers: the 2-hiker ice-storm day is a low outlier and the 90-hiker festival day is a high outlier. (, median 45.5, , hikers.)
Problem 5
A wildlife rehabilitation center logs how many animals it admits each week, but two entries in the logbook have been smudged.
(a) In one 7-week stretch the readable entries are 12, 15, 9, 18, 11, and 16, and the center's report states that the median for those 7 weeks was 14 animals. Find the smudged value.
(b) In a different 8-week stretch the readable entries are 5, 8, 10, 13, 16, 19, and 24, and the report states that for those 8 weeks was 18 animals. Find the smudged value.
Show the worked solution
(a) Sort the six readable values: 9, 11, 12, 15, 16, 18. Call the smudged value . The full stretch has values, so the median is the 4th value in sorted order.
(a) Test where could sit. If , the four smallest values are along with 9, 11, and 12, so the 4th value is 12 and the median would be 12, not 14. If , the three smallest are 9, 11, 12 and the 4th value is 15, so the median would be 15, not 14.
(a) That leaves , where the sorted list is 9, 11, 12, , 15, 16, 18 and the 4th value is itself. Setting produces the stated median.
(a) Check it. With the sorted list is 9, 11, 12, 14, 15, 16, 18, and the 4th of 7 values is 14 animals, as reported.
(b) Sort the seven readable values: 5, 8, 10, 13, 16, 19, 24. Call the smudged value . With it included there are weeks, so the upper half is the last four values and is the average of the 6th and 7th values in sorted order.
(b) Test where could sit. If , the 6th and 7th values are 16 and 19, giving , not 18. If , the 6th value is 19 and the 7th is at least 19, so would be at least , above 18.
(b) That leaves , where the sorted list is 5, 8, 10, 13, 16, , 19, 24. Then , so and animals, which does fall between 16 and 19.
(b) Check it. With the sorted list is 5, 8, 10, 13, 16, 17, 19, 24. The upper half is 16, 17, 19, 24, whose median is animals, as reported.
(a) 14 animals. (b) 17 animals.
Problem 6
A used bookstore records the number of books brought in at each of 10 trade-ins one week: 3, 5, 6, 8, 9, 11, 12, 14, 16, 16. (a) Find the mean and the median. (b) An eleventh trade-in arrives from an estate sale with 210 books. Recompute the mean, the median, and the IQR using all 11 trade-ins. (c) Explain what the two sets of numbers show about the mean and the median.
Show the worked solution
(a) Sort the first 10 values: 3, 5, 6, 8, 9, 11, 12, 14, 16, 16. The sum is books, so books, where (x-bar) is the sample mean.
(a) With 10 values the median is the average of the 5th and 6th: books. Here the mean and the median agree exactly.
(b) Add the estate sale and sort again: 3, 5, 6, 8, 9, 11, 12, 14, 16, 16, 210. There are now trade-ins.
(b) New mean: the sum is books, so books to two decimal places.
(b) New median: with 11 values it is the 6th value in sorted order, which is 11 books.
(b) New quartiles. The count is odd, so leave the median out. The lower half is 3, 5, 6, 8, 9, giving , and the upper half is 12, 14, 16, 16, 210, giving . Then books. Checking the rule, , so the upper fence is books and the 210-book trade-in is an outlier.
(c) Line the two sets up. The mean went from 10 books to 28.18 books, nearly tripling, because it adds in every value and 210 is more than 13 times the next largest trade-in. The median went from 10 books to 11 books, a move of one book, because it depends only on which value lands in the middle position.
(c) The mean of 28.18 books is larger than 10 of the 11 trade-ins, so it describes none of them. That is the general point: the median is resistant to an extreme value and the mean is not, so report the median and the IQR when a distribution carries an outlier.
(a) Mean 10 books, median 10 books. (b) Mean 28.18 books, median 11 books, books, and the 210-book trade-in is an outlier above the 31-book fence. (c) One extreme value nearly tripled the mean but moved the median by 1 book, because the mean uses every value while the median uses only position.
Problem 7
A library branch records the number of new library cards issued each day for 15 days: 12, 5, 34, 9, 15, 2, 19, 11, 41, 8, 14, 6, 17, 10, 13. (a) Give the five-number summary. (b) Identify any outliers with the 1.5 IQR rule. (c) Describe exactly what a modified boxplot of these data looks like: where the box ends, where the median line sits, where each whisker stops, and what is plotted separately. (d) How would a boxplot drawn without the outlier rule differ?
Show the worked solution
Sort the values: 2, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 34, 41. There are days.
(a) The median is the 8th value, 12 cards. The count is odd, so leave it out of both halves.
(a) Lower half: 2, 5, 6, 8, 9, 10, 11. Its middle value is cards. Upper half: 13, 14, 15, 17, 19, 34, 41. Its middle value is cards. The five-number summary is 2, 8, 12, 17, 41 cards.
(b) cards, so cards. The fences are cards and cards.
(b) No day can fall below cards, so there are no low outliers. Two days, 34 cards and 41 cards, sit above the upper fence of 30.5, so both are high outliers.
(c) Build the plot piece by piece. The box runs from cards to cards, with a line drawn inside it at the median of 12 cards.
(c) The lower whisker runs from the edge of the box at 8 cards down to the smallest value that is not an outlier. The minimum of 2 cards is inside the fences, so that whisker reaches 2 cards.
(c) The upper whisker runs from the edge of the box at 17 cards out to the largest value that is not an outlier. Skipping 34 and 41, that value is 19 cards, so the whisker stops at 19. The two outliers are then drawn as separate marks at 34 cards and at 41 cards.
(d) A boxplot drawn without the rule keeps the same box and the same median line, because the quartiles do not change. Its upper whisker runs all the way to the maximum of 41 cards and nothing is plotted separately, so the two busiest days are buried inside a long whisker instead of flagged.
(a) 2, 8, 12, 17, 41 cards. (b) Fences at and 30.5 cards, so the 34-card and 41-card days are outliers. (c) Box from 8 to 17 with the median line at 12, lower whisker to 2, upper whisker to 19, and separate points at 34 and 41. (d) Same box and median line, but the upper whisker would stretch to 41 and no points would be plotted separately.
Problem 8
A drop-in tutoring center records the length, in minutes, of each of the 12 sessions on one afternoon: 41, 38, 44, 40, 36, 42, 39, 43, 37, 45, 96, 40. (a) Give the five-number summary and the IQR. (b) Use the 1.5 IQR rule to test for outliers. (c) Find the mean with and without the longest session, and the median with and without it. (d) The 96-minute entry was logged in error and the real length is unknown. What is the largest whole number of minutes it could have been without being flagged as an outlier by the same rule?
Show the worked solution
Sort the values: 36, 37, 38, 39, 40, 40, 41, 42, 43, 44, 45, 96. There are sessions.
(a) The median is the average of the 6th and 7th values: minutes.
(a) The lower half is 36, 37, 38, 39, 40, 40, so minutes. The upper half is 41, 42, 43, 44, 45, 96, so minutes. The five-number summary is 36, 38.5, 40.5, 43.5, 96 minutes, and minutes.
(b) minutes, so the fences are minutes and minutes. The shortest session at 36 minutes is above 31, and only the 96-minute session exceeds 51, so it is the one outlier.
(c) With all 12 sessions the sum is minutes, so minutes to two decimal places, and the median is 40.5 minutes.
(c) Drop the 96-minute session. The remaining 11 sessions sum to minutes, so minutes, and with 11 values the median is the 6th, which is 40 minutes.
(c) Compare the two moves. The mean fell 4.63 minutes, from 45.08 to 40.45, while the median fell 0.5 minutes, from 40.5 to 40. With the outlier in, the mean of 45.08 minutes was longer than 11 of the 12 sessions.
(d) As long as the corrected value stays at or above 45 minutes it is still the largest value in the list, so the sorted order of the other 11 values does not change and , , and the IQR stay at 38.5, 43.5, and 5 minutes.
(d) The upper fence therefore stays at minutes, and the rule flags a value only when it lies beyond a fence. A 51-minute session is not beyond it, so 51 minutes is the largest whole number that would not be flagged, and 52 minutes would be.
(a) 36, 38.5, 40.5, 43.5, 96 minutes; minutes. (b) Fences at 31 and 51 minutes, so the 96-minute session is the only outlier. (c) Mean 45.08 minutes with it and 40.45 without (a drop of 4.63); median 40.5 with it and 40 without (a drop of 0.5). (d) 51 minutes.