Chapter 10 · Statistics: samples and populations

Choosing the Right Data Display

See one data set as a dot plot, a histogram and a box plot, and learn to pick the display that best answers your question.

11 min read

A data display is a picture of a data set. Different displays answer different questions. Before you choose one, ask what you want to know. In this lesson, you will see one data set drawn three ways.

A survey recorded how many minutes each of 1515 students waited for the bus one morning. Here are the 1515 wait times, in minutes, in order from least to greatest:

2,3,3,4,4,4,5,5,6,7,12,13,13,14,162, 3, 3, 4, 4, 4, 5, 5, 6, 7, 12, 13, 13, 14, 16

A dot plot (also called a line plot) puts one dot for each value above that value on a number line. Because every value gets its own dot, you can see:

  • each wait time exactly, from 22 to 1616 minutes;
  • each cluster, a group of values close together: 1010 waits from 22 to 77 minutes, and 55 waits from 1212 to 1616 minutes;
  • each gap, a stretch with no values: no student waited 88, 99, 1010 or 1111 minutes;
  • the mode, the value that occurs most often: 44 minutes, with 33 dots.
Line plotLine plot. Value axis: each step is 1, up to 3. Measure axis: each step is 1 minute, up to 16 minutes. 0 minutes, 0. 1 minute, 0. 2 minutes, 1. 3 minutes, 2. 4 minutes, 3. 5 minutes, 2. 6 minutes, 1. 7 minutes, 1. 8 minutes, 0. 9 minutes, 0. 10 minutes, 0. 11 minutes, 0. 12 minutes, 1. 13 minutes, 2. 14 minutes, 1. 15 minutes, 0. 16 minutes, 1.012×3××4×××5××6×7×89101112×13××14×1516×minutes
Line plot
Each dot is one student: 1515 dots in all, with the tallest stack, 33 dots, at 44 minutes.

A histogram sorts the values into equal bins, intervals of the measured quantity that touch, and draws one bar for the count in each bin. Here the bins start at 00 and are each 44 minutes wide: 00 to 44, 44 to 88, 88 to 1212 and 1212 to 1616. Each bin includes its lower edge but not its upper edge, so 44 goes in the 44 to 88 bin and 1212 goes in the 1212 to 1616 bin. The last bin also includes its upper edge, so 1616 goes there too. Sorting the ordered list:

  • 00 to 44: 2,3,32, 3, 3, so 33 students;
  • 44 to 88: 4,4,4,5,5,6,74, 4, 4, 5, 5, 6, 7, so 77 students;
  • 88 to 1212: no values, so 00 students, drawn as a thin flat bar;
  • 1212 to 1616: 12,13,13,14,1612, 13, 13, 14, 16, so 55 students.

The counts add to 3+7+0+5=153 + 7 + 0 + 5 = 15. The histogram shows how many values fall in each bin and the overall shape, but it hides the separate values inside each bin.

HistogramHistogram. Value axis: each step is 1 student, up to 8 students. Measure axis: each step is 1 minute, up to 16 minutes. Every bin is 4 minutes wide. 0 to 4 minutes, 3 students. 4 to 8 minutes, 7 students. 8 to 12 minutes, 0 students. 12 to 16 minutes, 5 students.012345678students0481216minutes
Histogram
Bars of 33, 77, 00 and 55 students for the bins 00 to 44, 44 to 88, 88 to 1212 and 1212 to 1616 minutes.

A box plot shows only the five-number summary: the minimum, lower quartile, median, upper quartile and maximum. With 1515 values, the median is the 8th value in order, which is 55. Leave it out and split the rest into two halves of 77 values:

  • lower half 2,3,3,4,4,4,52, 3, 3, 4, 4, 4, 5: its middle (4th) value is the lower quartile, 44;
  • upper half 6,7,12,13,13,14,166, 7, 12, 13, 13, 14, 16: its middle (4th) value is the upper quartile, 1313.

So the summary is 2,4,5,13,162, 4, 5, 13, 16. The range is 16−2=1416 - 2 = 14 minutes. The interquartile range (IQR), the length of the box, is 13−4=913 - 4 = 9 minutes. The box plot hides each separate value, how many values there are, and any gaps.

Box plotBox plot. Value axis: each step is 1 minute, up to 16 minutes. Minimum, 2 minutes. Lower quartile, 4 minutes. Median, 5 minutes. Upper quartile, 13 minutes. Maximum, 16 minutes.0481216minutes
Box plotMinimum 2 · Lower quartile 4 · Median 5 · Upper quartile 13 · Maximum 16 minutes
The whiskers reach 22 and 1616; the box runs from 44 to 1313, with the median line at 55.

Key concept

Let the question choose the display

Before you choose a display, name what you need to know. Use a dot plot when you need separate values, clusters, gaps or the mode, and the data set is small enough to draw a dot for each value. Use a histogram when you need how many values fall in equal intervals, or the overall shape. Use a box plot when you need the median, quartiles, range or IQR. Every display hides something, so the best choice is the one that shows what your question asks for.

What each display of the bus wait times shows and hides
DisplayShowsHides
Dot plot
Each value, clusters, gaps, the mode
Nothing about the values, but gets crowded with many values
Histogram
Counts in equal bins, the overall shape
The separate values inside each bin
Box plot
Five-number summary, range, IQR
Each value, the number of values, gaps

Worked example

A question about one value

Using the bus wait times, which display best answers Which wait time was most common? What is the answer?

  1. Name what the question asks for: the value that occurs most often, the mode. To find it, you need to see how many times each separate value occurs.

  2. The dot plot gives each value its own stack, so compare the stack heights. The stack at 44 minutes has 33 dots, and every other stack has 22 dots or fewer.

    3>23 > 2
  3. Check what the others hide. The histogram's 44 to 88 bin has the most values, 77, but it does not show which value inside that bin repeats. The box plot never shows how often a value occurs; its 44 is the lower quartile, not a mode.

Answer

The dot plot is the best choice, and it shows that the most common wait time was 44 minutes.

Worked example

A question about a count in an interval

Which display best answers How many students waited less than 88 minutes? What is the answer?

  1. This asks for a count of values in an interval: from 00 minutes up to, but not including, 88 minutes. Histogram bins are intervals like this.

  2. The bins 00 to 44 and 44 to 88 together hold every wait under 88 minutes, because a value of 88 would belong in the 88 to 1212 bin. Add their counts.

    3+7=103 + 7 = 10
  3. Check the others. You could count the 1010 dots from 22 to 77 on the dot plot, but only dot by dot, which gets slow with many values. The box plot hides the number of values, so it cannot give this count.

Answer

The histogram answers it most directly: 1010 students waited less than 88 minutes.

Worked example

A question about center and spread

A bus planner asks: What was the typical wait, and how spread out was the middle half of the waits? Which display best answers this, and what are the answers?

  1. Here the typical wait means the median, and the spread of the middle half is the IQR. Both come from the five-number summary, which is exactly what a box plot shows.

  2. The line inside the box marks the median.

    median=5\text{median} = 5
  3. The box runs from the lower quartile to the upper quartile, so its length is the IQR. Subtract the lower quartile from the upper quartile.

    IQR=13−4=9\text{IQR} = 13 - 4 = 9
  4. Check the others. On the dot plot you would have to count to the 8th dot and then work out each quartile yourself. The histogram hides the values: counting 33 values in the first bin places the 8th value in the 44 to 88 bin, but it cannot tell you that value is 55.

Answer

The box plot is the best choice: the median wait was 55 minutes, and the middle half of the waits has an IQR of 99 minutes.

Takeaway: One data set can be drawn in several ways, and each display shows some things and hides others. First decide what your question needs: separate values and the mode, a count in an interval, or the median and spread. Then choose the dot plot, histogram or box plot that shows it.