Educerie · AP · Statistics
AP Statistics 1.5
Graphical Representations for One Quantitative Variable
How do we describe data about one variable, and how must the data be collected before we can trust what they say?
What you will learn
- Understand that dotplots, stem-and-leaf plots and histograms show a quantitative distribution in order
- Know how to construct each graph and what a key is for
- Understand that changing the bin width changes how a histogram looks
- Know which graph suits a small and which a large data set
You must be able to
- Construct a histogram from a frequency table with touching bars of equal width
- Construct a stem-and-leaf plot with a key and ordered leaves
- Draw or read a dotplot with equal values stacked
- Read counts and proportions from a histogram
- Explain how a narrower bin width can reveal or hide a gap
In the exam. Section I multiple choice, where a histogram, dotplot or stem-and-leaf plot is given and you read a count, a proportion or the shape, or pick the histogram that matches a description. In Section II, a histogram or dotplot is the usual starting point of the data-analysis question, and the skill carries into the next three topics. Questions on the digital exam show the graph on screen.
1Dotplots
Dotplot = a graph in which each value of the variable is one dot. The dot sits above the horizontal axis (or beside a vertical one) at the value of that observation. Nearly identical values stack on top of each other.
Figure 1 is a dotplot of the 30 waiting times.
To read it:
- Each dot is one patient. Count the dots and you get .
- The stacks at 6, 8, 10 and 12 are two dots high, because two patients waited those times.
- Most dots lie between 4 and 28 minutes. A few trail out to 31, 35, 38, 45 and 58.
To draw one, mark a number line that covers the smallest to the largest value, then put one dot for each value above that value. A dotplot shows every individual value, so it works best for a small or moderate data set.
2Stem-and-leaf plots
Stem-and-leaf plot = a display that splits each value into a stem (the first digit or digits) and a leaf (usually just the next digit after the stem). Both the stems and the leaves are ordered from smallest to largest.
For the waiting times, the stem is the tens digit and the leaf is the ones digit. A waiting time of 24 minutes becomes stem 2, leaf 4.
0 | 4 5 6 6 7 8 8 9
1 | 0 0 1 2 2 3 4 5 6 7 8 9
2 | 1 2 4 6 8
3 | 1 5 8
4 | 5
5 | 8
Key: 2 | 4 means 24 minutes
The rules to follow:
- Write a key. Without it, nobody can tell whether 2 | 4 means 24, 2.4 or 240.
- Order the leaves in each row, smallest to largest.
- Keep equal values. The two patients who waited 6 minutes give two leaves of 6.
- Check the count. The leaves total , which is .
The plot turned on its side looks like a histogram, but each value can still be read from it. It keeps the exact data.
When there are only a few stems, you can split each stem into two rows: leaves 0 to 4 on the first row and 5 to 9 on the second. This shows more detail and is easy to check against the key. The same values are used, only the rows are halved.
3Histograms
Histogram = a graph that places the observed values into ordered intervals, called bins, along the horizontal axis. Each bar stands for one bin. The height of a bar is the frequency or relative frequency of the values in that bin. A histogram can also be drawn with the bins on the vertical axis and the bars running sideways.
Build one in four steps:
- Choose the bins. They must be the same width, cover every value and not overlap.
- Decide where boundary values go. A common choice is that a bin includes its lower end and leaves out its upper end. Then 10 minutes belongs to the bin from 10 up to but not including 20. State the rule you use.
- Count the values in each bin. The counts must add to .
- Draw bars that touch. Each bar is as wide as its bin. The horizontal axis is a number line, so there are no gaps unless a bin is empty.
Here are the counts for bins 10 minutes wide:
| Bin (minutes) | 0 to <10 | 10 to <20 | 20 to <30 | 30 to <40 | 40 to <50 | 50 to <60 |
|---|---|---|---|---|---|---|
| Frequency | 8 | 12 | 5 | 3 | 1 | 1 |
Check: .
A relative frequency histogram has the same shape, but the height is the proportion of the data in each bin. The first bar has height and the second . The heights add to 1. Use it when you want to compare data sets of different sizes.
4The bin width changes the picture
The same data can give different-looking histograms. Figure 2 shows the 30 waiting times twice.
- Bins 10 minutes wide (left): the first two bars are 8 and 12. The right tail falls away steadily. Little detail is visible.
- Bins 5 minutes wide (right): the counts are 1, 7, 7, 5, 3, 2, 1, 2, 0, 1, 0, 1. The peak is spread across the bins from 5 to 15. Empty bins appear at 40 to 45 and at 50 to 55, which the wider bins hid.
Check the narrower bins: .
Neither histogram is wrong. Altering the bin width can change the appearance of the histogram.
- Bins that are too wide hide the structure (peaks, gaps).
- Bins that are too narrow break the data into so many small bars that the overall pattern is lost.
A good histogram uses enough bins to show the pattern and few enough that the bars are not mostly 0 or 1. Do not claim a feature from a histogram that appears only at one bin width.
5Choosing between the graphs
| Graph | Shows every value | Good for | Weakness |
|---|---|---|---|
| Dotplot | Yes | Small and moderate data sets | Crowded when there are very many values |
| Stem-and-leaf plot | Yes | Small data sets, reading exact values | Needs a sensible choice of stems |
| Histogram | No (grouped in bins) | Large data sets | Hides individual values, and depends on the bins |
For 30 values, any of the three works. For 3,000 values, only a histogram is practical.
In all three graphs, the vertical position of a dot or bar means frequency, and the horizontal axis is the number line of the variable. A histogram looks like a bar chart (Topic 1.4), but the bars touch because the axis is a number line, and the horizontal axis is a quantitative variable, not categories.
6Reading values from a graph
Questions often ask you to read from a graph and count. Take the 5-minute histogram in Figure 2.
- How many patients waited less than 15 minutes? Add the bins from 0 up to but not including 15: patients.
- What proportion waited 30 minutes or more? The bins from 30 on have patients, so the proportion is .
Check against the dotplot: the values 31, 35, 38, 45 and 58 are five patients. They agree.
State the proportion with its group: "Of the 30 sampled patients, about 0.167 (17%) waited 30 minutes or more."
A histogram bar tells you how many values fall in the bin, not which values. From the histogram alone you cannot say how many patients waited exactly 8 minutes. A dotplot or stem-and-leaf plot would tell you that.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.