01 / 20

Boxplots &
Five-Number Summary

Learn to summarize data distributions using minimum, quartiles, and maximum: the essential toolkit for visualizing spread and identifying outliers.

College Statistics

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.

Min
The smallest data value in the set
\(Q_1\)
First quartile: the 25th percentile
Median
Middle value: the 50th percentile
\(Q_3\)
Third quartile: the 75th percentile
Max
The largest data value in the set

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.

Resistant
Quartiles and median are not pulled by extreme values the way the mean is
Visual
Directly maps to the boxplot: one of the most powerful graphical displays in statistics
Comparative
Side-by-side boxplots make comparing multiple groups effortless and clear

Anatomy of a Boxplot

Min
\(Q_1\)
Median
\(Q_3\)
Max Lower Whisker Interquartile Range (IQR) Upper Whisker 25% 25% 25% 25%

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.

\(Q_1\) (25th percentile)
Median of the lower half of the sorted data (values below the overall median)
\(Q_3\) (75th percentile)
Median of the upper half of the sorted data (values above the overall median)
IQR
Width of the box: captures the middle 50% of all observations

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

1
Sort the data from smallest to largest.
2
Find the median. If \(n\) is odd, it is the middle value. If \(n\) is even, average the two middle values.
3
Find \(Q_1\): the median of all values strictly below the overall median position.
4
Find \(Q_3\): the median of all values strictly above the overall median position.
5
Record Min and Max. Your summary: Min, \(Q_1\), Median, \(Q_3\), Max.
6
Compute fences and check for outliers before drawing the whiskers on your boxplot.

Example 1: Odd Sample Size

Dataset (already sorted): 2, 5, 7, 8, 12, 14, 18   (\(n = 7\))

2 5 7 8 12 14 18 Min
\(Q_1\)
Median
\(Q_3\)
Max

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\))

1 5 9 13 14 35 outlier

Reading Skewness from a Boxplot

Symmetric Right-Skewed Left-Skewed
Symmetric
Median is centered in the box; whiskers are roughly equal length
Right-Skewed
Median is closer to \(Q_1\); right whisker is longer (tail stretches right)
Left-Skewed
Median is closer to \(Q_3\); left whisker is longer (tail stretches left)

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

0 20 40 60 80 100 Class A Class B Test Scores

Common Mistakes

✕ Confusing Mean and Median
Boxplots display the median, not the mean. The mean is not visible on a standard boxplot.
✕ Width = More Data
A wider box section does not mean more data points. Each quarter holds ~25%. Width means more spread.
✕ Ignoring Fences
Drawing whiskers straight to min/max without checking the \(1.5 \times \text{IQR}\) rule misrepresents the data.
✕ Skew Direction
A longer right whisker means right-skewed (tail to the right), not left-skewed. Follow the longer tail.

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?