All AP Courses AP StatisticsAP Stats

Unit 1 · Topic 1.5 · about 20 minutes

AP Statistics 1.5: Graphical Representations for One Quantitative Variable

Build a dotplot, a stem-and-leaf plot and a histogram by hand, and choose bins that show the data honestly.

Unit 1: 20 to 30% of the multiple-choice section

What you'll be able to do

  • Draw a dotplot, a stem-and-leaf plot and a histogram for one quantitative variable, keeping the values in order on a number line.

Key vocabulary

TermWhat it meansThe exam trap
DotplotA display with one dot per observation placed above a number line at its value, with dots stacking when values repeat or nearly repeat.With 5,000 website visits a dotplot turns into an unreadable smear, so it suits small data sets, not huge ones.
Stem-and-leaf plotA display that splits each value into a stem, the leading digit or digits, and a leaf, usually the next single digit, with stems and leaves both in order.Without a key, a reader cannot tell whether 3 | 2 means 32 minutes or 3.2 minutes.
Stem and leafIn the row 2 | 0 3 3 8 with a key of 1 | 5 = 15, the stem 2 is the tens digit and each leaf is a ones digit, giving 20, 23, 23 and 28.Reading the stem as a value of its own turns that row into 2, 0, 3, 3 and 8, five values instead of four.
HistogramA display that sorts values into equal-width intervals along the horizontal axis, with touching bars whose heights give the frequency or relative frequency in each interval.Gaps between the bars or bins of unequal width make it a bar chart drawn by mistake, because the bins are pieces of one number line.
BinsThe equal-width intervals a histogram groups values into; by the usual convention a value on a boundary goes in the bin that starts there.Changing the bin width can change the shape you see: 20-minute bins make the 33 drive times one lump, while 5-minute bins show two groups.

Predict first

A math teacher asked the 33 teachers at her school how many minutes their drive to school takes. She makes two histograms of the same 33 times, one with bins 20 minutes wide and one with bins 5 minutes wide. What will be different?

Displays that keep the number line

A quantitative variable takes numerical values, so its graphs keep those values in their natural order on a number line, smallest to largest. That is the big difference from a bar chart, where you can put the categories in any order. Each display in this lesson shows how often each value, or each interval of values, occurs: its frequency or its relative frequency.

The first three displays all use the same data, the teachers' drive times in minutes.

Dotplots

A dotplot puts one dot above a number line for each observation, at that observation's value. (It can also run up a vertical axis, with the dots beside it.) When values repeat or nearly repeat, the dots stack. You can read every value back off a dotplot, which makes it a strong choice for small data sets.

Drive times of 33 teachers

1020304050Drive time to school (minutes)

Each dot is one teacher. One group lives within about 15 minutes of school, and a larger group drives 25 minutes or more.

Stem-and-leaf plots

A stem-and-leaf plot splits each value into a stem, the leading digit or digits, and a leaf, usually the single digit after the stem. For the drive times, the tens digit is the stem and the ones digit is the leaf, so 32 minutes becomes stem 3, leaf 2. The stems run down the side in order, and the leaves on each row are written in order too.

Like a dotplot, a stemplot keeps every value. It also works as a sideways histogram with bins 10 wide. Always include a key, so a reader knows that 3 | 2 means 32 minutes and not 3.2.

067889100122342689301223455678840135752

Drive times of 33 teachers. Key: 3 | 2 means 32 minutes.

Histograms

A histogram sorts the values into intervals of equal width, called bins, along the horizontal axis. Each bar covers one bin, and its height is the number of values in that bin, or the proportion of values in a relative frequency histogram. The bars touch, because the bins cover the number line with no space between them. A histogram can also be turned sideways, with the bins up the vertical axis and the bars running horizontally.

Settle the boundaries before you count. The usual convention puts a value that falls exactly on a boundary into the bin that starts there, so a 40-minute drive counts in the 40 to 45 bin, not the 35 to 40 bin.

A histogram gives up the individual values, which is why it handles large data sets where a dotplot would turn into a blur. The price is that the bin width changes the picture. Here are the same 33 drive times twice.

Bins 20 minutes wide

051015Number of teachers0 to 20: 1220 to 40: 1540 to 60: 60204060Drive time to school (minutes)

Bins 5 minutes wide

0246Number of teachers5 to 10: 510 to 15: 715 to 20: 020 to 25: 025 to 30: 330 to 35: 635 to 40: 640 to 45: 345 to 50: 250 to 55: 1510152025303540455055Drive time to school (minutes)

With wide bins the two groups merge into one lump. Narrow bins show that no teacher drives between 15 and 25 minutes.

There is no single correct bin width. Too wide, and real features vanish into one bar, as above. Too narrow, and most bars hold one or two values, so the shape breaks up into noise. Try a few widths and keep one that shows the pattern without inventing one.

Worked exampleBuilding a histogram from raw data

At the end of a school day, 24 students checked how much battery their phones had left, in percent: 12, 18, 23, 27, 31, 34, 36, 40, 41, 42, 45, 47, 48, 51, 53, 55, 58, 60, 64, 67, 71, 76, 83, 91. Make a histogram with bins 20 percentage points wide.

  1. Set the bins. Start at 0: 0 to 20, 20 to 40, 40 to 60, 60 to 80 and 80 to 100. A value on a boundary goes into the bin that starts there, so 40 belongs to 40 to 60 and 60 belongs to 60 to 80.

  2. Count each bin. 0 to 20: 2 phones. 20 to 40: 5. 40 to 60: 10. 60 to 80: 5. 80 to 100: 2. The counts add to 24, so every phone was counted exactly once.

  3. Draw the bars. Put battery percent on the horizontal axis and the number of phones on the vertical axis. Each bar spans the full width of its bin, touches its neighbors, and is as tall as its count.

  4. Label it. Name the variable and its units under the horizontal axis, and say what the bar heights count beside the vertical axis.

Answer.

Bars of heights 2, 5, 10, 5 and 2, drawn below. The battery levels pile up in the middle, around 40% to 60%, and thin out evenly on both sides.

Battery left at the end of the day, 24 phones

0510Number of phones0 to 20: 220 to 40: 540 to 60: 1060 to 80: 580 to 100: 2020406080100Battery left (percent)

Lab

Shape, Center, Spread

Switch the same data between a dotplot and a histogram. Notice what each one makes easy to see, and what each one hides.

Open the full Shape, Center, Spread lab

Check your understanding

1

A stem-and-leaf plot of the points a basketball player scored in each game has the row 2 | 0 3 3 8. Its key says 1 | 5 means 15 points. What does this row show?

2

Here are the heights, in centimeters, of 12 sunflowers: 142, 150, 155, 158, 160, 161, 165, 170, 170, 174, 180, 189. In a histogram with bins 10 centimeters wide starting at 140, how tall is the bar for the 160 to 170 bin? Each bin includes its left endpoint.

3

A website records the load time, in seconds, for each of 5,000 visits. Which display gives the clearest picture of the distribution of load times?

4

With bins 20 points wide, a histogram of 200 test scores shows one hump. With bins 5 points wide, it shows two peaks, and a dotplot of the same scores shows the same two groups. What is the best explanation?

5

Twenty-four students recorded how much battery their phones had left, in percent: 12, 18, 23, 27, 31, 34, 36, 40, 41, 42, 45, 47, 48, 51, 53, 55, 58, 60, 64, 67, 71, 76, 83, 91. In a relative frequency histogram with bins 20 points wide starting at 0, how tall is the bar for the 40 to 60 bin? Each bin includes its left endpoint.

Exam strategy for this topic

  • Section I, Multiple Choice: 42 questions in 90 minutes.
  • Section II, Free Response: 4 questions in 90 minutes.
  • A graphing calculator with statistical capabilities is expected on both sections.

Questions students ask

Which bin does a value on a boundary go in?

The usual convention puts it in the bin that starts there. A 40-minute drive goes in the 40 to 45 bin, not the 35 to 40 bin.

What is the right bin width?

There is no single correct one. Bins that are too wide merge real features into one bar, and bins that are too narrow hold one or two values each, so the shape breaks into noise. Try a few widths and keep one that shows the pattern without inventing one.

How do I check that I built my histogram correctly?

Add the bar heights. For the 24 phone batteries with bins 20 points wide, the counts 2, 5, 10, 5 and 2 add to 24, so every phone was counted exactly once.

What does a relative frequency histogram show on the vertical axis?

The proportion of all the values in each bin. The 40 to 60 bin holds 10 of the 24 battery readings, so its bar is 1024≈0.42 tall.

Can a histogram run sideways?

Yes. The bins can go up the vertical axis with the bars running horizontally. A stem-and-leaf plot with stems by tens is a lot like a sideways histogram with bins 10 wide, except it keeps every value.

Course alignment, for teachers

AP Statistics topic 1.5, Unit 1: Exploring One-Variable Data and Collecting Data.

  • Skill 3.A: Construct tabular and graphical representations of data and distributions.