Skip to content
EvidenceHelixEvidenceLib · Scientific Encyclopedia
⌘ K

Scientific library

EvidenceLib encyclopediaAll articles A–Z2,100Open textbooks35Open-access articles1,010Cancer study catalog458How it is made

My workspace this browser

Saved pages0Notes & annotations0

Recently viewed

Explore by field

Cancer and Oncology182Genetics and Genomics170Neuroscience185Cardiovascular Medicine180Immunology162Pharmacology174Molecular Biology161Infectious Diseases150Rare and Inherited Diseases181Clinical Research173Anatomy and Physiology617Drugs and Chemicals621Psychiatry and Psychology75Public Health and Nutrition64Diagnostics and Medical Technology15
Plans & pricingCompare EvidenceHelix workspace plans
Library›Open textbooks›Statistics›Stem-and-Leaf Graphs (Stemplots), Line Graphs, and Bar Graphs

Continue where you left off ()

Explore more with EvidenceHelix Workspace

Compare studies, analyze evidence and create research reports with premium tools.

Explore Researcher plans

Statistics · Descriptive Statistics

Stem-and-Leaf Graphs (Stemplots), Line Graphs, and Bar Graphs

CC BY 4.0 · OpenStax · approximately 17 min read

Learning objectives

One simple graph, the stem-and-leaf graph or stemplot, comes from the field of exploratory data analysis. It is a good choice when the data sets are small. To create the plot, divide each observation of data into a stem and a leaf. The stem consists of the leading digit(s), while the leaf consists of a final significant digit. For example, 23 has stem two and leaf three. The number 432 has stem 43 and leaf two. Likewise, the number 5,432 has stem 543 and leaf two. The decimal 9.3 has stem nine and leaf three. Write the stems in a vertical line from smallest to largest. Draw a vertical line to the right of the stems. Then write the leaves in increasing order next to their corresponding stem. Make sure the leaves show a space between values, so that the exact data values may be easily determined. The frequency of data values for each stem provides information about the shape of the distribution.

For Susan Dean's spring precalculus class, scores for the first exam were as follows (smallest to largest):
33, 42, 49, 49, 53, 55, 55, 61, 63, 67, 68, 68, 69, 69, 72, 73, 74, 78, 80, 83, 88, 88, 88, 90, 92, 94, 94, 94, 94, 96, 100

Stem-and-Leaf Graph
Stem Leaf
33
42 9 9
53 5 5
61 3 7 8 8 9 9
72 3 4 8
80 3 8 8 8
90 2 4 4 4 4 6
100

The stemplot shows that most scores fell in the 60s, 70s, 80s, and 90s. Eight out of the 31 scores or approximately 26 percent ( 8 31 ) were in the 90s or 100, a fairly high number of As.

Try It

For the Park City basketball team, scores for the last 30 games were as follows (smallest to largest):
32, 32, 33, 34, 38, 40, 42, 42, 43, 44, 46, 47, 47, 48, 48, 48, 49, 50, 50, 51, 52, 52, 52, 53, 54, 56, 57, 57, 60, 61
Construct a stemplot for the data.

StemLeaf
32 2 3 4 8
40 2 2 3 4 6 7 7 8 8 8 9
50 0 1 2 2 2 3 4 6 7 7
60 1

The stemplot is a quick way to graph data and gives an exact picture of the data. You want to look for an overall pattern and any outliers. An outlier is an observation of data that does not fit the rest of the data. It is sometimes called an extreme value. When you graph an outlier, it will appear not to fit the pattern of the graph. Some outliers are due to mistakes, for example, writing 50 instead of 500, while others may indicate that something unusual is happening. It takes some background information to explain outliers, so we will cover them in more detail later.

The data are the distances (in kilometers) from a home to local supermarkets. Create a stemplot using the data.
1.1, 1.5, 2.3, 2.5, 2.7, 3.2, 3.3, 3.3, 3.5, 3.8, 4.0, 4.2, 4.5, 4.5, 4.7, 4.8, 5.5, 5.6, 6.5, 6.7, 12.3

Do the data seem to have any concentration of values?

Hint

The leaves are to the right of the decimal.

The value 12.3 may be an outlier. Values appear to concentrate at 3 and 4 kilometers.

Stem Leaf
11 5
23 5 7
32 3 3 5 8
40 2 5 5 7 8
55 6
65 7
7
8
9
10
11
123

Try It

The data below show the distances (in miles) from the homes of high school students to the school. Create a stemplot using the following data and identify any outliers.

0.5, 0.7, 1.1, 1.2, 1.2, 1.3, 1.3, 1.5, 1.5, 1.7, 1.7, 1.8, 1.9, 2.0, 2.2, 2.5, 2.6, 2.8, 2.8, 2.8, 3.5, 3.8, 4.4, 4.8, 4.9, 5.2, 5.5, 5.7, 5.8, 8.0

StemLeaf
05 7
11 2 2 3 3 5 5 7 7 8 9
20 2 5 6 8 8 8
35 8
44 8 9
52 5 7 8
6
7
80

The value 8.0 may be an outlier. Values appear to concentrate at one and two miles.

A side-by-side stem-and-leaf plot allows a comparison of the two data sets in two columns. In a side-by-side stem-and-leaf plot, two sets of leaves share the same stem. The leaves are to the left and the right of the stems. eip-idm247167280 and eip-idm204185072 show the ages of presidents at their inauguration and at their death. Construct a side-by-side stem-and-leaf plot using these data.

Presidential Ages at Inauguration
PresidentAgePresidentAgePresidentAge
Washington57Lincoln52Hoover54
J. Adams61A. Johnson56F. Roosevelt51
Jefferson57Grant46Truman60
Madison57Hayes54Eisenhower62
Monroe58Garfield49Kennedy43
J. Q. Adams57Arthur51L. Johnson55
Jackson61Cleveland47Nixon56
Van Buren54B. Harrison55Ford61
W. H. Harrison68Cleveland55Carter52
Tyler51McKinley54Reagan69
Polk49T. Roosevelt42G.H.W. Bush64
Taylor64Taft51Clinton47
Fillmore50Wilson56G. W. Bush54
Pierce48Harding55Obama47
Buchanan65Coolidge51
Presidential Age at Death
PresidentAgePresidentAgePresidentAge
Washington67Lincoln56Hoover90
J. Adams90A. Johnson66F. Roosevelt63
Jefferson83Grant63Truman88
Madison85Hayes70Eisenhower78
Monroe73Garfield49Kennedy46
J. Q. Adams80Arthur56L. Johnson64
Jackson78Cleveland71Nixon81
Van Buren79B. Harrison67Ford93
W. H. Harrison68Cleveland71Reagan93
Tyler71McKinley58
Polk53T. Roosevelt60
Taylor65Taft72
Fillmore74Wilson67
Pierce64Harding57
Buchanan77Coolidge60
Ages at Inauguration Ages at Death
9 9 8 7 7 7 6 3 246 9
8 7 7 7 7 6 6 6 5 5 5 5 4 4 4 4 4 2 1 1 1 1 1 053 6 6 7 7 8
9 5 4 4 2 1 1 1 060 0 3 3 4 4 5 6 7 7 7 8
70 0 1 1 1 4 7 8 8 9
80 1 3 5 8
90 0 3 3

Notice that the leaf values increase in order, from right to left, for leaves shown to the left of the stem, while the leaf values increase in order from left to right, for leaves shown to the right of the stem.

The table shows the number of wins and losses a sports team has had in 42 seasons. Create a side-by-side stem-and-leaf plot of these wins and losses.

Losses Wins Year Losses Wins Year
34 48 1968–1969 41 41 1989–1990
34 48 1969–1970 39 43 1990–1991
46 36 1970–1971 44 38 1991–1992
46 36 1971–1972 39 43 1992–1993
36 46 1972–1973 25 57 1993–1994
47 35 1973–1974 40 42 1994–1995
51 31 1974–1975 36 46 1995–1996
53 29 1975–1976 26 56 1996–1997
51 31 1976–1977 32 50 1997–1998
41 41 1977–1978 19 31 1998–1999
36 46 1978–1979 54 28 1999–2000
32 50 1979–1980 57 25 2000–2001
51 31 1980–1981 49 33 2001–2002
40 42 1981–1982 47 35 2002–2003
39 43 1982–1983 54 28 2003–2004
42 40 1983–1984 69 13 2004–2005
48 34 1984–1985 56 26 2005–2006
32 50 1985–1986 52 30 2006–2007
25 57 1986–1987 45 37 2007–2008
32 50 1987–1988 35 47 2008–2009
30 52 1988–1989 29 53 2009–2010
Atlanta Hawks Wins and Losses
Number of Wins Number of Losses
3 1 9
9 8 8 6 5 2 5 5 9
8 7 6 6 5 5 4 3 1 1 1 1 0 3 0 2 2 2 2 4 4 5 6 6 6 9 9 9
8 8 7 6 6 6 3 3 3 2 2 1 1 0 4 0 0 1 1 2 4 5 6 6 7 7 8 9
7 7 6 3 2 0 0 0 0 5 1 1 1 2 3 4 4 6 7
6 9

Another type of graph that is useful for specific data values is a line graph. In the particular line graph shown in example4, the x-axis (horizontal axis) consists of data values and the y-axis (vertical axis) consists of frequency points. The frequency points are connected using line segments.

In a survey, 40 mothers were asked how many times per week a teenager must be reminded to do his or her chores. The results are shown in M01_Ch02_tbl008 and in M01_Ch02_fig001.

Number of Times Teenager Is Reminded Frequency
02
15
28
314
47
54

View original figure (external; image not reproduced in this text edition)

Original figure description: A line graph showing the number of times a teenager needs to be reminded to do chores on the x-axis and frequency on the y-axis.

Try It

In a survey, 40 people were asked how many times per year they had their car in the shop for repairs. The results are shown in M01_Ch02_tbl009. Construct a line graph.

Number of Times in ShopFrequency
07
110
214
39

View original figure (external; image not reproduced in this text edition)

Original figure description: Figure 2 shows a line graph of the number of times cars have been in the shop. The X-axis is labeled from one to three with “Number of times in shop” and the y-axis is labled Frequency with numbers from 0 to 16. The information within the graph shows a steady incline from 6 with a peak at 14 prior to falling back down to 8.

Bar graphs consist of bars that are separated from each other. The bars can be rectangles, or they can be rectangular boxes, used in three-dimensional plots, and they can be vertical or horizontal. The bar graph shown in example5 has age-groups represented on the x-axis and proportions on the y-axis.

By the end of 2011, a social media site had more than 146 million users in the United States. M01_Ch02_tbl010 shows three age-groups, the number of users in each age-group, and the proportion (percentage) of users in each age-group. Construct a bar graph using this data.

Age-Groups Number of Site Users Proportion (%) of Site Users
13–25 65,082,280 45%
26–44 53,300,200 36%
45–64 27,885,100 19%

View original figure (external; image not reproduced in this text edition)

Original figure description: This is a bar graph that matches the supplied data. The x-axis shows age groups, and the y-axis shows the percentages of Facebook users.

Try It

The population in Park City is made up of children, working-age adults, and retirees. M01_Ch02_tbl011 shows the three age-groups, the number of people in the town from each age-group, and the proportion (%) of people in each age-group. Construct a bar graph showing the proportions.

Age-GroupsNumber of PeopleProportion of Population
Children 67,059 19%
Working-age adults 152,198 43%
Retirees 131,662 38%

View original figure (external; image not reproduced in this text edition)

Original figure description: This is a bar graph that matches the supplied data. The x-axis shows age groups, and the y-axis shows the percentages of Park City's population.

The columns in M01_Ch02_tbl012 contain the race or ethnicity of students in U.S. public schools for the class of 2011, percentages for the Advanced Placement (AP) examinee population for that class, and percentages for the overall student population. Create a bar graph with the student race or ethnicity (qualitative data) on the x-axis and the AP examinee population percentages on the y-axis.

Race/Ethnicity AP Examinee Population Overall Student Population
1 = Asian, Asian American, or Pacific Islander 10.3% 5.7%
2 = Black or African American 9.0% 14.7%
3 = Hispanic or Latino 17.0% 17.6%
4 = American Indian or Alaska Native 0.6% 1.1%
5 = White 57.1% 59.2%
6 = Not reported/other 6.0% 1.7%

View original figure (external; image not reproduced in this text edition)

Original figure description: This is a bar graph that matches the supplied data. The x-axis shows race and ethnicity, and the y-axis shows the percentages of AP examinees.

Try It

Park City is broken down into six voting districts. The table shows the percentage of the total registered voter population that lives in each district as well as the percentage of the entire population that lives in each district. Construct a bar graph that shows the registered voter population by district.

DistrictRegistered Voter PopulationOverall City Population
115.5%19.4%
212.2%15.6%
39.8%9.0%
417.4%18.5%
522.8%20.7%
622.3%16.8%

View original figure (external; image not reproduced in this text edition)

Original figure description: This is a bar graph that matches the supplied data. The x-axis shows Park City voting districts, and the y-axis shows the percentages of the registered voter population.

fs-id1170309297122 is a two-way table showing the types of pets owned by men and women.

Dogs Cats Fish Total
Men 4 2 2 8
Women 4 6 2 12
Total 8 8 4 20

Given these data, calculate the marginal distributions of pets for the people surveyed.

Dogs = 8/20 = 0.4

Cats = 8/20 = 0.4

Fish = 4/20 = 0.2

Note—The sum of all the marginal distributions must equal one. In this case, 0.4 + 0.4 + 0.2 = 1; therefore, the solution checks.

fs-id1170309408457 is a two-way table showing the types of pets owned by men and women.

Dogs Cats Fish Total
Men 4 2 2 8
Women 4 6 2 12
Total 8 8 4 20

Given these data, calculate the conditional distributions for the subpopulation of men who own each pet type.

Men who own dogs = 4/8 = 0.5

Men who own cats = 2/8 = 0.25

Men who own fish = 2/8 = 0.25

Note—The sum of all the conditional distributions must equal one. In this case, 0.5 + 0.25 + 0.25 = 1; therefore, the solution checks.

References

Burbary, K. (2011, March 7). Facebook demographics revisited – 2001 statistics. Social Media Today. Retrieved from http://www.kenburbary.com/2011/03/facebook-demographics-revisited-2011-statistics-2/

Centers for Disease Control and Prevention. (n.d.). Overweight and obesity: Adult obesity facts. Available online http://www.cdc.gov/obesity/data/adult.html

CollegeBoard. (2013). The 9th annual AP report to the nation. Retrieved from http://apreport.collegeboard.org/goals-andfindings/promoting-equity

Chapter Review

A stem-and-leaf plot is a way to plot data and look at the distribution. In a stem-and-leaf plot, all data values within a class are visible. The advantage in a stem-and-leaf plot is that all values are listed, unlike a histogram, which gives classes of data values. A line graph is often used to represent a set of data values in which a quantity varies with time. These graphs are useful for finding trends, that is, finding a general pattern in data sets, including temperature, sales, employment, company profit, or cost, over a period of time. A bar graph is a chart that uses either horizontal or vertical bars to show comparisons among categories. One axis of the chart shows the specific categories being compared, and the other axis represents a discrete value. Bar graphs are especially useful when categorical data are being used.

For each of the following data sets, create a stemplot and identify any outliers.

The miles-per-gallon ratings for 30 cars are shown below (lowest to highest):
19, 19, 19, 20, 21, 21, 25, 25, 25, 26, 26, 28, 29, 31, 31, 32, 32, 33, 34, 35, 36, 37, 37, 38, 38, 38, 38, 41, 43, 43.

StemLeaf
19 9 9
20 1 1 5 5 5 6 6 8 9
31 1 2 2 3 4 5 6 7 7 8 8 8 8
41 3 3

The height in feet of 25 trees is shown below (lowest to highest):
25, 27, 33, 34, 34, 34, 35, 37, 37, 38, 39, 39, 39, 40, 41, 45, 46, 47, 49, 50, 50, 53, 53, 54, 54.

The data are the prices of different laptops at an electronics store. Round each value to the nearest 10.
249, 249, 260, 265, 265, 280, 299, 299, 309, 319, 325, 326, 350, 350, 350, 365, 369, 389, 409, 459, 489, 559, 569, 570, 610

Stem Leaf
25 5 6 7 7 8
30 0 1 2 3 3 5 5 5 7 7 9
41 6 9
56 7 7
61

The following data are daily high temperatures in a town for one month:
61, 61, 62, 64, 66, 67, 67, 67, 68, 69, 70, 70, 70, 71, 71, 72, 74, 74, 74, 75, 75, 75, 76, 76, 77, 78, 78, 79, 79, 95.


For the next three exercises, use the data to construct a line graph.

In a survey, 40 people were asked how many times they visited a store before making a major purchase. The results are shown in M01_Ch02_tbl018.

Number of Times in StoreFrequency
14
210
316
46
54

View original figure (external; image not reproduced in this text edition)

Original figure description: This is a line graph that matches the supplied data. The x-axis shows the number of times people reported visiting a store before making a major purchase, and the y-axis shows the frequency.

In a survey, several people were asked how many years it has been since they purchased a mattress. The results are shown in M01_Ch02_tbl019.

Years Since Last Purchase Frequency
0 2
1 8
2 13
3 22
4 16
5 9

Several children were asked how many TV shows they watch each day. The results of the survey are shown in M01_Ch02_tbl020.

Number of TV Shows Frequency
0 12
1 18
2 36
3 7
4 2

View original figure (external; image not reproduced in this text edition)

Original figure description: This is a line graph that matches the supplied data. The x-axis shows the number of TV shows a kid watches each day, and the y-axis shows the frequency.

The students in Ms. Ramirez’s math class have birthdays in each of the four seasons. M01_Ch02_tbl021 shows the four seasons, the number of students who have birthdays in each season, and the percentage of students in each group. Construct a bar graph showing the number of students.

Seasons Number of Students Proportion of Population
Spring 8 24%
Summer 9 26%
Autumn 11 32%
Winter 6 18%

Using the data from Mrs. Ramirez’s math class supplied in exercise13, construct a bar graph showing the percentages.

View original figure (external; image not reproduced in this text edition)

Original figure description: This is a bar graph that matches the supplied data. The x-axis shows the seasons of the year, and the y-axis shows the proportion of birthdays.

David County has six high schools. Each school sent students to participate in a county-wide science competition. M01_Ch02_tbl022 shows the percentage breakdown of competitors from each school and the percentage of the entire student population of the county that goes to each school. Construct a bar graph that shows the population percentage of competitors from each school.

High SchoolScience Competition PopulationOverall Student Population
Alabaster28.9%8.6%
Concordia7.6%23.2%
Genoa12.1%15.0%
Mocksville18.5%14.3%
Tynneson24.2%10.1%
West End8.7%28.8%

Use the data from the David County science competition supplied in exercise10. Construct a bar graph that shows the county-wide population percentage of students at each school.

View original figure (external; image not reproduced in this text edition)

Original figure description: This is a bar graph that matches the supplied data. The x-axis shows the county high schools, and the y-axis shows the proportion of county students.

Homework

Student grades on a chemistry exam were 77, 78, 76, 81, 86, 51, 79, 82, 84, and 99.

  1. Construct a stem-and-leaf plot of the data.
  2. Are there any potential outliers? If so, which scores are they? Why do you consider them outliers?

M01_Ch02_tbl024 contains the 2010 rates for a specific disease in U.S. states and Washington, DC.

State Percent (%) State Percent (%) State Percent (%)
Alabama 32.2 Kentucky 31.3 North Dakota 27.2
Alaska 24.5 Louisiana 31.0 Ohio 29.2
Arizona 24.3 Maine 26.8 Oklahoma 30.4
Arkansas 30.1 Maryland 27.1 Oregon 26.8
California 24.0 Massachusetts 23.0 Pennsylvania 28.6
Colorado 21.0 Michigan 30.9 Rhode Island 25.5
Connecticut 22.5 Minnesota 24.8 South Carolina 31.5
Delaware 28.0 Mississippi 34.0 South Dakota 27.3
Washington, DC 22.2 Missouri 30.5 Tennessee 30.8
Florida 26.6 Montana 23.0 Texas 31.0
Georgia 29.6 Nebraska 26.9 Utah 22.5
Hawaii 22.7 Nevada 22.4 Vermont 23.2
Idaho 26.5 New Hampshire 25.0 Virginia 26.0
Illinois 28.2 New Jersey 23.8 Washington 25.5
Indiana 29.6 New Mexico 25.1 West Virginia 32.5
Iowa 28.4 New York 23.9 Wisconsin 26.3
Kansas 29.4 North Carolina 27.8 Wyoming 25.1
  1. Use a random number generator to randomly pick eight states. Construct a bar graph of the rates of a specific disease of those eight states.
  2. Construct a bar graph for all the states beginning with the letter A.
  3. Construct a bar graph for all the states beginning with the letter M.
  1. Example solution for using the random number generator for the TI-84+ to generate a simple random sample of eight states. Instructions are as follows.
    • Number the entries in the table 1–51 (includes Washington, DC; numbered vertically)
    • Press MATH
    • Arrow over to PRB
    • Press 5:randInt(
    • Enter 51,1,8)

    Eight numbers are generated (use the right arrow key to scroll through the numbers). The numbers correspond to the numbered states (for this example: {47 21 9 23 51 13 25 4}. If any numbers are repeated, generate a different number by using 5:randInt(51,1)). Here, the states (and Washington DC) are {Arkansas, Washington DC, Idaho, Maryland, Michigan, Mississippi, Virginia, Wyoming}.

    Corresponding percents are {30.1, 22.2, 26.5, 27.1, 30.9, 34.0, 26.0, 25.1}.

    View original figure (external; image not reproduced in this text edition)

    Original figure description: A bar graph showing 8 states on the x-axis and corresponding obesity rates on the y-axis.


  2. View original figure (external; image not reproduced in this text edition)

    Original figure description: This is a bar graph that matches the supplied data. The x-axis shows states, and the y-axis shows percentages.

  3. View original figure (external; image not reproduced in this text edition)

    Original figure description: This is a bar graph that matches the supplied data. The x-axis shows states, and the y-axis shows percentages.

← IntroductionHistograms, Frequency Polygons, and Time Series Graphs →

Attribution. Statistics, OpenStax, Rice University, and the contributing authors credited in the book. Licensed under Creative Commons Attribution 4.0 International. Source revision 7dea80ae28 of openstax/osbooks-statistics (2026-04-23). CC BY 4.0. Original source ↗. Text edition of a pinned CC BY 4.0 source revision of the OpenStax book, converted from CNXML by the EvidenceHelix importer. Original prose, learning objectives, tables, exercises, glossary and captions are preserved; images are not copied (figures link to the original source and keep their credits). No new content was added. Later revisions of this book can carry different licence terms and are not used.

In this chapter Contents

  • Introduction
  • Stem-and-Leaf Graphs (Stemplots), Line Graphs, and Bar Graphs
  • Histograms, Frequency Polygons, and Time Series Graphs
  • Measures of the Location of the Data
  • Box Plots
  • Measures of the Center of the Data
  • Skewness and the Mean, Median, and Mode
  • Measures of the Spread of the Data
  • Descriptive Statistics

Source

OpenStax source file ↗

Illustrated original ↗

EvidenceLib is a research-education resource, not medical advice. It does not diagnose, prescribe or recommend starting, stopping or changing any treatment. Talk to a qualified clinician about your own situation. Methods, sources and licences · Rights and removal requests · Legal · Support