Tutorials › AP Statistics › Back-to-Back Stemplots Comparison

Comparing distributions · Tutorial 131 of 1000

Back-to-Back Stemplots Comparison

Use the shared stems and each group’s leaves to recover exact data values and make a precise comparison of two distributions.

Beginner 9 min read

What You'll Learn

  • Read a back-to-back stemplot using its key and shared stem column.
  • Decode values from the left and right sides, including repeated leaves.
  • Count observations and recover each group’s exact ordered data.
  • Compare groups using specific values and simple summaries.
  • Avoid common errors about leaf order, scale, and matched pairs.

Two Groups, One Shared Set of Stems

A back-to-back stemplot displays two groups on opposite sides of the same stem column. Like the displays in Comparing Two Dotplots, it helps you compare distributions. Unlike a dotplot, it also organizes the observations by place value: a stem gives the leading digit or digits, and each leaf gives a final digit. Most importantly, the display preserves the exact observations, so you can recover individual values rather than estimate them from intervals.

A back-to-back stemplot does not combine the groups into one data set. The left leaves belong to one group, the right leaves belong to the other, and the shared stems simply provide a common numerical scale. Always read the key before decoding values. For a two-digit variable, a key might say \(4|2=42\). For a decimal variable, it might say \(12|4=12.4\).

Definition: A back-to-back stemplot places the stems in a shared central column and displays one group’s leaves to the left and the other group’s leaves to the right. Each stem-and-leaf pair represents an exact observation, interpreted using the plot’s key.

Leaves on the right are usually listed in increasing order as you read from the stem outward. Leaves on the left are usually listed in decreasing order as you read from left to right, so the smallest leaf is nearest the stem. This convention keeps the values in order when you read outward from the stem on either side. The left-to-right order of printed leaves is not the order you use to decode a value: pair each leaf with its stem, then follow the key.

A Reliable Way to Read the Plot

Before comparing groups, check the title or labels to identify the variable, units, and group names. Then locate the key and confirm what one stem and one leaf represent. Scan the stems from smallest to largest. For each stem, pair every leaf on each side with that stem. A repeated leaf represents a repeated observation, not a printing mistake. Count each leaf once when finding the group’s sample size.

1
Check the labels and key.
Identify the variable, units, group on each side, and the exact value represented by a stem-and-leaf pair.
2
Decode each side separately.
Join each leaf to its stem using the key. Keep repeated leaves and do not transfer a leaf to the other group.
3
Read values in numerical order.
Move from the smallest stem to the largest. On the left, read leaves from nearest the stem outward; on the right, read them from nearest the stem outward as well.
4
Compare the groups on the question asked.
Use exact observations or summaries such as the median and range. Name both groups and state the variable and units.

A useful check is to count the leaves on each side and compare that count with the stated sample size, if one is provided. You can also write the decoded values in increasing order to verify that no leaf was skipped, duplicated, or assigned to the wrong group. As in Comparing Distributions Needs All Four Features, a complete comparison may consider shape, center, spread, and unusual features. A question about a particular exact value, however, should be answered directly rather than replaced by a general description.

Worked Example: Comparing Quiz Scores

Worked Example: Comparing Quiz Scores

A fictional teacher compares scores, in points, from two groups taking the same quiz. The key is \(4|2=42\) points.

Group A leavesStemGroup B leaves
9 6 241 3 7
8 4 4 152 6 9
7 361 5 8 9
273 7

Question: Recover the scores, find each group’s size and median, and compare the groups’ score ranges.

Decode Group A. At stem 4, the leaves \(9,6,2\) represent 49, 46, and 42. Continue by stem: Group A’s values in increasing order are 42, 46, 49, 51, 54, 54, 58, 63, 67, and 72. There are 10 leaves, so the group has 10 scores.

Decode Group B. Reading from the smallest stem to the largest gives 41, 43, 47, 52, 56, 59, 61, 65, 68, 69, 73, and 77. Group B has 12 scores.

Compare the medians. Group A has an even number of scores, so its median is the average of its fifth and sixth ordered values: \((54+54)/2=54\) points. Group B’s median is the average of its sixth and seventh values: \((59+61)/2=60\) points. Group B’s median is \(60-54=6\) points higher.

Compare the ranges. Group A’s range is \(72-42=30\) points. Group B’s range is \(77-41=36\) points, which is \(36-30=6\) points greater.

Conclude in context. “For these quiz scores, Group B has a median 6 points higher than Group A’s median, and its range is 6 points greater. The stemplot also shows that Group A has two scores of 54 points; each repeated leaf counts as a separate student’s score.”

The comparison uses the exact values encoded in the plot. A higher median describes the groups’ centers; it does not mean every score in Group B is higher than every score in Group A.

Repeated Leaves and Exact Values

Each leaf stands for one observation. Thus, two leaves with the same digit on the same stem indicate two observations with the same value. Keep both when you count the sample size or find an ordered position such as the median. A repeated value can occur on either side, and matching values across the two sides still belong to separate groups.

The sides can also make it easy to locate particular values. For example, if a question asks how many Group A observations are in the 50s, count Group A’s leaves beside stem 5. If it asks whether a particular value appears, look for its stem and then its leaf on the specified side. The key determines the exact value; the visual position of a leaf does not change its meaning.

Worked Example: Comparing Travel Times

Worked Example: Comparing Travel Times

A fictional community program records travel times, in minutes, for participants arriving from two areas. The key is \(1|4=14\) minutes.

Rural area leavesStemUrban area leaves
8 605 9
7 4 4 112 6 8 9
9 5 221 4 7
8 6 132 4 9

Question: How many participants are represented in each area, and which group has the greater median travel time?

Read the exact values. The Rural area observations are 6, 8, 11, 14, 14, 17, 22, 25, 29, 31, 36, and 38 minutes. There are 12 leaves. The Urban area observations are 5, 9, 12, 16, 18, 19, 21, 24, 27, 32, 34, and 39 minutes, also 12 leaves.

Find the medians. With 12 observations in each group, the median is the average of the sixth and seventh ordered values. Rural’s median is \((17+22)/2=19.5\) minutes. Urban’s median is \((19+21)/2=20\) minutes. Urban’s median is \(20-19.5=0.5\) minute greater.

Make the comparison. “The Urban area has a median travel time of 20 minutes, which is 0.5 minute greater than the Rural area’s median of 19.5 minutes. Both groups have 12 participants in the display.”

The medians are close, so the size of the difference matters: the plot does not support describing Urban’s median as dramatically higher. The groups also have observations on both sides of many shared stems; that is overlap in values, not evidence that the same participants are represented in both groups.

Reading a Different Place-Value Key

Not every key uses a ones digit as the leaf. A plot might show tenths, hundredths, or another place-value convention. Never assume that \(12|4\) means 124, 12.4, or 12 and 4 tenths without checking the key. The key defines the scale for the entire plot, including both groups.

When leaves are decimals, their order still follows the numerical order within the stem. Repeated decimal leaves still represent repeated exact measurements. The same comparison habits apply: decode each side, count its leaves, and then describe a feature that answers the question.

Worked Example: Comparing Seedling Heights

Worked Example: Comparing Seedling Heights

A fictional greenhouse records seedling heights in centimeters to the nearest tenth. The key is \(12|4=12.4\) cm.

Bench A leavesStemBench B leaves
—119
4 1123 8
6 0131 9
2 2145
8151 4

Question: List the heights in each group and compare their medians.

Decode Bench A. Its ordered heights are 12.1, 12.4, 13.0, 13.6, 14.2, 14.2, and 15.8 cm. The two leaves 2 at stem 14 represent two seedlings with a height of 14.2 cm.

Decode Bench B. Its ordered heights are 11.9, 12.3, 12.8, 13.1, 13.9, 14.5, 15.1, and 15.4 cm. Check, for example, that the right-side leaf 9 at stem 11 gives 11.9 cm under the stated key.

Compare the medians. Bench A has seven observations, so its fourth value, 13.6 cm, is the median. Bench B has eight observations, so its median is the average of the fourth and fifth values: \((13.1+13.9)/2=13.5\) cm. Bench A’s median is \(13.6-13.5=0.1\) cm greater.

Conclude in context. “The median seedling height is 13.6 cm on Bench A and 13.5 cm on Bench B, so Bench A’s median is 0.1 cm greater. The key shows that the leaf gives tenths of a centimeter.”

This example illustrates why the key is essential: the same digits can represent different numerical values under a different key. Report precision that the display supports—in this case, tenths of a centimeter.

Common Mistakes and AP Exam Tips

  • Ignoring the key. A stem and leaf do not have a universal scale. A full-credit response decodes values using the stated key and includes units when appropriate.
  • Reading left-side leaves in the wrong direction. The left leaves are commonly printed in descending order from left to right. Pair each leaf with its stem and list the resulting values in increasing order before calculating a median.
  • Dropping repeated leaves. Every leaf is an observation. Keep repeated values when counting data or finding the median.
  • Mixing up the groups. A leaf belongs to the side on which it appears. The common stem column does not make observations shared between groups.
  • Treating aligned positions as pairs. Opposite-side leaves are not matched observations. The plot compares two groups; it does not indicate that the first value on one side corresponds to the first value on the other.
  • Giving a vague comparison. Name the groups, variable, feature, and units. If you compare medians or ranges, show how you obtained them and state the difference in context.

A strong answer uses exact values where the plot allows them, but does not claim more than it shows. For instance, state that a group has a higher median when the calculated medians support that statement; do not conclude that all its observations are higher. As in Comparing Parallel Boxplots for Several Groups, be clear about which feature is being compared. A stemplot adds the advantage of preserving the individual values behind the comparison.

Key takeaway: Use the key to decode each group’s leaves alongside the shared stems. Count repeated leaves, keep the two sides separate, and compare exact observations or summaries with the variable and units stated.

Check Your Understanding

Use the key and the displayed sides to answer each question.

  1. A key says \(3|7=37\). What value does \(4|2\) represent?
  2. On one side of a plot, stem 5 has leaves 8, 3, and 1. List the three values in increasing order.
  3. A stem has three leaves on one side, including two identical leaves. How many observations does that side contribute at that stem?
  4. Two groups have leaves on opposite sides of the same stem. Does that mean the corresponding observations are matched pairs? Explain.
  5. A key says \(14|6=14.6\) cm. What value is represented by \(13|9\), and what place value does each leaf give?