Boxplots &
Five-Number Summary
Learn to summarize data distributions using minimum, quartiles, and maximum: the essential toolkit for visualizing spread and identifying outliers.
What is the Five-Number Summary?
The five-number summary is a set of five descriptive statistics that together provide a concise overview of a dataset's distribution. These five values divide your data into four roughly equal parts, each containing about 25% of the observations.
Why Does It Matter?
The five-number summary captures the center and spread of a dataset without assumptions about its shape. Unlike the mean and standard deviation, it is resistant to outliers, making it ideal for skewed distributions or datasets with extreme values.
Anatomy of a Boxplot
The IQR and Quartiles
The interquartile range measures the spread of the middle half of your data. It is the single most important measure of variability associated with the five-number summary.
Detecting Outliers with Fences
Boxplots use the \(1.5 \times \text{IQR}\) rule to flag potential outliers. Any data point beyond the fences is plotted individually as a dot or asterisk.
Boxplot vs. Histogram
| Boxplot | Histogram | |
|---|---|---|
| Shows center | Median line | Peak / mode |
| Shows spread | IQR (box width) | Range of bars |
| Outliers | Explicitly flagged | Hidden in tails |
| Shape detail | Limited (skew direction) | Full shape visible |
| Group comparison | Easy side-by-side | Harder with overlapping bins |
| Best for | Quick summary, comparing groups | Exploring distribution shape |
How to Construct the Summary
Example 1: Odd Sample Size
Dataset (already sorted): 2, 5, 7, 8, 12, 14, 18 (\(n = 7\))
Example 2: Even Sample Size
Dataset (sorted): 3, 7, 8, 10, 15, 20 (\(n = 6\))
Example 3: Outlier Detection
Dataset (sorted): 1, 4, 6, 8, 10, 12, 14, 35 (\(n = 8\))
Reading Skewness from a Boxplot
Modified vs. Standard Boxplot
| Standard Boxplot | Modified Boxplot | |
|---|---|---|
| Whiskers extend to | Min and Max | Most extreme non-outlier |
| Outliers shown? | Not separately | Plotted as individual points |
| Uses fences? | No | Yes: \(1.5 \times \text{IQR}\) rule |
| Common in practice | Rare / textbook only | Default in all software |
Comparing Groups Side-by-Side
Common Mistakes
Question 1 of 5
For the dataset 4, 7, 9, 11, 13, 18, 22, what is the five-number summary?
Question 2 of 5
A dataset has \(Q_1 = 20\) and \(Q_3 = 44\). What is the upper fence for outlier detection?
Question 3 of 5
In a boxplot, the median line is much closer to \(Q_1\) than to \(Q_3\), and the right whisker is much longer than the left. What does this indicate?
Question 4 of 5
Which statement about the interquartile range (IQR) is true?
Question 5 of 5
A dataset has the five-number summary: 10, 25, 40, 55, 100. Is the value 100 an outlier according to the \(1.5 \times \text{IQR}\) rule?