Quartiles and Percentiles
The median splits a data set in half. Quartiles go one step further and split it into quarters, and percentiles split it into hundredths. They tell you where a value stands compared with the rest (“better than of the class”) and give a way to measure spread and spot outliers that isn’t fooled by extreme values. A boxplot puts all of this into one simple picture.
Key ideas
Section titled “Key ideas”Quartiles
Section titled “Quartiles”Quartiles divide ordered data into four parts with about the same number of values in each.
- (the lower quartile) is the median of the lower half of the data.
- is the median of the whole data set.
- (the upper quartile) is the median of the upper half.
The method used on this site:
- Put the data in order and find the median.
- Split the data into a lower half and an upper half. If is odd, leave the median out of both halves. If is even, the halves are simply the first and the last values.
- is the median of the lower half, and is the median of the upper half.
Graphing calculators, spreadsheets, and statistics software don’t all use this exact method. (For example, a spreadsheet’s QUARTILE function uses a different rule.) Their answers may differ slightly from yours, especially for small data sets. That’s normal: just be consistent and say which method you used.
Interquartile range
Section titled “Interquartile range”The interquartile range is the spread of the middle half of the data:
Unlike the range (maximum minus minimum), the IQR is barely affected by outliers, because it ignores the lowest and highest quarters. For other measures of spread, see standard deviation.
Five-number summary
Section titled “Five-number summary”The five-number summary of a data set is
Outliers: the 1.5 × IQR rule
Section titled “Outliers: the 1.5 × IQR rule”A value is an outlier if it is more than below or above . The cut-offs are called fences:
Any value below the lower fence or above the upper fence is an outlier.
Boxplots
Section titled “Boxplots”A boxplot (or box-and-whisker plot) shows the five-number summary on a number line:
- the box goes from to , with a line at the median;
- the whiskers go from the box out to the smallest and largest values that are not outliers;
- outliers are plotted as separate dots.
Each of the four sections (left whisker, left half of the box, right half of the box, right whisker) holds about a quarter of the data. A long section doesn’t mean more data; it means the data in that quarter are more spread out.
Percentiles and percentile rank
Section titled “Percentiles and percentile rank”The th percentile is the value that about of the data fall below. On this site, the percentile rank of a value is the percentage of the data that are below it:
rounded to a whole number. (Some textbooks also count half of the values equal to ; the answers come out close.)
Quartiles are special percentiles: is about the 25th percentile, the median is the 50th, and is about the 75th.
A percentile is not a percentage mark. Being at the 90th percentile on a test means you did better than about of the people who wrote it, not that you scored .
When data follow a normal distribution, you can find percentiles from z-scores instead of from a list of values.
Worked examples
Section titled “Worked examples”Example 1: Quartiles when n is odd
Section titled “Example 1: Quartiles when n is odd”Find the quartiles and the IQR of these test scores:
Solution. The data are already in order. With , the median is the 5th value: .
Leave the median out. The lower half is , so
The upper half is , so
Example 2: Five-number summary, outliers, and a boxplot
Section titled “Example 2: Five-number summary, outliers, and a boxplot”Twelve students recorded their daily phone use in minutes:
Find the five-number summary, check for outliers, and describe the boxplot.
Solution. With (even), the median is the mean of the 6th and 7th values:
The lower half is the first six values, , so .
The upper half is , so .
Five-number summary: .
Now the fences:
No value is below , but , so is an outlier.
In the boxplot (shown above), the box runs from to with a line at . The left whisker goes down to . The right whisker stops at , the largest value that isn’t an outlier, and is drawn as a separate dot.
Example 3: Percentile rank
Section titled “Example 3: Percentile rank”In a class of , Jun’s mark on a test was higher than the marks of classmates. Find Jun’s percentile rank and explain what it means.
Solution.
Jun is at the 80th percentile: about of the class scored lower than he did. This says nothing about his actual mark. On a hard test, the 80th percentile might be a .
Example 4: Comparing two boxplots
Section titled “Example 4: Comparing two boxplots”Two Grade 12 classes wrote the same test. Their five-number summaries are:
| Min | Median | Max | |||
|---|---|---|---|---|---|
| Class A | |||||
| Class B |
Compare the two classes.
Solution.
- Centre: Class B’s median () is higher than Class A’s (), so a typical student in B did a little better.
- Spread: Class A’s IQR is , and Class B’s is . The middle half of Class B is much more tightly grouped, so B’s results are more consistent.
- Extremes: Class A had the highest mark (), but also the lowest ().
- In Class B, about of students scored or more (since ). In Class A, is between and the median, so somewhere between and scored that well.
Common mistakes
Section titled “Common mistakes”Forgetting to sort the data. Quartiles, like the median, only make sense for ordered data.
Switching quartile methods partway through. With the method on this site, leave the median out when is odd. Including it is another method some books and calculators use, and it gives slightly different quartiles, so pick one method and stick to it.
Drawing the whisker all the way to an outlier. Whiskers stop at the most extreme values that are not outliers. Outliers get their own dot.
Thinking a longer section of a boxplot holds more data. Every section holds about of the data. A longer section means those values are more spread out.
Confusing percentile with percent. The 70th percentile means “better than about of people”, not “a mark of ”.
Using 1.5 × IQR from the median. The fences are measured from and , not from the median.
Practice
Section titled “Practice”1. (Warm-up) Find the five-number summary: .
Solution
, so the median is the 5th value, . Lower half: , so . Upper half: , so .
Five-number summary: .
2. (Warm-up) Find , the median, , and the IQR: .
Solution
, so the median is .
Lower half: , so . Upper half: , so .
.
3. (Warm-up) A doctor says a toddler’s height is at the 85th percentile for her age. What does this mean?
Solution
About of toddlers her age are shorter than she is (and about are taller). It doesn’t mean anything is "" about her height.
4. (Core) Use the rule to check for outliers: .
Solution
. Lower half: , so . Upper half: , so .
, so is an outlier. No value is below .
5. (Core) A boxplot of quiz scores has this five-number summary: .
- (a) About what percentage of scores are between and ?
- (b) About what percentage are above ?
- (c) Is the maximum, , an outlier?
Solution
(a) About (the box holds the middle half).
(b) About ( is the median).
(c) , and the upper fence is . Since , yes, is an outlier. The boxplot should show it as a dot, with the whisker ending at the largest score that isn’t an outlier.
6. (Core) In a class of students, Leo’s mark was higher than other students’ marks. Find his percentile rank.
Solution
Leo is at about the 81st percentile.
7. (Core) Two track teams recorded their long jumps in metres.
| Min | Median | Max | |||
|---|---|---|---|---|---|
| Team X | |||||
| Team Y |
- (a) Which team had the longest single jump?
- (b) Which team has the higher median?
- (c) Find each team’s IQR. Which team is more consistent?
Solution
(a) Team Y ( m).
(b) Team X ( m compared with m).
(c) Team X: m. Team Y: m. Team X is more consistent: the middle half of its jumps are spread over half the distance.
8. (Challenge) The ordered data set has an IQR of , where . Find .
Solution
. The upper half is , so .
The lower half is , so .
Check: and . ✓
9. (Challenge) For the data in Question 1, a classmate includes the median in both halves when finding the quartiles. What does the classmate get for and ? Why do the answers differ, and which is right?
Solution
Including the median , the lower half is , so . The upper half is , so .
With our method, and . The answers differ because the halves contain different values. Neither is “wrong”: statisticians use several methods, and calculators and spreadsheets pick different ones. The differences shrink as data sets get larger. What matters is using one method consistently and saying which one you used.