Lesson 1.7 · Exploring One-Variable Data
Comparing distributions
Most interesting statistical questions are comparisons. Does a new fertilizer produce taller plants? Do students who sleep more get better grades? Are commute times longer on one route than another? This lesson shows how to display two or more distributions together and how to write a comparison that would earn full credit on the AP exam.
Displays for comparing groups
To compare distributions of a quantitative variable across groups, put the displays on the same scale so your eye can compare them directly.
- Parallel box plots (side-by-side box plots) stack one box plot per group over a common number line. They are the quickest way to compare centers, spreads and outliers, even for many groups at once.
- Back-to-back stemplots share one column of stems, with one group's leaves on the right and the other's on the left. They keep every data value and show shape well for small data sets.
- Dot plots or histograms stacked one above the other on the same horizontal scale show shape in more detail. Use relative frequency histograms if the groups have different sizes.
Writing a comparison
Compare, don't just list
A complete comparison addresses shape, outliers, center and spread, in context, using comparative language: "greater than," "less than," "about the same as," "more variable than."
Listing two sets of numbers ("Group A's median is 42. Group B's median is 24.5.") is not a comparison. Say which is larger: "Group A's median is greater than Group B's."
Choose measures to match the shapes. If either distribution is skewed or has outliers, compare medians and IQRs. If both are roughly symmetric with no outliers, you may compare means and standard deviations. Use the same measures for both groups.
Worked example: Parallel box plots
A teacher timed students solving a logic puzzle. One group had practiced similar puzzles the day before; the other had not.
Compare the distributions of solving time for the two groups.
- Shape. The practiced group's distribution is roughly symmetric. The no-practice group's distribution appears skewed right: its right whisker is longer and it has a high outlier.
- Outliers. The no-practice group has one high outlier at about seconds. The practiced group has no outliers.
- Center. The median time for the practiced group ( seconds) is less than the median for the no-practice group ( seconds).
- Spread. The no-practice group's times are more variable: its IQR is seconds, compared with seconds for the practiced group. Its range is also larger.
Reading across the plots adds one more insight: for the practiced group ( seconds) is less than the no-practice median ( seconds). So about of the practiced students finished faster than the median unpracticed student.
Back-to-back stemplots
Worked example: Exercise by age group
Twelve adults aged – (Group A) and twelve adults aged – (Group B) recorded their minutes of exercise on one day.
| Group B leaves | Stem | Group A leaves |
|---|---|---|
| 8 | 0 | |
| 8 5 2 | 1 | |
| 7 5 4 0 | 2 | 2 8 |
| 3 1 | 3 | 1 5 8 |
| 0 | 4 | 0 4 5 7 |
| 5 | 2 8 | |
| 2 | 6 | 5 |
Key: means minutes for Group B (left) and minutes for Group A (right).
Compare the two distributions.
Group B's leaves read outward from the stem, so its values are . Group A's are .
- Center. The median for Group A is minutes, greater than Group B's median of minutes. The younger adults typically exercised about minutes longer.
- Spread. The spreads are similar. Group A's IQR is minutes and Group B's is minutes.
- Shape and outliers. Group A is roughly symmetric. Apart from one value, Group B is also fairly symmetric, but its minutes is an outlier: B's upper fence is .
Since Group B has an outlier, medians and IQRs are the right measures for this comparison.
Worked example: Is a difference meaningful?
Two classes took the same quiz. Class 1's median was points and Class 2's median was points, and each class's scores ranged over about points with similar IQRs of about points. A student claims Class 1 "did much better." Evaluate the claim.
The difference in medians ( point) is small compared with the variability within each class (IQRs of about points). The two distributions overlap almost completely, so the data don't show a meaningful difference. A difference in centers is only impressive when it is large compared with the spread.
Common mistake
Two common ways to lose credit on a comparison: (1) describing each group separately without ever comparing them, and (2) leaving out context. "The median of A is greater" earns less than "The median exercise time for younger adults (42 minutes) is greater than for older adults (24.5 minutes)."
Tip
Read across parallel box plots, not just within them. Where does one group's median fall compared to the other group's quartiles? If one group's median is beyond the other group's , at least half of one group exceeds three quarters of the other.
Practice
The next three problems use these box plots of one-way commute times for a driver who takes Route X on some days and Route Y on others.
How many minutes greater is the median commute on Route Y than on Route X?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
About what percent of the Route Y commutes took longer than the median Route X commute?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which statement is best supported by the box plots?
The dot plots show quiz scores for two classes of students each. How many points greater is Class A's mean score than Class B's?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A researcher compares household incomes in two counties. Both distributions are strongly skewed right with several high outliers. Which pair of statistics is most appropriate for comparing them?
The back-to-back stemplot shows the number of books read in a year by members of Book Club P and members of Book Club Q. What is the median for Book Club Q?
| Club P leaves | Stem | Club Q leaves |
|---|---|---|
| 9 7 4 | 1 | |
| 8 5 1 1 | 2 | 6 |
| 3 | 3 | 0 5 8 |
| 0 | 4 | 1 2 7 |
| 5 | 3 4 |
Key: means books for Club P and books for Club Q.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which sentence is a proper comparison of center for two groups of test scores?