Professional Documents
Culture Documents
Lect-2 Measure of Central Tendency & Dispersion
Lect-2 Measure of Central Tendency & Dispersion
Lect-2 Measure of Central Tendency & Dispersion
MT-331
Lecture 2
Part (1)
SHUMAILA USMAN
ASSISTANT PROFESSOR
METHAMATICS DEPARTMENT
Course: MT- 331 P&S
Teacher: Shumaila Usman
Objective
Descriptive Measure
• Measure Of Location
• Measures of central tendency
• Mean; Median; Mode
• A.M; G.M; H.M
• Quartiles; Percentiles , Decile
• Measures of Dispersion
• Range
• Interquartile range
• Variance
• Standard Deviation
• Coefficient of Variation
• Measures of Shape
• Skewness
• Kurtosis
• 5-number summary
• Box-and-whisker
• Ogive curve
Average a generally the part of the distribution & therefore, they are
also called the Measure of Central Tendency
𝑛
𝑖<1(𝑥𝑖 )
𝑥=
𝑛
𝐰𝐡𝐞𝐫𝐞 ΣXi = X1 + X2 + X3 + X4 + … + Xn
EXAMPLE 1:
Find the average wage of the ten laborer's working in a small industrial unit in
a village:
X: 88, 72, 33, 29, 70, 54, 86, 91, 57, 61
EXAMPLE:2
Six men with high serum cholesterol participated in a study to examine the
effects of diet on cholesterol .At the beginning of the study, their serum
cholesterol levels (mg/dL) were:366, 327, 274, 292, 274, 230.
Determine the mean
Example:3
Arithmetic mean
GROUPED DATA
• Let 𝒙𝟏 𝒙𝟐 ----- 𝒙𝒏 be n numbers with corresponding their frequencies
𝒇𝟏 , 𝒇𝟐 ,----, 𝒇𝒏 then the A.M is given by
𝑛
𝑖<1(𝑓𝑖 𝑥𝑖 )
𝑥= 𝑛
𝑖<1(𝑓𝑖 )
𝑓1 𝑥1 :𝑓2 𝑥2 ;;;;𝑓𝑛 𝑥𝑛
𝑥 =
𝑓1 :𝑓2 ;;;;;;;;;;𝑓𝑛
POPULATION SAMPLE
MEAN 𝜇 𝑋
VARIANCE 𝜎2 𝑆2
SIZE N n
𝑛
𝑖<1(𝑥𝑖 − 𝑥 )=0
𝑛
𝑖<1(𝑥𝑖 − 𝑥 )=0
𝑛 𝑛 𝑛
𝑥𝑖 − (𝑥 ) 𝑥 = 𝑛𝑥
𝑖<1 𝑖<1
𝑖<1
𝑛
𝑖<1 𝑥𝑖 − 𝑛𝑥 −−−−−− 1
𝑛
𝑛
𝑖<1(𝑥𝑖 )
𝑥= 𝑥𝑖 = 𝑛𝑥
𝑛
𝑖<1
𝑛
𝑛𝑥 = 𝑖<1 𝑥𝑖 put in 1
𝑛𝑥 - 𝑛𝑥=0
• If 𝑛1 values have mean 𝑥1 , 𝑛2 values have mean 𝑥2 & −−− −, 𝑛𝑘 values have
mean 𝑥𝑘 .The mean of all values 𝑛1 𝑛2 ----- 𝑛𝑘 is called combined weighted
mean is given by
(𝑛1 𝑥1 + 𝑛2 𝑥2 ∙∙∙∙∙ 𝑛𝑘 𝑥𝑘 )
𝑥𝑐 =
𝑛1 + 𝑛2 +∙∙∙∙∙∙∙ +𝑛𝑘
Example: The mean marks of the students in different of final year class.
(43∗61):(40∗62):(37∗58)
𝑥𝑐 = SECTION NO OF STUDENTS MEAN MARKS
(43:40:37)
A 43 61
=60.4
B 40 62
C 37 58
NED University Of Engineering & Technology
Course: MT- 331 P&S
Teacher: Shumaila Usman
• If y=ax---------𝑦 = 𝑎𝑥
• if y=a ±b x--------𝑦 = 𝑎 ± 𝑏𝑥
𝑥 𝑥
• if y= -------------𝑦 =
𝑐 𝑐
𝒙𝒊 𝒚𝒊 𝒚 = 𝟐 + 𝟑(𝒙𝒊 )
• Calculate 𝑦 𝑤𝑒𝑟𝑒 𝑦 =2+3x
4 1 13
• 𝑦 =130/5 =26
6 2 20
8 3 27
• Y=2+3x
10 5 32
• 𝑦 =2+3 𝑥
12 4 38
• 𝑥=8
• Put 𝑥 value in above equation
• 𝑦 =2+3 (8)= 26
𝑛
𝐺. 𝑀 = (𝑥1 )( 𝑥2 )−−−−− (𝑥𝑛 )
Or
𝑛
𝑖<1(𝑙𝑜𝑔𝑥𝑖 )
𝐺. 𝑀 =
𝑛
Example 1
Calculate the geometric mean of the annual percentage growth rate of profits in business corporate from
the year 2000 to 2005 is given below
50, 72, 54, 82, 93
𝑛
𝑖<1 𝑓𝑖 𝑙𝑜𝑔𝑥𝑖
𝐺. 𝑀 = 𝐴𝑛𝑡𝑖𝑙𝑜𝑔 𝑛
𝑖<1 𝑓𝑖
𝑛
𝑖<1(𝑓1 𝑙𝑜𝑔𝑥1 + 𝑓2 𝑙𝑜𝑔𝑥2 + −− −𝑓𝑛 𝑙𝑜𝑔𝑥𝑛
𝐺. 𝑀 = 𝐴𝑛𝑡𝑖𝑙𝑜𝑔 𝑛
𝑖<1(𝑓1 + 𝑓2 −−−−−−− −𝑓𝑛
EXAMPLE 1 :
Find the GM of the observations 12, 18, 48 and 61 of a variable having their weights 5, 3, 2
and 8 respectively
Solution:
Let us prepare the data in the form of a table so as to calculate GM.
The geometric mean cannot be computed if any item in the series is negative or
zero.
Ungrouped data
Harmonic mean
• Grouped data
Example :3
An airplane covers a distance of 1000 Km in two phases. During the first phase it averaged a speed of
400 Km/hr and during the second phase the average speed was 600 Km/hr. Find the average speed for
the entire trip.
Solution:
Average speed of the trip is the Harmonic Mean of the average speeds of the two phases.
𝑛
𝑖<1 𝑓𝑖
𝐻. 𝑀 =
𝑛 1
𝑖<1 𝑖∗ 𝑥 )
(𝑓
𝑖
𝟐
Harmonic Mean of the two average speeds 𝟏 𝟏 =480 Km/hr
:
𝟒𝟎𝟎 𝟔𝟎𝟎
The average speed of the plane for the entire trip = 480 Km/hr.
Example: 4
A motor car covered a distance of 50 miles four times. The first time at 50
mph the second time at 20 mph the third at40 mph & the 4rth at 25
m.p.h.calculate the average speed?
Solution:
4
Harmonic Mean = 1 1 1 1 =29.63
: : :
50 20 40 25
Solution:
4
Geometric Mean = 3×6×24×48 = 12
4
Harmonic Mean =1 1 1 1 =64/9=7.11
: : :
3 6 24 48
class interval fi
0 10 4
10 20 8
20 30 10
30 40 6
40 50 7
𝑛
𝑖=1(𝑓𝑖 𝑥𝑖 ) 915
𝑥= 𝑛 (𝑓 ) = = 26.14
𝑖=1 𝑖 35
𝑛
𝑖=1 𝑓𝑖 𝑙𝑜𝑔𝑥𝑖 47.02091
𝐺. 𝑀 = 𝐴𝑛𝑡𝑖𝑙𝑜𝑔 𝑛 𝑓 = 𝐴𝑛𝑡𝑖𝑙𝑜𝑔 ( ) = 22.06
𝑖=1 𝑖 35
𝑛
𝑖=1 𝑓𝑖 35
𝐻. 𝑀 = 𝑛 1 = = 16.987
𝑖=1 𝑖∗ 𝑥 )
(𝑓 2.060317
𝑖
A.M>G.M>H.M
• For an even set of values, the median will be the arithmetic average of the two
middle numbers.
• It is also known as the 50th percentile (P50), or 2nd quartile (Q2)
• The position of the median can be calculated as follows:
𝑛:1 𝑡
𝑚𝑒𝑑𝑖𝑎𝑛 = ( ) 𝑣𝑎𝑙𝑢𝑒
2
ANS: Median is 7
Median for even numbers
Second, if you have an even number of scores, take the
average of the middle two.
1 4 6 7 8 12 14 16
1 4 6 7 7 88 12 14 16
ANS: Median is (7+8)/2 = 7.5
NED University Of Engineering & Technology
Course: MT- 331 P&S
Teacher: Shumaila Usman
𝒉 𝒇𝒊
Median=𝒍 + ( - C.f)
𝒇 𝟐
𝒇𝒊 𝟏𝟒𝟎
= = 𝟕𝟎
𝟐 𝟐
L =49.5 ,h=10 ,f=30 ,c.f=65
𝟏𝟎
Median=𝟒𝟗. 𝟓 + (70-65)
𝟑𝟎
Median = 51.16
• Example:
A survey was conducted to determine the age (in year) of 120 automobiles. The result of such
survey is as follows. What is the median age for the autos?
𝒉 𝒇𝒊
age of auto 0--4 4--8 8--12 12--16 16--20 Median=𝒍 + ( - C.f)
𝒇 𝟐
no of auto 13 29 48 22 8
𝒇𝒊 𝟏𝟐𝟎
Solution: = = 𝟔𝟎
𝟐 𝟐
L-C-B U-C-B F C.F 𝒍 =8 ,h=4 ,f=48
0 4 13 13 c.f=42
4 8 29 13+29=42
𝟒
8 12 48 42+48=90 Median=𝟖 + (60-42)
𝟒𝟖
12 16 22 112
16 20 8 120 Median = 9.5
NED University Of Engineering & Technology
Course: MT- 331 P&S
Teacher: Shumaila Usman
The Mode
• The mode is the value of the observation that appears most
frequently.
𝑓𝑚;𝑓1
𝑀𝑂𝐷𝐸 = (𝑙 + ∗ )------------G.D
2𝑓𝑚;𝑓1;𝑓2
• l=lower class boundary of modal class
• Fm= frequency of modal class
• F1= frequency of preceding M.C
• f2 =frequency of following M.C
Example 2
-Similarly, for another data set (2, 4, 9, 6, 4, 6, 6, 2, 8, 2), there are two modes; What are they?
Ans:6,2
Example 3
-What is the mode for 7, 7, 6, 6, 5, 5, 4 and 4
Ans:7,6,5,4
𝒇𝒎;𝒇𝟏
𝑴𝑶𝑫𝑬 = (𝒍 + 𝟐𝒇𝒎;𝒇𝟏;𝒇𝟐 ∗ 𝒉)
𝒇𝒎=5 𝒍 = 𝟔𝟎. 𝟓, 𝒉 = 𝟒
C -B f
52.5 56.5 2
56.5 59.5 4 𝒇𝟏=4
60.5 63.5 5
64.5 67.5 4
68.5 71.5 4 𝒇2=4
72.5 75.5 1 𝟓;𝟒
𝑴𝑶𝑫𝑬 = (𝟔𝟎. 𝟓 + 𝟐(𝟓);𝟒;𝟒 ∗4)= 62.5
frequency
Class boundaries
62.5
𝒇𝒎;𝒇𝟏
𝑴𝑶𝑫𝑬 = (𝒍 + 𝟐𝒇𝒎;𝒇𝟏;𝒇𝟐 ∗ 𝒉)
L-C-B U-C-B f
0 10 5 𝟏𝟐;𝟖
𝑴𝑶𝑫𝑬 = (𝟐𝟎 + ∗ 𝟏𝟎)
10 20 8 = f1 𝟐(𝟏𝟐);𝟖;𝟕
𝑴𝑶𝑫𝑬 = 𝟐𝟒. 𝟒𝟒
NED University Of Engineering & Technology
Course: MT- 331 P&S
Teacher: Shumaila Usman
• Mean - 445/13 34 .2
• Example:
A survey was conducted to determine the age (in year) of 120 automobiles. The result of such
survey is as follows. What is the median age for the autos?
𝒇𝒎;𝒇𝟏
age of auto 0--4 4--8 8--12 12--16 16--20 𝑴𝑶𝑫𝑬 = (𝒍 + ∗ 𝒉)
𝟐𝒇𝒎;𝒇𝟏;𝒇𝟐
no of auto 13 29 48 22 8
Solution: 𝒇𝒎 =48
𝒇𝟏=29
L-C-B U-C-B F 𝒇𝟐=22
0 4 13 𝒍 =8 ,h=4
4 8 29
𝟒𝟖;𝟐𝟗
8 12 48 𝑴𝑶𝑫𝑬 = (𝟖 + ∗ 𝟒)
𝟐 𝟒𝟖 ;𝟐𝟗;𝟐𝟐
12 16 22 𝑴𝑶𝑫𝑬=9.688
16 20 8
NED University Of Engineering & Technology
Course: MT- 331 P&S
Teacher: Shumaila Usman
𝑛
𝑖=1(𝑓𝑖 𝑥𝑖 ) 1132
𝑥= 𝑛 (𝑓 ) = = 9.43
𝑖=1 𝑖 120
50% of the observations are smaller than Q2 and 50% of the observations are larger. Same as the
Median. It is also the 50th percentile.
Q3 is the Third Quartile
75% of the observations are smaller than Q3and 25% of the observations are larger
𝑛:1 2∗ 𝑛
𝑖=1 𝑓𝑖
𝑄2 = 2 ∗ ( ) 𝑄2 = 𝑙 + ( − c. f)
4 𝑓 4
𝑛:1 3∗ 𝑛
𝑖=1 𝑓𝑖
𝑄3 = 3 ∗ ( ) 𝑄3 = 𝑙 + ( − c. f)
4 𝑓 4
EXAMPLE :
𝑓 30
= = 7.5
4 4
𝟓
Q1= 𝟏𝟐. 𝟓 + (𝟕. 𝟓 − 𝟑)=17
𝟓
Course: MT- 331 P&S
Teacher: Shumaila Usman
𝑸𝟑 =22.3
NED University Of Engineering & Technology
Course: MT- 331 P&S
Teacher: Shumaila Usman
PERCENTILE
• Percentile divide the data in to 100 equal part
𝑃1, 𝑃2,;;;;;;;;, 𝑃99
DECILE
• Decile divide the data in to 10 equal part.
𝐷1, 𝐷2,;;;;;;;;, 𝐷9
GROUPED DATA UNGROUPED DATA
𝒉 𝒊∗ 𝒏
𝒊=𝟏 𝒇𝒊 𝒏:𝟏
𝑷𝒊 = 𝒍 + ( − 𝒄. 𝒇) 𝑷𝒊 = 𝒊( ) i=1,2,3,---99
𝒇 𝟏𝟎𝟎 𝟏𝟎𝟎
𝒉 𝒊∗ 𝒏 𝒇 𝒏:𝟏
𝑫𝒊 = 𝒍 + ( 𝒊=𝟏 𝒊 − 𝐜. 𝐟) 𝑫𝒊 = 𝒊( )
𝟏𝟎
i=1,2,3,---9
𝒇 𝟏𝟎
𝒏:𝟏
𝑫𝟑 = 𝟑( )th value
𝟏𝟎
𝟐𝟎:𝟏
𝑫𝟑 = 𝟑( )th value
𝟏𝟎
𝑫𝟑 = 𝟔. 𝟑 th value
Example 1:
Given the series 3,5, 7, 4 6,2 and 9.
Calculate the 2nd decile.
Solution:
BOX PLOT
Box plots (also known as box and whisker plots) are a type of chart
often used in explanatory data analysis to visually show the
distribution of numerical data and skewness through displaying the
data quartiles (or percentiles) and averages.
𝑸𝟑 − 𝑸𝟐 = 𝑸𝟐 − 𝑸𝟏 -------------(Symmetrical)
𝑸𝟑 − 𝑸𝟐 > 𝑸𝟐 − 𝑸𝟏 -------------(positively skewed)
𝑸𝟑 − 𝑸𝟐 < 𝑸𝟐 − 𝑸𝟏 -------------(negatively skewed)
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
NED University Of Engineering & Technology
Course: MT- 331 P&S
Teacher: Shumaila Usman
Drawing a Box Plot.
Example 15: 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
Step 1 : The class intervals, are represented on the horizontal axis (x-axis)