AP Statistics · Topic 1.9 · Reading guide, about 6 min

Side-by-side data sets and standardized scores

Compare groups with parallel plots and summaries, and use z-scores to compare values from different distributions.

In one minute

Many questions in statistics are comparisons: do two bus routes have different wait times, or did one class score higher than another? To answer, you put the data sets side by side and describe center, spread, shape and unusual features for both, using words that compare. A second tool, the z-score, lets you compare a single value against its own group so that you can say who did better relative to peers, even when the scales differ.

This topic builds on the one-variable summaries from 1.5 through 1.8. Nothing new is calculated except the z-score; the new skill is writing a comparison that sounds like a statistician wrote it.

Key terms

Parallel boxplots
Two or more boxplots drawn on the same number line, one per group, so medians, quartiles and spread can be compared at a glance.
Back-to-back stemplot
A stemplot that shares one column of stems, with one group's leaves on the left and the other group's on the right.
Comparative language
Statements that name both groups and use words such as higher, more spread out or less variable, tied to a number and a context.
z-score
The number of standard deviations a value lies from the mean: z=x−μσz=\frac{x-\mu}{\sigma}, or z=x−xˉsz=\frac{x-\bar{x}}{s} when only sample statistics are known.
Standardized value
Another name for a z-score. It has no units, so values measured in different units can be compared.
Relative position
Where a value sits within its own distribution, such as above average by one standard deviation.
Outlier rule
A value is an outlier if it lies more than 1.5 IQRs beyond a quartile, or more than 2 standard deviations from the mean.
Cluster and gap
A cluster is a bunch of values close together; a gap is an empty stretch between them.

Describing two distributions at once

Start by choosing a display. Dotplots and histograms show shape, clusters and gaps in detail. Back-to-back stemplots work for small data sets. Parallel boxplots show skew only roughly and hide clusters, gaps and the number of peaks, but they make medians and spreads easy to line up, so they are the best choice when you have three or four groups.

Then write the comparison in four parts. Center: give both medians (or both means) and say which is larger, by how much. Spread: compare the IQRs, ranges or standard deviations. Shape: note skew, symmetry, clusters or gaps in each group. Unusual features: name any outliers and say which group they belong to. Every sentence needs the context, such as minutes of waiting, not just numbers.

Use a comparing word every time. Writing "Route A has a median of 14 minutes and an IQR of 6" describes one group. Writing "Route A's median wait is 4 minutes shorter than Route B's, and its waits are less spread out" compares. Also choose the matching pair of statistics: the median and IQR resist outliers, while the mean and standard deviation are pulled by them. If one group is strongly skewed or has outliers, lean on the median and IQR.

A sentence frame for each feature of a comparison
FeatureWhat to compareExample wording
CenterMedians or meansGroup A's median is 5 points higher than Group B's.
SpreadIQR, range or standard deviationGroup B's scores vary more, with an IQR twice as large.
ShapeSkew, symmetry, clusters, gapsGroup A is skewed right; Group B is roughly symmetric.
UnusualOutliers, gapsOnly Group B has an outlier, a very long wait.

Standardized scores

Suppose you scored 84 on one test and a friend scored 88 on another. Raw scores cannot tell you who did better, because the tests may be harder or easier and spread differently. A z-score fixes this by measuring distance from the mean in units of standard deviation. A value above the mean has a positive z-score, a value below has a negative z-score, and a value at the mean has z=0z=0.

The size of zz tells you how unusual a value is. Most values in a mound-shaped distribution fall within 2 standard deviations of the mean, so a z-score above 22 or below −2-2 is rare. The sign tells the direction and the size tells the distance. You can also run the formula backward: x=μ+zσx=\mu+z\sigma recovers the original value from a z-score.

Use the parameters μ\mu and σ\sigma when they are given for a population. When only sample data are available, the sample mean xˉ\bar{x} and sample standard deviation ss stand in for them. Standardizing changes the center to 0 and the spread to 1 but does not change the shape of a distribution.

Worked example: who did better?

The numbers here are invented. Maya scored 84 on a chemistry test where the class mean was 72 and the standard deviation was 8. Jonas scored 88 on a history test where the class mean was 80 and the standard deviation was 10. Who did better relative to their own class?

Step 1: Maya's z-score is z=84−728=128=1.5z=\frac{84-72}{8}=\frac{12}{8}=1.5. Step 2: Jonas's z-score is z=88−8010=810=0.8z=\frac{88-80}{10}=\frac{8}{10}=0.8. Step 3: compare. Maya is 1.5 standard deviations above her class mean and Jonas is 0.8 standard deviations above his. Maya did better relative to her classmates, even though her raw score is lower.

Now run it backward. A third student's chemistry z-score is −1.25-1.25. Her score is x=72+(−1.25)(8)=72−10=62x=72+(-1.25)(8)=72-10=62. A score of 62 is 10 points below the mean, which is 10÷8=1.2510\div 8=1.25 standard deviations below it, so the answer checks.

Finally, apply the 2-standard-deviation outlier rule from 1.7. In chemistry, 2 standard deviations is 2×8=162\times 8=16 points, so any score below 72−16=5672-16=56 or above 72+16=8872+16=88 would count as an outlier. Maya's 84 is inside that range.

How it connects

  • Back to 1.8: five-number summaries and boxplots supply the medians and quartiles you compare in parallel boxplots.
  • Back to 1.7: the mean, standard deviation and outlier rules are the inputs to z-scores and to the outlier sentence of a comparison.
  • Forward to 2.11: z-scores become the standard way to read bell curves and tables.
  • Forward to 4.10: two-sample tests formalize the question of whether two group means truly differ.

Common mistakes

  • Describing each group separately. A comparison needs both groups in one sentence with a comparing word such as higher or more spread out.
  • Dropping the context. Say minutes, points or dollars, and name the groups, not only numbers.
  • Judging by the raw score. A bigger raw score is not a better result unless the distributions match; compare z-scores.
  • Mixing up the sign. A value below the mean has a negative z-score; do not drop the minus sign when you interpret it.
  • Comparing means when outliers are present. Prefer the median and IQR, which outliers barely affect.

How it shows up on the exam

  • You are given two or more plots or summary tables and asked to compare the groups in context, covering center, spread, shape and unusual features.
  • A scenario gives a score, mean and standard deviation for two settings and asks which result is stronger relative to its group.
  • You find an unknown value from a z-score or decide whether a value is an outlier.

Check yourself

  1. What four features should every comparison of two distributions mention?
  2. If one group's box is much longer than the other's, what does that say about spread?
  3. What does a z-score of −0.4-0.4 tell you about a value?
  4. Why can a z-score compare a height to a weight when the raw numbers cannot be compared?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.