Module 5 Stem and Leaf Plot
Module 5 Stem and Leaf Plot
1. In which year was the difference between number of students in College A and number of students in College B the
highest and what is the difference?(Student values in Thousands).
2. If 25% students in College A in 2010 were females, then what was the number of male students in College A in same
year?
Year College A College B Difference
2007 20 10 10
2008 25 15 10
2009 35 25 10
2010 15 20 5
2011 30 25 5
2012 20 35 15
145 130
1. In which year was the difference between number of students in College A and number of students in College B the
highest and what is the difference?(Student values in Thousands).
2. If 25% students in College A in 2010 were females, then what was the number of male students in College A in same
year?
Ans: In College A, in 2010, 25% students are female, then in the same year, 75% were males.
Then 75% of 15000=11250
The number of passengers travelled(in lakhs) in four different trains in different years is shown below in a star plot.
2006 6 7
2007 7
2008 4
2009 5
2010 5
2011 7
2012 6
2013 3
Total 43 36
Year Shatabdi Sampark Sapt Rajdhani a) In which train is the number of passengers
Exp Kranti Kranti Exp travelled the maximum during the eight years?
Exp Exp Ans: Shatabdi Exp
2006 6 7 1 2
2007 7 1 4 6 b) Fare of Shatabdi Express is: Rs. 400/- for all
2008 4 6 5 1 classes.
2009 5 7 4 3
Fare of Sampark Kranti Exp is 20% more than
2010 5 1 2 4 that of Shatabdi Exp.
2011 7 1 3 5 i.e Rs.400+20% of Rs.400=400+80=480.
2012 6 7 4 2 Income of Shatabdi Exp in 2012 is: 6x400
Income of Sampark Kranti Exp in 2013 is:
2013 3 6 5 4 6 x 480
Total 43 36 28 27
The ratio is: (6x400)/(6x480)
=5:6
Stem and leaf plot
• A stem-and-leaf plot is an arrangement of digits that is used to display and order
numerical data. OR
• Stem-and-leaf plot is a tabular presentation where each data value is split into a
“stem” (the first digit or digits) and a “leaf” (usually the last digit).
• It provides a visual summary of data and is mainly suitable for smaller data sets.
• "32" is split into "3" (stem) and "2" (leaf).
Procedure to make stem-and-leaf plot:
• Sort the data from low to high.
• Separate each observation/data into a stem which will consist of all except
rightmost digit and leaf, the rightmost digit.
• Leaf must have only one digit while stem can have as many digits as possible.
• Write the stem in a vertical column with smallest at the top then draw a vertical
line by the right of this column.
• Write each corresponding leaf in the row to the right of its stem just after the
vertical line, in ascending order out from the stem.
Draw the stem and leaf for the following data:
13, 22, 44, 53, 20, 42, 16, 52, 41, 24
• Import sys
• !pip install stemgraphic
# importing the module
import stemgraphic
data = [13, 22, 44, 53, 20, 42, 16, 52, 41, 24]
# calling stem_graphic with required parameters, data and scale
stemgraphic.stem_graphic(data, scale = 10,asc=False)
[2.3,2.5, 2.5, 2.7, 2.8, 3.2, 3.6, 3.6, 4.5, 5.0]
# importing the module
import stemgraphic
data = [2.3,2.5, 2.5, 2.7, 2.8, 3.2, 3.6, 3.6, 4.5, 5.0]
# calling stem_graphic with required parameters, data and scale
stemgraphic.stem_graphic(data, scale = 1,asc=False)
# import matplotlib.pyplot library
import matplotlib.pyplot as plt
data = [16, 25, 47, 56, 23, 45, 19, 55, 44, 27]
a) Find the range of the data in the given stem and leaf plot.
b) How many students scored at least 90 marks?
c) How are the data distributed?
d) Calculate the mode and median of the given plot.
e) How many students received grade B and grade C on the test? For
grade calculation consider the data shown below.
• Find the range of the data in the given stem and leaf plot.
Range=max.value-min.value=100-66=34
• How many students scored at least 90 marks?
4 students scored at least 90 marks.
Draw the stem and leaf plot for the following data:
1. [78,84,60,62,72,79,64,81,72,51,88,84,93,98,57,72,79,74,81,60,59]
1. [15,27,8,17,13,22,24,25,13,36,32,32,32,28,43,7]