Statistics and Probability Theory: Fasih Ur Rehman
Statistics and Probability Theory: Fasih Ur Rehman
Probability Theory
Lecture 02
Fasih ur Rehman
Last Class
Group No of Elements
75 - 79 1
80 - 84 3
85 - 89 7
90 - 94 2
94 - 99 1
• 3, 13, 7, 5, 21, 23, 39, 23, 40, 23, 14, 12, 56,
23, 29
• putting data in order
• 3, 5, 7, 12, 13, 14, 21, 23, 23, 23, 23, 29, 39,
40, 56
• The median value turns out to 23
• The spread 56 – 3 = 53
Example1
• 3, 13, 7, 5, 21, 23, 23, 40, 23, 14, 12, 56, 23, 29
• Here we have even number of elements in data.
Putting this data in order
• 3, 5, 7, 12, 13, 14, 21, 23, 23, 23, 23, 29, 40, 56
• n = 14
• 3, 5, 7, 12, 13, 14, 21, 23, 23, 23, 23, 29, 40, 56
• Median is found by (21 + 23)/2 = 22 i.e. by taking
mean value of two middle values.
• The spread 56 – 3 = 53
• Median separates the data in two equal halves.
Quartiles
• 78 81 83 84 86 87 87 89 89 89 89 90 91 99
• Lower half of data is
• 78 81 83 84 86 87 87
• Lower Quartile is 84
• Upper half of data is
• 89 89 89 89 90 91 99
• Lower Quartile is 89
• Middle Quartile (same as median) is 88
• IQR = 89 – 84 = 5
Box and Whisker Plot
• 78 81 83 84 86 87 87 89 89 89 89 90 91 99
• Lower half of data is
• 78 81 83 84 86 87 87
• Lower Quartile is 84
• Upper half of data is
• 89 89 89 89 90 91 99
• Lower Quartile is 89
• Middle Quartile is 88
• IQR = 89 – 84 = 5
Example2
• 91 89 93 91 87 94 92 85 91 90 96 93 89
• Sorted data
• 85 87 89 89 90 91 91 91 92 93 93 94 96
• Values required for box plot respectively are
• 85, 89, 91, 93 and 96
Summary
• Data Representation
– Histogram
• Center and Spread of Data
• Quartiles
• Box and Whisker Plot
References
• 1: http://www.mathsisfun.com/
• 2: Advanced Engineering Mathematics by E
Kreyszig 8th edition