Chapter 13 · Statistics and data displays

The Five-Number Summary

Learn the five numbers that sum up a data set: minimum, first quartile, median, third quartile and maximum. See how they split ordered data into four parts.

11 min read

A data set is a collection of numbers that someone has gathered. Imagine one that holds 200200 test scores. You cannot keep 200200 scores in your head. You already know single numbers that describe a data set, such as the median (its middle) and the range (the greatest value minus the least value). But one number alone cannot show where the data starts, where it ends, and how it is spread out in between.

A five-number summary does that job with just five numbers. Picture the data values lined up in order from least to greatest. Two of the five numbers mark the ends of the line. The other three are cut points that split the line into four parts, with about the same number of values in each part. You will soon see why it is about and not always exactly.

To build the summary, first put the data values in order from least to greatest. If a value appears more than once, list it every time. The five numbers are:

  • The minimum: the least value.
  • The first quartile, written Q1Q_1: the median of the lower half of the ordered list.
  • The median: the middle of the ordered list. With an odd count of values, it is the one middle value. With an even count, it is halfway between the two middle values: add them and divide by 22.
  • The third quartile, written Q3Q_3: the median of the upper half of the ordered list.
  • The maximum: the greatest value.

The lower half is the part of the ordered list before the middle. The upper half is the part after the middle. With an even count, the list splits cleanly into two halves. With an odd count, the median is the middle value itself, and in this course you always leave it out of both halves. Other rules exist and can give slightly different quartiles, so use this one every time.

Key concept

The five-number summary

A five-number summary describes a data set with five numbers: the minimum, the first quartile Q1Q_1, the median, the third quartile Q3Q_3 and the maximum.

The minimum and the maximum mark the ends of the ordered data. Q1Q_1, the median and Q3Q_3 cut it into four parts that each hold about one fourth of the values. It is not always exactly one fourth, for example when the list is short or values repeat.

Q1Q_1 is the median of the lower half and Q3Q_3 is the median of the upper half. When the count of values is odd, you leave the median out of both halves.

The five numbers are always in order: each one is greater than or equal to the one before it. The symbol ≤\le means is less than or equal to.

minimum≤Q1≤median≤Q3≤maximum\text{minimum} \le Q_1 \le \text{median} \le Q_3 \le \text{maximum}

Worked example

An even number of values

Eight students wrote down how many minutes they read last night: 20,45,12,26,14,30,18,2220, 45, 12, 26, 14, 30, 18, 22. Find the five-number summary of these reading times.

  1. Put the 8 reading times in order from least to greatest. Every number in the summary depends on where a value sits in the ordered list, so ordering comes first. Count to check that all 8 values are still there.

    12,14,18,20,22,26,30,4512, 14, 18, 20, 22, 26, 30, 45
  2. Read the two ends of the ordered list. The first value is the least, so it is the minimum. The last value is the greatest, so it is the maximum.

    minimum=12maximum=45\text{minimum} = 12 \qquad \text{maximum} = 45
  3. Find the median. The count is 8, which is even, so there are two middle values: the 4th and the 5th, which are 20 and 22. The median is halfway between them, so add them and divide by 2.

    median=(20+22)÷2=42÷2=21\text{median} = (20 + 22) \div 2 = 42 \div 2 = 21
  4. Split the ordered list into halves. The count is even, so the list splits cleanly with no value left over. The first 4 values are the lower half and the last 4 values are the upper half.

    lower half: 12,14,18,20upper half: 22,26,30,45\text{lower half: } 12, 14, 18, 20 \qquad \text{upper half: } 22, 26, 30, 45
  5. Find the first quartile, which is the median of the lower half. The lower half has 4 values, an even count, so take the number halfway between its two middle values, 14 and 18.

    Q1=(14+18)÷2=32÷2=16Q_1 = (14 + 18) \div 2 = 32 \div 2 = 16
  6. Find the third quartile, which is the median of the upper half. Use the same method on its two middle values, 26 and 30.

    Q3=(26+30)÷2=56÷2=28Q_3 = (26 + 30) \div 2 = 56 \div 2 = 28

Answer

The five-number summary of the reading times is minimum 1212, Q1=16Q_1 = 16, median 2121, Q3=28Q_3 = 28 and maximum 4545, all in minutes.

Now look at what those five numbers show. Below, the ordered reading times appear again with a bar at each cut point. Notice that 1616, 2121 and 2828 are not reading times anyone wrote down. A cut point can fall between two data values.

The three bars split the list into four sections. The table under the list has one row for each section. Its columns give the section's two edges, the number of reading times that fall in the section, and the section's width. The width is the upper edge minus the lower edge, so its unit is minutes.

12,14  ∣Q1=16  18,20  ∣median=21  22,26  ∣Q3=28  30,4512, 14 \; \underset{Q_1 = 16}{\Big|} \; 18, 20 \; \underset{\text{median} = 21}{\Big|} \; 22, 26 \; \underset{Q_3 = 28}{\Big|} \; 30, 45
The four sections of the reading times
SectionEdges, in minutesNumber of reading timesWidth, in minutes
Minimum to Q1Q_1
1212 to 1616
22
16−12=416 - 12 = 4
Q1Q_1 to median
1616 to 2121
22
21−16=521 - 16 = 5
Median to Q3Q_3
2121 to 2828
22
28−21=728 - 21 = 7
Q3Q_3 to maximum
2828 to 4545
22
45−28=1745 - 28 = 17

Read down the last two columns. Every section holds 22 of the 88 reading times. In this data set that is exactly one fourth each, which does not always happen, as the second example will show. The widths, though, are 44, 55, 77 and 1717 minutes. Equal counts do not mean equal widths.

A narrow section means its values sit in a short stretch of the number line. A wide section means that part of the data covers a longer stretch. Here the bottom section is only 44 minutes wide and holds 1212 and 1414. The top section is 1717 minutes wide and holds 3030 and 4545. Same count, very different spread.

The widths also link to a measure you know. Placed end to end, the four sections reach from the minimum to the maximum. So the widths add up to the range. Check: 4+5+7+17=334 + 5 + 7 + 17 = 33, and 45−12=3345 - 12 = 33 minutes.

Worked example

An odd number of values

Nine students took a quiz. Their scores, in points, were 14,9,18,11,20,8,15,12,1614, 9, 18, 11, 20, 8, 15, 12, 16. Find the five-number summary of the scores.

  1. Put the 9 scores in order from least to greatest, because the summary depends on each value's position in the ordered list. The first value, 8, is the minimum. The last value, 20, is the maximum.

    8,9,11,12,14,15,16,18,208, 9, 11, 12, 14, 15, 16, 18, 20
  2. Find the median. The count is 9, which is odd, so one value sits exactly in the middle. It is the 5th value, with 4 values before it and 4 values after it.

    median=14\text{median} = 14
  3. Split the list into halves. The count is odd, so use this course's rule: set the median, 14, aside so that it is in neither half. The lower half is the 4 values before it. The upper half is the 4 values after it.

    lower half: 8,9,11,12upper half: 15,16,18,20\text{lower half: } 8, 9, 11, 12 \qquad \text{upper half: } 15, 16, 18, 20
  4. Find the first quartile, the median of the lower half. That half has 4 values, an even count, so take the number halfway between its two middle values, 9 and 11.

    Q1=(9+11)÷2=20÷2=10Q_1 = (9 + 11) \div 2 = 20 \div 2 = 10
  5. Find the third quartile, the median of the upper half, in the same way. Its two middle values are 16 and 18.

    Q3=(16+18)÷2=34÷2=17Q_3 = (16 + 18) \div 2 = 34 \div 2 = 17

Answer

The five-number summary of the quiz scores is minimum 88, Q1=10Q_1 = 10, median 1414, Q3=17Q_3 = 17 and maximum 2020, all in points.

Check the order first: 8≤10≤14≤17≤208 \le 10 \le 14 \le 17 \le 20, just as the key idea says.

Now count the scores in each section. The section from 88 to 1010 holds 88 and 99. The section from 1010 to 1414 holds 1111 and 1212. The section from 1414 to 1717 holds 1515 and 1616. The section from 1717 to 2020 holds 1818 and 2020. The ninth score is the median, 1414. It sits right on the edge between two sections.

So each section has 22 of the 99 scores to itself. That is about one fourth, but not exactly, because 99 values cannot be shared into four equal groups. The reading times split into exact fourths because 88 values share evenly into four groups of 22 and no value repeated. A repeated value can also land right on a cut point and blur the count. So you say each section holds about one fourth of the values, and the idea works best when a data set is not tiny.

Takeaway. A five-number summary is the minimum, Q1Q_1, the median, Q3Q_3 and the maximum of a data set. To find it, order the values, find the median, then find the median of each half. When the count of values is odd, leave the median out of both halves.

The five numbers mark the ends of the ordered data and cut it into four sections. Each section holds about one fourth of the values. It is not always exactly one fourth, for example in a short list or when values repeat. The distances between the numbers, such as the range and the IQR (Q3−Q1Q_3 - Q_1), show how spread out the data is.

Next, you will use a five-number summary to draw and read a box plot.