Lesson2 - Measures of Tendency
Lesson2 - Measures of Tendency
Lesson2 - Measures of Tendency
STAT 301
Chapter 1: lesson
Presentation of Data
2
Central Tendency: Mode, Median,
Mean
Dispersion: Variance, Standard
Deviation
Presentation of Data
• After the data have been collected, the main
tasks a statistician must accomplish are the
organization and presentation of the data
❖ n : total of frequency
❖ The interval must equal width.
❖Use for qualitative and discrete data.
❖You should cover all values and categories.
2.Histogram
• A histogram is a bar graph used to display the frequency of data
divided into equal intervals. The bars must be of equal width and
should touch, but not overlap.
• Histogram: A graph in which the classes are marked on the
horizontal axis and the class frequencies on the vertical axis. The
class frequencies are represented by the heights of the bars and
the bars are drawn adjacent to each other.
Example 1: Making a Histogram
Use the frequency table in Example 2 to make a histogram.
4 0 4 0
5 Reorder
5
n= 18
6 580855 6 055588
7 000504050 7 000000455
8 Range=95-40=55
8
greatest value=95
9 05 9 05
Leaf unit = 1
least value =40
stem unit = 10
Example : Creating Stem-and-Leaf Plots
Use the data in the table to make a
stem-and-leaf plot.
Test Scores
75 86 83 91 94
88 84 99 79 86
2. Quantitative data
a. Pie and bar charts
b. Stem and leaf
central tendency
Three measures of central tendency are commonly used in statistical
analysis - the mode, the median, and the mean.
The data (observations) often tend to be concentrated around the
center of the data.
Some measures of location are: the mean, median and mode.
These measures are considered as representatives (or typical values)
of the data.
Arithmetic Mean or Average
• The mean of a set of measurements is the
sum of the measurements divided by the
total number of measurements.
27
Example
•The set: 2, 9, 1 1, 5, 6
• Median?
• Mode?
Exercise
• Find the Median , mode, mean?
❖ 4 5 6 6 7 8 9 10 12
❖ 5 6 6 7 8 9 10 12
❖ 4, 5, 8, 7
Exercise
•For what value of X will 8 and X have the same
sample mean as 27 and 5?
Solution:
First, find the mean of 27 and 5:
X= 90
39
The Range (Example):
find The range of (12, 24, 19, 20, 7) .
Solution:
40
Mean Absolute
Deviation(M.A.D.)
The key concept for describing normal distributions
and making predictions from them is called
deviation from the mean.
We could just calculate the average distance between each
observation and the mean.
• We must take the absolute value of the distance, otherwise
they would just cancel out to zero!
Formula:
Mean Deviation: An Example
Data: X = {6, 10, 5, 4, 9, 8} X = 42 / 6 = 7
X – Xi Abs. Dev.
1. Compute X (Average)
7–6 1 2. Compute X – X and take
7 – 10 3 the Absolute Value to get
Absolute Deviations
7–5 2 3. Sum the Absolute
7–4 3 Deviations
4. Divide the sum of the
7–9 2 absolute deviations by N
7–8 1
Total: 12 12 / 6 = 2
The Population Variance:
If X1,X2,………..,XN are the population values, then the
44
The Sample Variance:
Where:
Note:
45
The Sample Standard Deviation :
The standard deviation is another
measure of variation. It is the square
root of the variance, i.e., it is:
46
Example 1 :
Compute the sample variance and standard
deviation of the following observations
(ages in year): 10, 21, 33, 53, 54.
Solution
(year)
Example 1 :
10 21 33 53 54
5 -4 16
12 3 9
6 -3 9
8 -1 1
14 5 25
Sum 45 0 60
Exercise
• Compute the Range, sample variance
and standard deviation of the following
observations :5,12,6,8,14
Exercise
5 25
12 144
6 36
8 64
14 196
Sum 45 465
InterQuartile Range (1/7)
(The Range of the middle 50% of scores)
IQR = Q3 – Q1
Median = 6 Example 1
1, 3, 5, 6, 7, 8, 8
Q3 = 8 Q1 = 3
IQR = Q3 - Q1
Middle of Middle of =8-3
top half. lower half.
=5
Inter-quartile Range
Median =6 Example 2
2, 3, 6, 6, 7, 8.
Q3 = 7 Q1 = 3 IQR = Q3 - Q1
Middle of Middle of =7-3
top half. lower half. =4
Q3 = 9 Q1 = 4 IQR = Q3 - Q1
Middle of Middle of =9-4
top half. lower half. =5
Inter-quartile Range and Dot Plots
Median
Q1 Q3
0 1 2 3 4 5 6 7 8
IQR = Q3 – Q1
=5–2
=3
Drawing a Box Plot.
Example 1: Draw a Box plot for the data below
Q1 Q2 Q3
4, 4, 5, 6, 8, 8, 8, 9, 9, 9, 10, 12
Lower Upper
Median
Quartile Quartile
= 8
= 5½ = 9
4 5 6 7 8 9 10 11 12
Drawing a Box Plot.
Example 2: Draw a Box plot for the data below
Q1 Q2 Q3
Lower Upper
Quartile Median Quartile
= 4 = 8 = 10
3 4 5 6 7 8 9 10 11 12 13 14 15
Drawing a Box Plot.
Question: Stuart recorded the heights in cm of boys in his
class as shown below. Draw a box plot for this data.
137, 148, 155, 158, 165, 166, 166, 171, 171, 173, 175, 180, 184, 186, 186
Drawing a Box Plot.
Question: Stuart recorded the heights in cm of boys in his
class as shown below. Draw a box plot for this data.
QL Q2 Qu
137, 148, 155, 158, 165, 166, 166, 171, 171, 173, 175, 180, 184, 186, 186
Lower Upper
Quartile Median Quartile
= 158 = 171 = 180