AP Statistics · Topic 1.8 · Reading guide, about 5 min

Five-number summaries and boxplots

Build five-number summaries and boxplots, read the quarters of the data, and use mean versus median as a clue to shape.

In one minute

A boxplot packs a whole distribution into five numbers and one compact picture. It shows the center, the spread of the middle half, how far the data stretch and which values are outliers, all in a graph small enough to place beside several others.

The tradeoff is that the picture hides detail: you can see how the data are spread over four sections, but not whether values cluster or form two peaks.

Key terms

Five-number summary
The minimum, first quartile, median, third quartile and maximum, listed in order.
Boxplot
A graph of the five-number summary: a box from Q1Q_1 to Q3Q_3 with a line at the median, and whiskers.
Whisker
A line from each end of the box to the most extreme value that is not an outlier.
Outlier symbol
A dot or star placed beyond a whisker for each value flagged as an outlier.
Quartile section
Each of the four parts of a boxplot (whisker, lower box, upper box, whisker); each holds about 25% of the data.
Median
The middle value; the line inside the box.
IQR
The length of the box, Q3−Q1Q_3 - Q_1.
Skewness clue
Comparing the mean with the median: above for right skew, below for left skew, close for symmetric.

The five-number summary

List the minimum, Q1Q_1, median, Q3Q_3 and maximum. Find the median, then the medians of the two halves (leaving out the median itself when nn is odd). These five values cut the ordered data into four parts, and each part holds about a quarter of the data.

The distance from Q1Q_1 to Q3Q_3 is the IQR, the spread of the middle 50%. The distance from minimum to maximum is the range. The five-number summary is therefore also a short description of center (median) and spread (IQR, range).

Building a boxplot

Draw a number line. Draw a box from Q1Q_1 to Q3Q_3 and a line at the median. Then check for outliers with the IQR rule: any value more than 1.5×IQR1.5 \times IQR below Q1Q_1 or above Q3Q_3 is an outlier. Mark each outlier with a symbol. Draw each whisker to the most extreme value that is not an outlier, so the whisker ends at a real data value, not at the fence.

Each of the four sections holds about 25% of the data, regardless of its length. A longer section means those values are more spread out, not that there are more of them. A long upper whisker says the top quarter of the data stretches across a wide range of values, not that most of the data live there.

Reading a boxplot
FeatureWhat it tells you
Line inside the boxThe median
Length of the boxThe IQR, the spread of the middle half
Whisker lengthHow far the lowest or highest quarter stretches (excluding outliers)
Dots beyond whiskersValues flagged as outliers

Limits, and the mean versus the median

A boxplot cannot show gaps, clusters or bimodality, because it shows only five numbers. Two very different histograms can give the same boxplot. If those features matter, use a histogram or dotplot.

The location of the median inside the box and the lengths of the whiskers hint at shape: a long upper whisker and a median close to Q1Q_1 suggest right skew. Comparing the mean to the median is another clue. In right-skewed data the long tail pulls the mean above the median; in left-skewed data the mean is below the median; in roughly symmetric data they are close. This is a tendency, not a law, so treat it as a clue and confirm with a graph.

Worked example

Invented data: minutes of daily exercise for 11 students, in order: 12, 15, 16, 18, 20, 22, 23, 25, 27, 30, 48.

Five-number summary. Minimum =12= 12 and maximum =48= 48. The median is the 6th value, 2222. The lower half is 12, 15, 16, 18, 20, with median 1616, so Q1=16Q_1 = 16. The upper half is 23, 25, 27, 30, 48, with median 2727, so Q3=27Q_3 = 27. The summary is 12,16,22,27,4812, 16, 22, 27, 48, and IQR=27−16=11IQR = 27 - 16 = 11.

Outliers. The upper fence is 27+1.5(11)=43.527 + 1.5(11) = 43.5 and the lower fence is 16−16.5=−0.516 - 16.5 = -0.5. The value 48 is above the upper fence, so it is an outlier. No value is below −0.5-0.5.

Boxplot. The box runs from 16 to 27 with a line at 22. The lower whisker runs to 12. The upper whisker runs to 30, the largest value that is not an outlier (not to 48). The value 48 is plotted as a separate dot.

Sections. The lower whisker covers 16−12=416 - 12 = 4 minutes, the lower part of the box 22−16=622 - 16 = 6, the upper part of the box 27−22=527 - 22 = 5, and the upper whisker 30−27=330 - 27 = 3. The sections have different lengths, but each holds about a quarter of the data.

Mean versus median. The sum is 256, so xˉ=256/11=23.2727\bar{x} = 256/11 = 23.2727, which is a little above the median of 22. That fits the mild right skew produced by the 48-minute value. In context: "The middle half of these students exercise between 16 and 27 minutes a day, with a median of 22 minutes. One student, at 48 minutes, is an outlier."

How it connects

  • Back to 1.7: the quartiles, IQR and outlier rule from that topic are the parts of a boxplot.
  • Back to 1.6: shape, center, spread and unusual features can all be commented on from a boxplot, except gaps, clusters and bimodality.
  • Forward to 1.9: side-by-side boxplots compare two or more groups on one number line.

Common mistakes

  • Drawing the whisker to the outlier. Whiskers stop at the most extreme non-outlier; outliers get their own symbol.
  • Thinking a longer section holds more data. Each section holds about 25% of the data. Length shows spread.
  • Claiming a boxplot shows two peaks or gaps. It cannot. Use a histogram or dotplot for that.
  • Treating the mean-median clue as a rule. It is a tendency; check the graph.

How it shows up on the exam

  • You find a five-number summary from a list of data, or read one from a boxplot.
  • A question gives a five-number summary and asks you to decide whether a value is an outlier, or to sketch the boxplot.
  • A written part asks what you can or cannot conclude from a boxplot, such as shape, spread, or the presence of two peaks.

Check yourself

  1. What fraction of the data lies between Q1Q_1 and Q3Q_3, and what fraction lies above the median?
  2. Why does the upper whisker of a boxplot sometimes end well before the maximum value?
  3. If the mean is far above the median, what shape might you suspect?
  4. What feature of a data set can a histogram show that a boxplot cannot?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.