Math Core

Lesson 1.3 · Exploring One-Variable Data

Displaying quantitative data

A quantitative variable can take many different values, so its distribution needs a display that shows where the values fall along a number line. AP Statistics uses three main graphs for one quantitative variable: dot plots, stemplots and histograms. Each one keeps a different amount of detail, and choosing the right one depends on how much data you have and what you want to see.

Dot plots

A dot plot places a mark above a number line for every individual. Identical values stack up. Because every value is shown, you can read off the exact data, count how many values fall in a range, and spot gaps and unusual values immediately.

Worked example: Summer reading

A teacher asked 2222 students how many books they read over the summer.

012345678✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕
Books read over the summer by 22 students

What percent of the students read at least 33 books?

"At least 33" means 33 or more: 4+2+1+1=84 + 2 + 1 + 1 = 8 students. 822≈0.364\dfrac{8}{22} \approx 0.364, so about 36.4%36.4\% of the students read at least 33 books.

You can also see features that a table would hide: most students read between 00 and 33 books, and one student who read 88 books stands apart from everyone else.

Dot plots are ideal for small data sets. With hundreds of values, the stacks get too tall to draw.

Stemplots

A stemplot (stem-and-leaf plot) splits each value into a stem (all but the final digit) and a leaf (the final digit). Stems are listed in a column in increasing order, with no stems skipped, and each value's leaf is written to the right of its stem. Leaves are usually put in increasing order. Every stemplot needs a key that tells the reader how to read a stem and leaf.

Worked example: Building a stemplot

Here are the resting pulse rates, in beats per minute, of 1818 students:

56, 58, 61, 63, 64, 64, 67, 68, 70, 71, 72, 72, 73, 75, 78, 81, 84, 9356, \ 58, \ 61, \ 63, \ 64, \ 64, \ 67, \ 68, \ 70, \ 71, \ 72, \ 72, \ 73, \ 75, \ 78, \ 81, \ 84, \ 93

Make a stemplot.

The tens digits 55 through 99 become the stems and the ones digits become the leaves.

StemLeaves
56 8
61 3 4 4 7 8
70 1 2 2 3 5 8
81 4
93

Key: 6∣16 \mid 1 means 6161 beats per minute.

Check: 2+6+7+2+1=182 + 6 + 7 + 2 + 1 = 18 leaves, one for each student. Turned on its side, the stemplot looks like a histogram: the values pile up in the 6060s and 7070s, with a single student at 9393.

A stemplot keeps every data value (like a dot plot) while also showing the overall shape (like a histogram). It works best for small to moderate data sets, roughly 1515 to 5050 values.

Two useful variations:

  • Split stems. If most of the data land on just two or three stems, list each stem twice: leaves 00–44 go on the first copy and leaves 55–99 on the second. This spreads the picture out so the shape is easier to see.
  • Back-to-back stemplots. To compare two groups, write the stems down the middle, one group's leaves to the right and the other group's leaves to the left. You'll use these in the lesson on comparing distributions.

Histograms

For large data sets, the standard display is a histogram. Divide the range of the data into classes of equal width, called bins, and draw a bar over each bin. The height of the bar is the bin's frequency (a frequency histogram) or relative frequency (a relative frequency histogram). Unlike a bar graph, the bars touch, because the bins together cover a continuous stretch of the number line.

By convention, a value that falls exactly on the boundary between two bins goes in the bin on the right. A bin labeled 2020 to 3030 holds values from 2020 up to, but not including, 3030.

Worked example: From table to histogram

A store tracked how many minutes each of 4040 customers spent shopping.

Time (minutes)00–10101010–20202020–30303030–40404040–50505050–6060
Frequency22771212996644
Time spent shopping by 40 customers (minutes)
  1. What is the relative frequency of the 2020 to 3030 minute bin?
  2. What percent of the customers shopped for less than 2020 minutes?

Solutions.

  1. 1240=0.30\dfrac{12}{40} = 0.30. In a relative frequency histogram, this bar would have height 0.300.30.
  2. The first two bins hold 2+7=92 + 7 = 9 customers, and 940=0.225\dfrac{9}{40} = 0.225, so 22.5%22.5\%.

A relative frequency histogram has exactly the same shape as the frequency histogram of the same data; only the numbers on the vertical axis change. Relative frequency histograms are the better choice for comparing groups of different sizes.

Choosing the bin width

The bin width changes the picture. With too few wide bins, everything lands in one or two bars and the shape disappears. With too many narrow bins, the histogram becomes a jagged row of short bars with gaps that are just noise. Aim for a width that shows the overall pattern; for most data sets that means somewhere around 55 to 1515 bins. Technology will pick a width for you, but you should try a few to make sure the shape you describe isn't an accident of the bins.

What each display keeps

DisplayShows every value?Best for
Dot plotYesSmall data sets
StemplotYesSmall to moderate data sets
HistogramNo (only counts per bin)Large data sets

Common mistake

A histogram is not a bar graph. Bar graphs display categorical data: the bars are separated and can be put in any order. Histograms display quantitative data: the bars touch and follow the number line in order. Also, from a histogram you can't recover the individual data values, so you can't compute the exact mean or median, only locate the bin that contains the median.

Practice

Practice 1

The dot plot shows the number of siblings of 2525 students. What percent of the students have more than 22 siblings?

0123456✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕✕
Number of siblings

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

The stemplot shows the scores of 2020 students on a statistics test. How many students scored 8080 or higher?

StemLeaves
58
62 5 7
70 3 4 4 8 9
81 2 2 5 6 8 9
90 3 5

Key: 7∣47 \mid 4 means a score of 7474.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Make a stemplot of these 1212 values. How many leaves are on the stem 44?

23, 31, 35, 38, 40, 42, 42, 47, 49, 51, 55, 6223, \ 31, \ 35, \ 38, \ 40, \ 42, \ 42, \ 47, \ 49, \ 51, \ 55, \ 62

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

The next two problems use this histogram of the heights of 3030 tomato plants.

Heights of 30 tomato plants (cm)
Practice 4

How many of the plants are at least 1616 cm tall?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Which bin contains the median height?

Practice 6

A relative frequency histogram displays the weights of 8080 packages. One bar has a height of 0.150.15. How many packages are in that bin?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

A researcher has the commute times of 1,2001{,}200 workers and wants to see the overall shape of the distribution. Which display is the best choice?