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
|4||2 9 9|
|5||3 5 5|
|6||1 3 7 8 8 9 9|
|7||2 3 4 8|
|8||0 3 8 8 8|
|9||0 2 4 4 4 4 6|
The stemplot shows that most scores fell in the 60s, 70s, 80s, and 90s. Eight out of the 31 scores or approximately 26 percent were in the 90s or 100, a fairly high number of As.
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.
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?
The leaves are to the right of the decimal.
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
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. Table 2.3 and Table 2.4 show the ages of presidents at their inauguration and at their death. Construct a side-by-side stem-and-leaf plot using these data.
|J. Adams||61||A. Johnson||56||F. Roosevelt||51|
|J. Q. Adams||57||Arthur||51||L. Johnson||55|
|Van Buren||54||B. Harrison||55||Ford||61|
|W. H. Harrison||68||Cleveland||55||Carter||52|
|Polk||49||T. Roosevelt||42||G.H.W. Bush||64|
|Fillmore||50||Wilson||56||G. W. Bush||54|
|J. Adams||90||A. Johnson||66||F. Roosevelt||63|
|J. Q. Adams||80||Arthur||56||L. Johnson||64|
|Van Buren||79||B. Harrison||67||Ford||93|
|W. H. Harrison||68||Cleveland||71||Reagan||93|
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.
Another type of graph that is useful for specific data values is a line graph. In the particular line graph shown in Example 2.4, 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 people were asked how many times per year they had their car in the shop for repairs. The results are shown in Table 2.8. Construct a line graph.
|Number of Times in Shop||Frequency|
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 Example 2.5 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. Table 2.9 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|
The population in Park City is made up of children, working-age adults, and retirees. Table 2.10 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-Groups||Number of People||Proportion of Population|
The columns in Table 2.11 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%|
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.
|District||Registered Voter Population||Overall City Population|
Table 2.13 is a two-way table showing the types of pets owned by men and women.
Given these data, calculate the marginal distributions of pets for the people surveyed.
Table 2.14 is a two-way table showing the types of pets owned by men and women.
Given these data, calculate the conditional distributions for the subpopulation of men who own each pet type.