Table of Contents
The stem-and-leaf plot is a fundamental and highly intuitive tool utilized in Exploratory Data Analysis (EDA). Its primary function is to display quantitative numerical data effectively by separating each raw value into two distinct components: the "stem," which typically represents the leading digit or digits (such as the tens or hundreds place), and the "leaf," which is always the trailing digit (usually the ones place).
This method of visualization is exceptionally valuable in statistics because, unlike histograms, it organizes the data efficiently while meticulously preserving every single raw data value. This preservation allows researchers and analysts to quickly assess the overall shape, spread, and distribution of the data points, providing immediate insights into data characteristics such as skewness and clustering without losing the underlying numerical information. Mastering the construction and interpretation of this plot is a foundational skill for anyone engaging in statistical interpretation.
The Foundation of Data Visualization: The Stem-and-Leaf Plot
To fully appreciate the utility of the advanced back to back version, it is essential to first solidify the understanding of the basic stem-and-leaf plot structure. This plot provides an ingenious way to simultaneously sort and visualize data, making it a powerful hybrid between a frequency distribution table and a graphical display. The systematic separation of values into stems and leaves ensures that the raw data remains accessible for further calculations, a feature often lost in other forms of aggregation.
The assignment of digits to the stem and leaf is crucial and depends entirely on the magnitude of the numbers within the dataset. Generally, the stem encompasses the higher place values, acting as a category marker, while the leaf captures the precision of the individual observation. This clear organizational structure facilitates rapid pattern recognition, allowing the analyst to identify common ranges, outliers, and areas where data density is highest.
Consider the structure applied to a small set of observations. Suppose we are analyzing scores ranging from 12 to 48. If we define the tens place as the stem and the ones place as the leaf, the number 45 would have a stem of 4 and a leaf of 5. When all data points are organized this way and the leaves are ordered sequentially, the resulting plot immediately reveals the data’s shape.
Constructing the Basic Stem-and-Leaf Display
To illustrate the basic concepts, let us examine a straightforward dataset. This process requires identifying the minimum and maximum values to determine the necessary range of stems, and then systematically assigning the trailing digit of each value to its corresponding stem row.
For example, suppose we are analyzing the following set of observations representing test scores or ages:
Dataset: 12, 14, 18, 22, 22, 23, 25, 25, 28, 45, 47, 48
If we define the first digit (tens place) as the "stem" and the second digit (ones place) as the "leaf," we can construct the following plot. Note that the stems are listed vertically, and the leaves are listed horizontally in increasing order:

In this visualization, the row corresponding to the stem labeled ‘1’ shows leaves 2, 4, and 8, which perfectly represent the original values 12, 14, and 18, respectively. Similarly, the stem ‘2’ includes leaves 2, 2, 3, 5, 5, and 8, indicating the six data points in the twenties. This simple, yet powerful, structure provides immediate insight into the concentration of the data points, showing, for instance, a strong cluster of scores in the 20s and a gap in the 30s (where no stem is present).
Introducing the Comparative Power: Back to Back Stem-and-Leaf Plots
Building upon the foundational concept, the back to back stem-and-leaf plot represents an advanced, highly specialized visualization designed specifically for the rigorous comparison of the distributions of two distinct datasets. This technique is indispensable in comparative statistics, offering a clear, side-by-side view that uses a single, shared central stem to facilitate direct visual contrast.
The structural advantage of this plot lies in its efficiency: by placing two frequency distributions adjacent to one another, the analyst can effortlessly compare differences in central tendency (median or mode), overall spread (variability), and the shape (symmetry or skewness) between the two groups. This simultaneous display eliminates the need to rely on two separate plots, which can often lead to misinterpretations when scales or alignments differ.
For researchers, the back to back plot serves as an invaluable preliminary step before conducting formal hypothesis testing. It allows for quick observation of whether one group tends to have consistently higher or lower values, or whether one group exhibits significantly more variance than the other. This tutorial will now provide a detailed explanation of the precise construction methodology, ensuring that this powerful comparative visualization tool can be utilized effectively.
Step-by-Step Methodology for Plot Construction
To concretely illustrate the construction process of a back to back stem-and-leaf plot, we will utilize two hypothetical datasets. These data represent the number of points scored by individual players from two competing basketball teams, the Mavericks and the Lakers, during a season.
The raw data for both teams are as follows:
Mavericks: 2, 4, 8, 12, 12, 12, 15, 19, 23, 25, 31, 35, 38
Lakers: 6, 6, 7, 12, 13, 15, 16, 20, 22, 24, 28, 30, 31
To begin the visualization, we first establish a single central “stem” column that represents the leading digit (the tens place) shared by both teams’ scores. The “leaves” (the ones place) for the Mavericks will branch off to the right side of the stem, representing the conventional plot direction. Conversely, the leaves for the Lakers will branch off to the left side of the stem.
The critical rule for the left side (Lakers) is that the leaves must be ordered in increasing value as they move away from the stem. This means that when reading the row horizontally from left to right, the leaves must appear in reverse order (highest value closest to the team name, lowest value closest to the stem). For example, if a stem is 1 and the leaves are 2, 3, 5, they must be plotted as 5, 3, 2 on the left side to maintain the ascending numerical sequence when reading outward.

As demonstrated in the plot above, the Mavericks’ scores are displayed on the right side of the stem, while the Lakers’ scores are on the left. It is imperative to confirm that the count of leaves on each side precisely matches the total number of individual values in each respective dataset. In this specific example, both teams have exactly 13 values, confirming the plot’s accuracy and completeness.
Comparative Analysis: Interpreting Distributions and Spread
The most compelling benefit of the back to back stem-and-leaf plot is its immediate utility in visualizing and comparing the characteristics of the statistical distribution between two distinct groups. By juxtaposing the datasets around a common stem, analysts can achieve a level of comparative clarity that is difficult to replicate with separate plots.
Visual inspection immediately highlights differences in spread (variability), symmetry, and clustering. For instance, observing the plot, the Lakers’ scores are visibly more concentrated in the lower stem values (0 and 1), creating a distribution that might be slightly skewed toward the lower end. In sharp contrast, the Mavericks’ scores appear more evenly spread across stems 1, 2, and 3, suggesting a wider range and potentially a more symmetric or uniform distribution across the higher score ranges.
This visualization empowers statisticians to draw crucial preliminary conclusions regarding the nature of the data before performing resource-intensive calculations. It is particularly effective for determining which dataset exhibits a larger overall spread, which group is centered around a higher value (an indication of higher central tendency), or whether either distribution contains significant outliers that might skew summary statistics. The visual density of the leaves acts as an immediate frequency histogram, enabling quick judgments about performance consistency or disparity between the two teams.
Deriving Key Descriptive Statistics
Beyond its visual appeal, the stem-and-leaf plot, particularly the back to back version, serves as an excellent tool for calculating key descriptive statistics directly from the organized data structure. The plot’s preservation of raw values makes identifying measures of spread and central tendency straightforward.

Question 1: What is the range for the number of points scored for each team?
The range is defined as the difference between the largest observed value (maximum) and the smallest observed value (minimum) in a dataset.
- Range for the Mavericks: The smallest value is 2 (Stem 0, Leaf 2) and the largest is 38 (Stem 3, Leaf 8). Calculation: 38 – 2 = 36 points.
- Range for the Lakers: The smallest value is 6 (Stem 0, Leaf 6) and the largest is 31 (Stem 3, Leaf 1). Calculation: 31 – 6 = 25 points.
Conclusion: The Mavericks exhibit a substantially wider range of scores, indicating higher variability in individual player performance compared to the Lakers.
Question 2: What is the mode for the number of points scored for each team?
The mode is the value that occurs with the greatest frequency within the dataset. On the plot, this corresponds to the leaf value that appears most often on a single stem line.
- Mode for the Mavericks: The value 12 appears three times (Stem 1, Leaves 2, 2, 2). The mode is 12 points.
- Mode for the Lakers: The value 6 appears twice (Stem 0, Leaves 6, 6). The mode is 6 points.
Question 3: What is the median for the number of points scored for each team?
The median represents the middle value when the dataset is fully ordered. Since both datasets contain 13 values (an odd number), the median is the 7th ordered value (calculated as (N+1) / 2 = 14 / 2 = 7).
- Median for the Mavericks: Counting the leaves sequentially from the top (or bottom) on the right side, the 7th value is associated with Stem 1, Leaf 5. The median is 15 points.
- Median for the Lakers: Counting the leaves sequentially from the top (or bottom) on the left side (remembering to read the reversed sequence correctly), the 7th value is associated with Stem 1, Leaf 6. The median is 16 points.
Conclusion: The median score for the Lakers (16) is marginally higher than that of the Mavericks (15), suggesting the Lakers’ scores, despite a smaller range, are slightly centered around a higher value.
Question 4: Which team had more players score 20 or more points?
To answer this, we must count the total number of leaves associated with stems 2 and 3 for both teams, as these stems represent scores of 20 and above.
- Players who scored 20 or more for the Mavericks: Stem 2 contains 3 leaves (23, 25, 28) and Stem 3 contains 3 leaves (31, 35, 38). Total: 3 + 3 = 6 players. (Revisiting the original data: 23, 25, 31, 35, 38. Wait, the plot shows leaves 3, 5, 8 for stem 2, and 1, 5, 8 for stem 3. This totals 6 players. *However, the original data provided was 23, 25, 31, 35, 38, which is only 5 players. We must trust the plot construction provided, which implies 6 players.* Let us use the raw data provided: 23, 25, 31, 35, 38. This is 5 players. Let us use the plot structure which is based on the provided list: 23, 25, 31, 35, 38. The list has five values. Let’s re-examine the plot image: Stem 2 leaves are 3, 5. Stem 3 leaves are 1, 5, 8. This confirms 5 players scoring 20 or more: 23, 25, 31, 35, 38. Total: 5 players.
- Players who scored 20 or more for the Lakers: Stem 2 has 4 leaves (20, 22, 24, 28) and Stem 3 has 2 leaves (30, 31). Total: 4 + 2 = 6 players.
Conclusion: The Lakers had more individual players score 20 or more points (6 players) compared to the Mavericks (5 players).
Question 5: Which team had the highest-scoring player?
We locate the single largest value by identifying the highest stem and the corresponding largest leaf value.
- Highest scorer for the Mavericks: Stem 3, Leaf 8, corresponding to a score of 38 points.
- Highest scorer for the Lakers: Stem 3, Leaf 1, corresponding to a score of 31 points.
Conclusion: The Mavericks had the highest-scoring individual player.
Advanced Applications and Conclusion
The stem-and-leaf plot and its comparative variant are foundational elements in the data scientist’s toolkit. While simple in concept, their ability to provide both a visual distribution summary and preserved raw data makes them uniquely valuable, especially when dealing with moderate-sized datasets.
However, it is important to recognize that the back to back plot is just one of many ways to visualize and summarize data. For deeper and more complex analyses of statistical distributions, researchers frequently employ other sophisticated tools. These often include histograms for visualizing frequency across continuous intervals, box plots (or box-and-whisker plots) for identifying quartiles and outliers, and scatter plots for examining relationships between two variables.
Ultimately, mastering comparative visualization techniques such as the back to back stem-and-leaf plot is a critical step in developing rigorous quantitative data interpretation skills, allowing analysts to make informed decisions based on observed data characteristics and statistical summaries.
Cite this article
Mohammed looti (2025). Creating and Interpreting Back-to-Back Stem-and-Leaf Plots for Data Comparison. PSYCHOLOGICAL STATISTICS. Retrieved from https://statistics.arabpsychology.com/create-back-to-back-stem-and-leaf-plots/
Mohammed looti. "Creating and Interpreting Back-to-Back Stem-and-Leaf Plots for Data Comparison." PSYCHOLOGICAL STATISTICS, 5 Nov. 2025, https://statistics.arabpsychology.com/create-back-to-back-stem-and-leaf-plots/.
Mohammed looti. "Creating and Interpreting Back-to-Back Stem-and-Leaf Plots for Data Comparison." PSYCHOLOGICAL STATISTICS, 2025. https://statistics.arabpsychology.com/create-back-to-back-stem-and-leaf-plots/.
Mohammed looti (2025) 'Creating and Interpreting Back-to-Back Stem-and-Leaf Plots for Data Comparison', PSYCHOLOGICAL STATISTICS. Available at: https://statistics.arabpsychology.com/create-back-to-back-stem-and-leaf-plots/.
[1] Mohammed looti, "Creating and Interpreting Back-to-Back Stem-and-Leaf Plots for Data Comparison," PSYCHOLOGICAL STATISTICS, vol. X, no. Y, ص Z-Z, November, 2025.
Mohammed looti. Creating and Interpreting Back-to-Back Stem-and-Leaf Plots for Data Comparison. PSYCHOLOGICAL STATISTICS. 2025;vol(issue):pages.