Tutorials › Introduction to Statistics › Building a Stemplot Without Losing Values

Graphs for Quantitative Data · Tutorial 132 of 996

Building a Stemplot Without Losing Values

Learn a reliable way to organize two-digit temperatures into a stemplot while keeping every original value recoverable.

Beginner 9 min read

What You'll Learn

  • Identify the stem and leaf for each two-digit temperature.
  • Arrange stems and their leaves in numerical order.
  • Preserve repeated measurements as repeated leaves.
  • Include empty stems when needed to keep the scale clear.
  • Write a key that specifies the units and place values.
  • Check that every observation appears exactly once and can be reconstructed.

Why a Stemplot Preserves the Data

A graph can make a collection of measurements easier to scan, but some displays combine values into groups. A stemplot organizes quantitative observations while retaining each individual value: the first part of each value forms a stem, and the remaining part forms a leaf. For two-digit whole-number temperatures, the tens digit is the stem and the ones digit is the leaf.

For example, the temperature \(54^\circ\text{F}\) is represented by stem 5 and leaf 4. The bar between the stem and leaf is a divider, not a decimal point. Once a reader knows the key, the original temperature can be reconstructed. The leaves are also arranged in order, making the display orderly without changing or discarding the measurements.

Definition: A stemplot is a display of quantitative data in which each observation is split into a stem and a leaf. For a two-digit whole-number measurement, the tens digit is the stem and the ones digit is the leaf. Each observation contributes one leaf, including observations that have the same value. A key states how to combine a stem and a leaf and gives the measurement units.

A stemplot is useful when it is important to keep the individual measurements visible, rather than displaying only totals in intervals. The construction in this tutorial is for two-digit whole-number temperatures. Keep the measurement units and precision consistent: a list that mixes Fahrenheit and Celsius, or whole degrees and tenths of a degree, cannot be represented unambiguously by the same stem-and-leaf rule without first clarifying how the values are recorded.

A Consistent Construction Method

Start with the raw observations and decide what each digit will mean. For two-digit temperatures, use the tens digit as the stem and the ones digit as the leaf. Then list the stems in increasing order and place each observation's leaf on the row for its stem. Within every row, sort the leaves from smallest to largest. Do not remove repeats: two equal observations produce two identical leaves.

The stems ordinarily run from the smallest observed stem to the largest. If no observation has a stem between those endpoints, show that stem with no leaves. Keeping the row makes the numerical scale continuous and makes the absence of observations in that row explicit. Finish with a key, then count the leaves and compare that count with the number of raw observations.

1
Fix the place-value rule.
For a two-digit whole-number temperature, the tens digit is the stem and the ones digit is the leaf.
2
Set up the stems.
Write the stems in numerical order, from the smallest observed tens digit to the largest. Include intermediate stems even if a row will have no leaves.
3
Place every observation.
Put each one's digit on the row matching its tens digit. Keep a separate leaf for every observation, including repeats.
4
Order and verify.
Sort leaves within each row, count them, and check that their total equals the number of raw observations.
5
Add a key.
Give an example such as \(5|4=54^\circ\text{F}\), so the place values and units are unmistakable.

Worked Example: Building a Stemplot from Raw Readings

Suppose a weather station records these 11 hypothetical afternoon temperatures, in degrees Fahrenheit:

\(54,\ 61,\ 57,\ 62,\ 58,\ 64,\ 51,\ 63,\ 59,\ 60,\ 55\)

All readings are two-digit whole numbers in the same units, so the tens digit can serve as the stem and the ones digit as the leaf. The readings in the 50s have leaves 4, 7, 8, 1, 9, and 5. Sorting those leaves gives 1, 4, 5, 7, 8, 9. The readings in the 60s have leaves 1, 2, 4, 3, and 0; in order, those leaves are 0, 1, 2, 3, 4.

The resulting stemplot is:

Stem | Leaves
5 | 1 4 5 7 8 9
6 | 0 1 2 3 4

Key: \(5|4=54^\circ\text{F}\). The row for stem 5 represents 51, 54, 55, 57, 58, and 59 degrees Fahrenheit; the row for stem 6 represents 60, 61, 62, 63, and 64 degrees Fahrenheit. The first row has six leaves and the second has five, for \(6+5=11\) leaves altogether. That matches the 11 readings supplied.

Repeats Are Separate Observations

A stemplot represents observations, not just different values. If the same temperature occurs several times, each occurrence needs its own leaf. For instance, three readings of \(72^\circ\text{C}\) contribute three 2s on the stem-7 row. Removing duplicate leaves would change the data: it would conceal how many times that temperature was recorded.

Worked Example: Keeping Repeated Temperatures

A group records these 12 hypothetical temperatures in degrees Celsius:

\(72,\ 68,\ 71,\ 72,\ 65,\ 68,\ 70,\ 74,\ 72,\ 69,\ 65,\ 73\)

For the 60s, the leaves are 8, 5, 8, 9, and 5. Ordered, they are 5, 5, 8, 8, 9. For the 70s, the leaves are 2, 1, 2, 0, 2, 4, and 3. Ordered, they are 0, 1, 2, 2, 2, 3, 4. No observation is in the 50s, but stem 5 is included because it lies between the smallest and largest stems.

Stem | Leaves
5 |
6 | 5 5 8 8 9
7 | 0 1 2 2 2 3 4

Key: \(6|5=65^\circ\text{C}\). The blank stem-5 row means there are no recorded temperatures from 50 through 59 degrees Celsius. The two 5s and two 8s on the stem-6 row preserve the two readings of 65 and the two readings of 68. The three 2s on the stem-7 row preserve the three readings of 72. The leaf count is \(0+5+7=12\), equal to the number of readings.

Why the Key and Place Values Matter

A stemplot is only readable if the key establishes how to interpret its marks. The line \(5|4\) could mean 54 degrees, 5.4 degrees, or something else if no key is given. A key both removes that ambiguity and names the units. With the rule for two-digit whole numbers, the stem gives the tens and the leaf gives the ones.

The reconstruction rule can be written precisely. If \(s\) is the stem and \(l\) is the leaf, the recorded two-digit value is \(10s+l\). For example, stem 6 and leaf 3 give \(10(6)+3=63\). This follows from place value: six tens and three ones make 63. Therefore, when every observation is assigned its actual tens and ones digits and a key states the rule, the display retains the original values.

Justification: Every two-digit whole number \(x\) has a unique tens digit \(s\) and ones digit \(l\), so \(x=10s+l\), with \(0\leq l\leq9\). Assigning that observation to stem \(s\) with leaf \(l\) allows the value to be recovered exactly. If each observation contributes one leaf, repeated values remain repeated and the complete collection of recorded measurements is preserved.

Sorting leaves changes only their visual order, not their values or their number. A useful final check has two parts: each leaf must match the correct stem according to the raw measurement, and the total number of leaves must equal the total number of observations. The key makes it possible to verify that a leaf such as 3 on stem 6 means 63, rather than an adjacent value.

Worked Example: Showing the Full Stem Range

Consider these eight hypothetical temperatures in degrees Fahrenheit:

\(43,\ 45,\ 48,\ 61,\ 62,\ 67,\ 83,\ 85\)

The observed stems are 4, 6, and 8. To show the full scale from the smallest to largest observed stem, include stems 5 and 7 even though neither has any observations. The leaves for stem 4 are 3, 5, and 8. The leaves for stem 6 are 1, 2, and 7. The leaves for stem 8 are 3 and 5.

Stem | Leaves
4 | 3 5 8
5 |
6 | 1 2 7
7 |
8 | 3 5

Key: \(4|3=43^\circ\text{F}\). The nonempty rows reconstruct the original readings: 43, 45, 48; 61, 62, 67; and 83, 85 degrees Fahrenheit. There are \(3+0+3+0+2=8\) leaves, matching the eight observations. The empty rows indicate that no readings from 50 through 59 or from 70 through 79 degrees Fahrenheit appear in this data set.

Common Mistakes and a Final Check

The most common construction errors are small but consequential. A misplaced leaf changes a value; a missing repeated leaf changes the frequency of a value; and a missing or vague key can make the whole display impossible to interpret. Before presenting a stemplot, compare the rows with the raw data rather than relying only on how the finished display looks.

  • Dropping repeats. Wrong reasoning: “The value 72 is already shown, so another 2 is unnecessary.” Correction: every observation contributes a leaf, so three readings of 72 require three 2s on stem 7.
  • Sorting the data but not the leaves. Wrong reasoning: “The values are all present, so their order on the row does not matter.” Correction: leaves should be in increasing order within each stem so the display follows a consistent, readable format.
  • Leaving out intermediate stems. Wrong reasoning: “A row with no data has no purpose.” Correction: include empty stems between the smallest and largest stems to show the scale without skipping tens groups.
  • Omitting the key or units. Wrong reasoning: “Everyone knows what the divider means.” Correction: explicitly state an example reconstruction and the units, such as \(5|4=54^\circ\text{F}\).

A finished stemplot should let a reader recover each original measurement, including repeated measurements. If a reader cannot tell what \(6|3\) means, or if the number of leaves does not match the number of observations, the display needs correction before it is used.

Check Your Understanding

Use the place-value rule and the verification checks to answer these questions.

  1. For two-digit temperatures, what do the stem and leaf represent?
  2. Construct a stemplot for the hypothetical temperatures \(42,\ 47,\ 44,\ 51,\ 42,\ 49\) degrees Fahrenheit. Include a key and verify the number of leaves.
  3. Why should two readings of \(68^\circ\text{C}\) appear as two leaves rather than one?
  4. What does an empty intermediate stem communicate in a stemplot?
  5. If a key states \(7|2=72^\circ\text{F}\), what temperature is represented by \(6|9\), and how can you check your answer?