Glossary
Quartile
Also written: quartiles · Q1 · Q3 · first quartile · third quartile
Definition
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.
Finding them
Sort the data and find the median. Then:
- is the median of the values below the median.
- is the median of the values above it.
With an odd count, leave the median itself out of both halves.
For the median is :
What each one marks
| Values below it | |
|---|---|
| median | |
So a test score at beat three quarters of the group.
The interquartile range
The IQR is the width of the middle half of the data. Because it discards the top and bottom quarters, an outlier sitting in one of those tails has no effect on it — which is what makes it the measure of spread to pair with a median.
On a box plot, the box runs from to , so the width of the box is the IQR.
A note on conventions
Statistical software offers several methods for computing quartiles, and they disagree on small data sets. The method above — splitting at the median and excluding it when the count is odd — is the one US school courses use, and it is what this site uses throughout.
Lessons that use this term
- Range, Interquartile Range and Mean Absolute Deviation
How to measure how spread out a data set is using range, interquartile range and mean absolute deviation, and why two sets with the same mean can be nothing alike.
- Box Plots: Reading the Five-Number Summary
How to build a box plot from the five-number summary, what the box and whiskers each show, how to spot skew from the median line, and how to compare two groups.