ThisCalculator

Statistics

Back-to-Back Stem-and-Leaf Plot Calculator Guide

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Back-to-Back Stem-and-Leaf Plot Calculator Guide

A back-to-back stem-and-leaf plot calculator compares two sets of numerical data by placing their leaves on opposite sides of shared stems. Enter the values from both groups; the result is a compact display that preserves the original observations while making differences in their distributions easier to see.

Formula

A back-to-back stem-and-leaf plot is a display, not a single numerical statistic. Its construction follows this rule: for each observation, separate the value into a stem and a leaf, then place the leaf beside the matching stem on the side assigned to its group.

  • Observation: a value in either input list, expressed in the same units and at the same precision.
  • Stem: the leading digit or digits, according to the chosen scale.
  • Leaf: the final digit or digits not included in the stem.
  • n: the total number of observations, equal to count(a) + count(b).

The calculator block shows the total observation count, rather than drawing the plot, because its list inputs are not a reliable way to render a structured, sorted display with a key. A full plot requires the software to sort the observations, choose a stem scale, and format the leaves on opposite sides. The formula for the block’s output is n = count(a) + count(b).

Worked Example

With the defaults, Group A contains the single observation 12 and Group B contains the single observation 15.

  1. Count the values in Group A: count(12) = 1.
  2. Count the values in Group B: count(15) = 1.
  3. Add the two counts: n = 1 + 1 = 2 observations.

The calculator’s result is 2 observations. A corresponding display, using the tens digit as the stem and ones digit as the leaf, would be:

Group A   Stem   Group B
   2       1       5

Key: 1 | 2 means 12

Leaves on the left are commonly read from the stem outward, so this small example shows the value 12 on the left and 15 on the right. Display conventions can vary; the key and labels should make the intended reading clear.

How a Back-to-Back Plot Works

A stem-and-leaf plot divides each number into two parts. For whole numbers from 10 to 99, a simple choice is to use the tens digit as the stem and the ones digit as the leaf. The stem 4 with leaf 7 represents 47. In a back-to-back plot, both data sets use the same stems, but one group’s leaves appear to the left and the other group’s to the right.

For example, suppose two groups have these scores:

  • Group A: 21, 23, 25, 32, 34, 38
  • Group B: 22, 24, 24, 31, 35, 39

With tens as stems and ones as leaves, the display can be written as:

Group A   Stem   Group B
5 3 1      2      2 4 4
8 4        3      1 5 9

Key: 2 | 1 means 21

The left-side leaves are arranged in descending order as you move toward the stem; the right-side leaves are arranged in ascending order. This convention makes the two sides mirror one another. Some teaching materials use a different left-side order, so always check the key or instructions.

When to Use One

This display is useful when you want to compare two modest-sized data sets without hiding the individual values. It can show where values cluster, how widely they spread, whether one group tends to have higher observations, and whether either group has gaps or unusual values. Because the original observations remain visible, it is possible to inspect exact scores as well as the overall pattern.

It is especially suitable for integer-valued measurements or values recorded to a consistent precision. For example, two classes’ quiz scores, daily counts, or a small set of measured lengths can be compared if both groups use the same scale. A stem-and-leaf plot is less practical for a very large data set: long rows of leaves become hard to read, and a histogram or another summary may be clearer.

Choosing Stems and Reading the Shape

The stem unit determines how much detail the plot retains. For two-digit whole numbers, tens may be natural stems. For values such as 4.2, 4.5, and 5.1, one possible key is 4 | 2 = 4.2, with tenths as leaves. State the key explicitly; without it, readers may not know whether a leaf represents ones, tenths, or another place value.

Both groups must use identical stems and the same rounding or precision. Include empty stems when needed to preserve the numerical scale. Then compare the sides for:

  • Center: where most observations sit and whether one group is generally higher.
  • Spread: how far the leaves extend across the stems.
  • Shape: clusters, gaps, or a long tail toward higher or lower values.
  • Individual values: exact observations, which remain available in the leaves.

A plot can suggest a difference, but it does not by itself establish why the groups differ or whether the difference is meaningful in a broader context.

Common Problems and Limits

A frequent error is changing the scale between groups—for instance, using tens as stems for one group and hundreds for the other. That makes the comparison invalid. Another is treating a leaf as a separate observation when it is actually part of a number. The key resolves this: if 3 | 6 means 36, then the leaf 6 is not a value of 6.

Repeated leaves should not be removed. If a score appears three times, show its leaf three times; repetitions communicate frequency. Also avoid rounding values casually. If the original measurements have decimals, choose and state a consistent precision. Rounding can merge distinct observations or change the apparent pattern.

Stem-and-leaf plots work best with small or medium lists and a manageable number of distinct stems. With many observations, many decimal places, or widely spread values, the plot can become cluttered. A histogram summarizes frequency more compactly, but usually does not preserve each exact observation. Neither display automatically proves that a group is representative or that a pattern has a particular cause.

Frequently Asked Questions

What is a back-to-back stem-and-leaf plot?
A display that compares two numerical data sets by using shared stems, with one group’s leaves on the left and the other’s on the right. It shows distribution patterns while retaining the individual values.

How do you read a back-to-back stem-and-leaf plot?
Use the key to combine a stem and leaf into a value, then read each side according to its group label. For example, if the key says 2 | 1 = 21, stem 2 and leaf 1 represent 21.

Do the leaves on the left go in reverse order?
Often they are written in descending order from the outer edge toward the stem, while right-side leaves ascend away from the stem. Conventions vary, so follow the plot’s stated key or instructions.

Can a back-to-back plot show decimal data?
Yes. Choose a consistent place-value split, such as whole numbers as stems and tenths as leaves, and provide a key. Apply the same precision to both groups.

When should I use a histogram instead?
Use a histogram when a data set is large or has so many values and stems that the leaves become cluttered. A histogram is more compact, though it generally does not show every original observation.

Does this calculator create the plot itself?
The calculator block counts values in the two entered lists. A complete plotted display also needs sorting, a shared stem scale, and readable left- and right-side formatting; use the worked example to understand that arrangement.

Related

Formula used
in a | Group A values | - | 12 | 0
in b | Group B values | - | 15 | 0
out n | Number of observations | values | count(a) + count(b) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.