A stem-and-leaf display or stem-and-leaf plot is a device for presenting
quantitative data
Quantitative research is a research strategy that focuses on quantifying the collection and analysis of data. It is formed from a deductive approach where emphasis is placed on the testing of theory, shaped by empiricist and positivist philoso ...
in a
graphical format, similar to a
histogram
A histogram is a visual representation of the frequency distribution, distribution of quantitative data. To construct a histogram, the first step is to Data binning, "bin" (or "bucket") the range of values— divide the entire range of values in ...
, to assist in visualizing the
shape
A shape is a graphics, graphical representation of an object's form or its external boundary, outline, or external Surface (mathematics), surface. It is distinct from other object properties, such as color, Surface texture, texture, or material ...
of a
distribution Distribution may refer to:
Mathematics
*Distribution (mathematics), generalized functions used to formulate solutions of partial differential equations
*Probability distribution, the probability of a particular value or value range of a varia ...
. They evolved from
Arthur Bowley's work in the early 1900s, and are useful tools in
exploratory data analysis
In statistics, exploratory data analysis (EDA) is an approach of data analysis, analyzing data sets to summarize their main characteristics, often using statistical graphics and other data visualization methods. A statistical model can be used or ...
. Stemplots became more commonly used in the 1980s after the publication of
John Tukey
John Wilder Tukey (; June 16, 1915 – July 26, 2000) was an American mathematician and statistician, best known for the development of the fast Fourier Transform (FFT) algorithm and box plot. The Tukey range test, the Tukey lambda distributi ...
's book on ''
exploratory data analysis
In statistics, exploratory data analysis (EDA) is an approach of data analysis, analyzing data sets to summarize their main characteristics, often using statistical graphics and other data visualization methods. A statistical model can be used or ...
'' in 1977. The popularity during those years is attributable to their use of
monospaced
A monospaced font, also called a fixed-pitch, fixed-width, or non-proportional font, is a font whose letters and characters each occupy the same amount of horizontal space. This contrasts with Typeface#Proportion, variable-width fonts, where t ...
(typewriter) typestyles that allowed computer technology of the time to easily produce the graphics. Modern computers' superior graphic capabilities have meant these techniques are less often used.
This plot has been implemented in Octave and R.
A stem-and-leaf plot is also called a stemplot, but the latter term often refers to another chart type. A simple stem plot may refer to plotting a matrix of ''y'' values onto a common ''x'' axis, and identifying the common'' x'' value with a vertical line, and the individual ''y ''values with symbols on the line.
Unlike histograms, stem-and-leaf displays retain the original data to at least two significant digits, and put the data in order, thereby easing the move to order-based inference and
non-parametric statistics
Nonparametric statistics is a type of statistical analysis that makes minimal assumptions about the underlying distribution of the data being studied. Often these models are infinite-dimensional, rather than finite dimensional, as in parametric s ...
.
Construction
To construct a stem-and-leaf display, the
observations
Observation in the natural sciences is an act or instance of noticing or perceiving and the acquisition of information from a primary source. In living beings, observation employs the senses. In science, observation can also involve the perceptio ...
must first be sorted in ascending order: this can be done most easily if working by hand by constructing a draft of the stem-and-leaf display with the leaves unsorted, then sorting the leaves to produce the final stem-and-leaf display. Here is the sorted set of data values that will be used in the following example:
: 44, 46, 47, 49, 63, 64, 66, 68, 68, 72, 72, 75, 76, 81, 84, 88, 106
Next, it must be determined what the stems will represent and what the leaves will represent. Typically, the leaf contains the last digit of the number and the stem contains all of the other digits. In the case of very large numbers, the data values may be rounded to a particular
place value
Place may refer to:
Geography
* Place (United States Census Bureau), defined as any concentration of population
** Census-designated place, a populated area lacking its own municipal government
* "Place", a type of street or road name
** O ...
(such as the hundreds place) that will be used for the leaves. The remaining digits to the left of the rounded place value are used as the stem.
In this example, the leaf represents the ones place and the stem will represent the rest of the number (tens place and higher).
The stem-and-leaf display is drawn with two columns separated by a vertical line. The stems are listed to the left of the vertical line. It is important that each stem is listed only once and that no numbers are skipped, even if it means that some stems have no leaves. The leaves are listed in increasing order in a row to the right of each stem.
When there is a repeated number in the data (such as two 72s), the plot must reflect such (so the plot would look like 7 , 2 2 5 6 7 when it has the numbers 72 72 75 76 77).
:
:Key:
:Leaf unit: 1.0
:Stem unit: 10.0
Rounding may be needed to create a stem-and-leaf display. Based on the following set of data, the stem plot below would be created:
: −23.678758, −12.45, −3.4, 4.43, 5.5, 5.678, 16.87, 24.7, 56.8
For negative numbers, a negative is placed in front of the stem unit, which is still the value X / 10. Non-integers are rounded. This allows the stem and leaf plot to retain its shape, even for more complicated data sets. As in this example below:
:
:Key:
Usage
Stem-and-leaf displays are useful for displaying the relative density and shape of the data, giving the reader a quick overview of the distribution. They retain (most of) the raw numerical data, often with perfect integrity. They are also useful for highlighting
outlier
In statistics, an outlier is a data point that differs significantly from other observations. An outlier may be due to a variability in the measurement, an indication of novel data, or it may be the result of experimental error; the latter are ...
s and finding the
mode. However, stem-and-leaf displays are only useful for moderately sized data sets (around 15–150 data points). With very small data sets a stem-and-leaf displays can be of little use, as a reasonable number of data points are required to establish definitive distribution properties. A
dot plot may be better suited for such data. With very large data sets, a stem-and-leaf display will become very cluttered, since each data point must be represented numerically. A
box plot
In descriptive statistics, a box plot or boxplot is a method for demonstrating graphically the locality, spread and skewness groups of numerical data through their quartiles.
In addition to the box on a box plot, there can be lines (which are ca ...
or
histogram
A histogram is a visual representation of the frequency distribution, distribution of quantitative data. To construct a histogram, the first step is to Data binning, "bin" (or "bucket") the range of values— divide the entire range of values in ...
may become more appropriate as the data size increases.
Non-numerical use
a│abdeghilmnrstwxy
b│aeioy
c│h
d│aeio
e│adefhlmnrstwx
f, aey
g│iou
h│aeimo
i│dfnost
j│ao
k│aioy
l│aio
m│aeimouy
n│aeouy
o│bdefhikmnoprsuwxy
p│aeio
q│i
r│e
s│hiot
t│aeio
u│ghmnprst
v│
w│eo
x│iu
y│aeou
z│aeo
Stem-and-leaf displays can also be used to convey non-numerical information. In this example of valid two-letter words in
Collins Scrabble Words (the word list used in
Scrabble
''Scrabble'' is a word game in which two to four players score points by placing tiles, each bearing a single letter, onto a Board game, game board divided into a 15×15 grid of squares. The tiles must form words that, in crossword fashion, re ...
tournaments outside the US) with their
initial
In a written or published work, an initial is a letter at the beginning of a word, a chapter (books), chapter, or a paragraph that is larger than the rest of the text. The word is ultimately derived from the Latin ''initiālis'', which means '' ...
s as stems, it can be easily seen that the three most common initials are , and .
[Gideon Goldin]
''Two-Letter Scrabble Words Visualized as Stem and Leaf Plot''
2020-10-01
Notes
References
*Wild, C. and Seber, G. (2000) ''Chance Encounters: A First Course in Data Analysis and Inference'' pp. 49–54 John Wiley and Sons.
*
{{Statistics, descriptive
Statistical charts and diagrams
Exploratory data analysis