All AP Courses AP StatisticsAP Stats

Unit 1 · Topic 1.9 · about 25 minutes

AP Statistics 1.9: Comparisons of the Distributions for One Quantitative Variable

Compare two or more distributions on center, variability, shape and unusual features in context, and use z-scores to compare individual values.

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

What you'll be able to do

  • Compare two or more distributions of the same quantitative variable using dotplots, stem-and-leaf plots and histograms.
  • Compare two or more distributions using boxplots and summary statistics.
  • Use graphs of two or more distributions to support or reject a claim in context.
  • Calculate a z-score from the population mean and standard deviation.
  • Use z-scores to compare where values sit within one distribution or across different distributions.

Key vocabulary

TermWhat it meansThe exam trap
Back-to-back stem-and-leaf plotTwo groups sharing one column of stems, with one group's leaves running right and the other's running left from the stem.Leaves on the left side are read from the stem outward, so the left-hand row 8 2 | 6 means 62 and 68, not 86 and 82.
Side-by-side boxplotsBoxplots of two or more groups drawn on one shared axis so their centers, spreads, outliers and skewness line up for comparison.Clusters and gaps cannot be compared this way, since a boxplot only draws five numbers.
Standardized scoreA measure of how many standard deviations a data value falls above or below the mean.Raw points above the mean are not a standardized score: Ava's 260 points and Ben's 8 points only become comparable after dividing by each exam's standard deviation.
z-scoreThe standardized score z=xi−μσ, positive above the mean, negative below it and 0 exactly at it; x‾ and s stand in when μ and σ are unknown.A negative z-score is not always bad: for a race time, below the mean means faster.

Predict first

Maya scored 88 on a chemistry test where the class mean was 80 and the standard deviation was 4. She scored 92 on an English test where the class mean was 85 and the standard deviation was 10. Compared with her classmates, on which test did she do better?

Comparing distributions

Comparing two distributions uses the same four features as describing one: shape, center, variability and unusual features. The difference is that every statement has to compare. "The median for seniors is 6.5 hours" describes one group. "The median for seniors, 6.5 hours, is lower than the median for freshmen, 8 hours" compares them.

A health class asked random samples of 25 freshmen and 25 seniors how many hours they slept on the last school night. Two dotplots drawn on the same scale make the comparison almost automatic.

Freshmen: hours of sleep on the last school night (25 students)

5678910Hours of sleep

Seniors: hours of sleep on the last school night (25 students)

5678910Hours of sleep

In context:

  • Center. The seniors slept less. Their median was 6.5 hours, compared with 8 hours for the freshmen.
  • Variability. The seniors' sleep was more spread out: an IQR of 1.5 hours against 1.25 for the freshmen, and a range of 4.25 hours against 3.5.
  • Shape. Both distributions are roughly symmetric and unimodal.
  • Unusual features. Neither group has outliers or gaps. The three lowest values, all under 5.5 hours, belong to seniors.

Dotplots, stem-and-leaf plots and histograms can show all of these features, clusters and gaps included. Boxplots show center, variability, outliers and skewness, but they cannot show clusters or gaps.

Back-to-back stem-and-leaf plots

A back-to-back stemplot puts two groups on one shared column of stems. One group's leaves run to the right of the stems, as usual. The other group's leaves run to the left, so they are read from the stem outward: the row 8 2 | 6 on the left side means 62 and 68. Here are the scores on the same quiz in two class periods.

Period 2StemPeriod 65588264798754172356986553210814686310924578

Quiz scores, 19 students per period. Key: 2 | 8 | 1 means 82 for Period 2 and 81 for Period 6.

Period 2's scores bunch in the 70s and 80s, while Period 6's spread all the way from the 50s to the high 90s. The centers are close, with medians of 82 and 79, but Period 6 is far more variable: its IQR is 23 points against 13 for Period 2.

Comparing with boxplots and summary statistics

Dani can drive to school on the highway (Route A) or on back roads (Route B). She timed the trip on 20 school days for each route. Side-by-side boxplots on one axis, plus the summary statistics, show the whole comparison.

Drive times to school, 20 days on each route

Route ARoute B1520253035Minutes
Summary statistics for the drive times, in minutes
RoutenMeanSDMinQ1MedianQ3Max
A (highway)2019.75.914161820.538
B (back roads)2024.11.82123242528

Worked exampleWhich route should Dani take?

Use the boxplots and the summary statistics to compare the two routes, then recommend one.

  1. Center. Route A is usually faster. Its median, 18 minutes, is 6 minutes less than Route B's median of 24, and its mean is lower too.

  2. Variability. Route A is far less predictable. Its IQR is 4.5 minutes against 2 for Route B, and its standard deviation is about three times as large.

  3. Shape and outliers. Route A is skewed right. Its upper fence is 20.5+1.5(4.5)=27.25, so the 31-minute and 38-minute days are outliers, most likely traffic jams. Route B is roughly symmetric with no outliers: its fences are 20 and 28, and every time falls inside them.

  4. Decide in context. On a typical day Route A saves about 6 minutes. But on 2 of its 20 days it took longer than Route B's slowest day. If being on time matters most, as on the morning of an exam, Route B's consistency is worth the extra minutes.

Answer.

Route A for speed on a typical day, Route B for reliability. A good comparison uses center, variability, shape and outliers together.

z-scores

So far the comparisons have been between whole distributions. Sometimes the question is about one value: how unusual is it, or which of two values from different distributions is more impressive? The tool is a standardized score, or z-score, which measures how many standard deviations a value falls above or below the mean:

z=xi−μσ

Here xi is the data value, μ is the population mean and σ is the population standard deviation. A positive z-score means the value is above the mean, a negative one means it is below, and z=0 is exactly at the mean. When the population mean and standard deviation are unknown, use the sample mean x‾ and sample standard deviation s in their place.

z-scores compare positions within one distribution, such as two students' results on the same test, and between distributions with different centers, spreads or even units.

Worked exampleWhich result is more impressive?

In a school's fitness test, the mile times of all ninth graders have mean μ=9.5 minutes and standard deviation σ=1.4 minutes. Their push-up counts have mean μ=24 and standard deviation σ=8. Jordan ran a 7.4-minute mile and did 40 push-ups. Compared with the other ninth graders, which result is more impressive?

  1. Mile. z=7.4−9.51.4=−1.5. Jordan's time is 1.5 standard deviations below the mean, and for a race time, below the mean means faster.

  2. Push-ups. z=40−248=2.0. Jordan's count is 2 standard deviations above the mean.

  3. Compare. Both results beat the average. The push-ups are 2 standard deviations better than the mean, while the mile is 1.5 standard deviations better, so the push-ups stand out more.

Answer.

The push-ups. Mind the direction: for a time, a negative z-score is the good side.

Check your understanding

1

The daily high temperatures in a city in July have mean μ=88 degrees Fahrenheit and standard deviation σ=4.5 degrees. On one day the high was 97 degrees. What is the z-score of that day's high?

2

Two friends took different college entrance exams. Ava scored 1,310 on an exam with mean 1,050 and standard deviation 200. Ben scored 29 on an exam with mean 21 and standard deviation 5. Who scored better relative to the other test takers?

3

Side-by-side boxplots of battery life, in hours, for two phone models are built from these five-number summaries. Model X: 8, 11, 13, 14, 16. Model Y: 9, 10, 12, 16, 22. Which statement is supported?

4

In a random sample of employees at a company, commute times have a mean of 32 minutes and a standard deviation of 8 minutes. One employee's commute has a z-score of −1.25. How long is that employee's commute?

5

Use the two dotplots of hours of sleep near the top of this lesson. Which claim do they support?

Practice

Practice until it is automatic

New numbers every time. Each one is checked the moment you answer, with the full working shown.

z-scores and relative position practice page

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

Why can't I just compare the raw scores from two different tests?

Because the tests are on different scales. Maya's 92 in English is a higher number than her 88 in chemistry, but the 88 is 2 standard deviations above its mean while the 92 is only 0.7 of a standard deviation above its own.

What if I only know the sample mean and standard deviation?

Use them. When μ and σ are unknown, put x‾ and s in their place in the z-score formula.

How do I get back to the data value from a z-score?

Multiply the z-score by the standard deviation and add the result to the mean. With a mean of 32 minutes, a standard deviation of 8 and z=−1.25, the commute is 32−1.25(8)=22 minutes.

If one group's center is higher, does every value in that group beat the other group?

No. The freshmen's median sleep was 8 hours against 6.5 for the seniors, but the dotplots overlap, and several seniors slept more than some freshmen.

Which graph should I use to compare groups?

Dotplots, stem-and-leaf plots and histograms show every feature, clusters and gaps included. Boxplots compare center, variability, outliers and skewness cleanly, but they hide clusters and gaps.

Course alignment, for teachers

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

  • Skill 3.B: Calculate summary statistics, relative positions of points within a distribution, and predicted responses.
  • Skill 4.A: Describe and compare tabular and graphical representations of data, as well as summary statistics.
  • Skill 4.B: Justify a claim based on statistical calculations and results.
  • Skill 4.C: Describe distributions and compare relative positions of points within a distribution.