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 students how many books they read over the summer.
What percent of the students read at least books?
"At least " means or more: students. , so about of the students read at least books.
You can also see features that a table would hide: most students read between and books, and one student who read 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 students:
Make a stemplot.
The tens digits through become the stems and the ones digits become the leaves.
| Stem | Leaves |
|---|---|
| 5 | 6 8 |
| 6 | 1 3 4 4 7 8 |
| 7 | 0 1 2 2 3 5 8 |
| 8 | 1 4 |
| 9 | 3 |
Key: means beats per minute.
Check: leaves, one for each student. Turned on its side, the stemplot looks like a histogram: the values pile up in the s and s, with a single student at .
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 to values.
Two useful variations:
- Split stems. If most of the data land on just two or three stems, list each stem twice: leaves – go on the first copy and leaves – 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 to holds values from up to, but not including, .
Worked example: From table to histogram
A store tracked how many minutes each of customers spent shopping.
| Time (minutes) | – | – | – | – | – | – |
|---|---|---|---|---|---|---|
| Frequency |
- What is the relative frequency of the to minute bin?
- What percent of the customers shopped for less than minutes?
Solutions.
- . In a relative frequency histogram, this bar would have height .
- The first two bins hold customers, and , so .
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 to 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
| Display | Shows every value? | Best for |
|---|---|---|
| Dot plot | Yes | Small data sets |
| Stemplot | Yes | Small to moderate data sets |
| Histogram | No (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
The dot plot shows the number of siblings of students. What percent of the students have more than siblings?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The stemplot shows the scores of students on a statistics test. How many students scored or higher?
| Stem | Leaves |
|---|---|
| 5 | 8 |
| 6 | 2 5 7 |
| 7 | 0 3 4 4 8 9 |
| 8 | 1 2 2 5 6 8 9 |
| 9 | 0 3 5 |
Key: means a score of .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Make a stemplot of these values. How many leaves are on the stem ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The next two problems use this histogram of the heights of tomato plants.
How many of the plants are at least cm tall?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which bin contains the median height?
A relative frequency histogram displays the weights of packages. One bar has a height of . How many packages are in that bin?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A researcher has the commute times of workers and wants to see the overall shape of the distribution. Which display is the best choice?