Chapter - 2: Representative of The Whole Set of Data. It Tells Us Where The Center of The Distribution of Data Is
Chapter - 2: Representative of The Whole Set of Data. It Tells Us Where The Center of The Distribution of Data Is
Chapter - 2: Representative of The Whole Set of Data. It Tells Us Where The Center of The Distribution of Data Is
2. Summarization of Data
2.1 Measures of Central Tendency
The most important objective of a statistical analysis is to determine a single value for the entire
mass of data, which describes the overall level of the group of observations and can be called a
representative of the whole set of data. It tells us where the center of the distribution of data is
located. The most commonly used measures of central tendencies are :
The Mean (Arithmetic mean, Weighted mean, Geometric mean and Harmonic means)
The Mode
The Median
Suppose that 𝑥1 , 𝑥2 , … , 𝑥𝑛 are n observed values in a sample of size n taken from a population
of size N. Then the arithmetic mean of the sample, denoted by 𝑥, is given by
Page 1
𝒏
𝑿𝟏 +𝑿𝟐 +⋯+𝑿𝒏 𝒊=𝟏 𝑿𝒊
𝑿= = → 𝐟𝐨𝐫 𝐬𝐚𝐦𝐩𝐥𝐞𝐬.
𝐧 𝒏
Example 1: The net weights of five perfume bottles selected at random from the production
line 𝑎𝑟𝑒 85.4, 85.3, 84.9, 85.4 𝑎𝑛𝑑 85. What is the arithmetic mean weight of the sample
observation?
Solution; 𝐺𝑖𝑣𝑒𝑛 𝑛 = 5 𝑥1 = 85.4, 𝑥2 = 85.3, 𝑥3 = 84.9, 𝑥4 = 85.4 𝑎𝑛𝑑 𝑥5 = 85.
𝑛
𝑖=1 𝑋 𝑖 85.4+85.3+84.9+85.4+ 85 426.6
𝑋= = = = 85.32.
𝑛 5 5
Marks (𝑋𝑖 ) 9 10 11 12 13 14 15 16 17 18
Frequency (𝑓𝑖 ) 1 2 3 6 10 11 7 3 2 1
𝑋𝑖 9 10 11 12 13 14 15 16 17 18 Total
𝑓𝑖 1 2 3 6 10 11 7 3 2 1 46
𝒇𝒊 𝑿 𝒊 9 20 33 72 130 154 105 48 34 18 623
𝒌 𝒇𝒊 𝑿𝒊 623
So 𝑋= 𝒊=𝟏 𝒇 = = 13.54.
𝒊 46
Example 3: The net income of a sample of large importers of Urea was organized into the
following table. What is the arithmetic mean of net income?
𝒌 𝒇𝒊 𝒎 𝒊 𝟏𝟖𝟑
So 𝑋= 𝒊=𝟏 = = 𝟗. 𝟏𝟓.
𝒇𝒊 𝟐𝟎
Example 4: From the following data, calculate the missing frequency? The mean number of
tablets to cure ever was 29.18.
Number of tablets 19 − 21 22 − 24 25 − 27 28 − 30 31 − 33 34 − 36 37 − 39
Number of persons cured 6 13 19 𝑓4 18 12 9
Page 2
Solution; 𝑓𝑖 = 𝑛 = 77 + 𝑓4 is the sum of the frequencies or total number of observations.
𝑘
To calculate 𝑖=1 𝒇𝒊 𝒎𝒊 consider the following table.
CI 19 − 21 22 − 24 25 − 27 28 − 30 31 − 33 34 − 36 37 − 39 Total
𝒇𝒊 6 13 19 𝑓4 18 12 9 77+𝑓4
𝒎𝒊 20 23 26 29 32 35 38
𝒇𝒊 𝒎𝒊 120 299 494 29𝑓4 576 420 342 2251 + 29𝑓4
Example 1: Compute the combined mean for the following two sets.
𝑺𝒆𝒕 𝑨: 1, 4, 12, 2, 8 𝑎𝑛𝑑 6 ; 𝑺𝒆𝒕 𝑩: 3, 6, 2, 7 𝑎𝑛𝑑 4.
6 5
𝑖=1 𝑋 𝑖 33 𝑖=1 𝑋 𝑖 22
Solution: 𝑛1 = 6, 𝑥1 = = = 5.5 ; 𝑛2 = 6, 𝑥2 = = = 4.4.
𝒏𝟏 6 𝒏𝟐 5
𝑛1 𝑥1 + 𝑛2 𝑥2 6 𝑥 5.5 + 5 𝑥 4.4 55
𝑋𝑐𝑜𝑚 = = = = 5.
𝑛1 + 𝑛2 6+5 11
Example 2: The mean weight of 150 students in a certain class is 60 kg. The mean
weight of boys in the class is 70 kg and that of girl’s is 55 kg . Find the number of boys
and girls in the class?
Solution; Let 𝑛1 be the number of boys and 𝑛2 be the number of girls in the class.
Also let 𝑥1 , 𝑥2 𝑎𝑛𝑑 𝑥𝑐𝑜𝑚 be the mean weights of boys, girls and the mean weights of all
students respectively. Then 𝑥1 = 70, 𝑥2 = 55 𝑎𝑛𝑑 𝑥𝑐𝑜𝑚 = 60. 𝐶𝑙𝑒𝑎𝑟𝑙𝑦 𝑛1 + 𝑛2 = 150.
𝑛 1 𝑥 1 +𝑛 2 𝑥 2 70 𝑛 1 +55𝑛 2 70 𝑛 1 +55𝑛 2
𝑋𝑐𝑜𝑚 = =≫ 60 = =≫ 60 =
𝑛 1 +𝑛 2 𝑛 1 +𝑛 2 150
Page 3
𝒏
𝒘𝟏 𝒙 𝟏 + 𝒘𝟐 𝒙 𝟐 + ⋯ + 𝒘𝒏 𝒙 𝒏 𝒊=𝟏 𝒘𝒊 𝒙𝒊
𝑿𝒘 = = 𝒏
𝒘𝟏 + 𝒘𝟐 + ⋯ + 𝒘 𝒏 𝒊=𝟏 𝒘𝒊
The calculation of cumulative grade point average (CGPA) in Colleges and Universities is a
good example of weighted mean.
Example: If a student scores "A" in a 3 EtCTS course, "B" in a 6 EtCTS course, "B" in
another 5 EtCTS course and "D" in a 2 EtCTS course. Compute his /her GPA for the semester.
Solution: Here the numerical values of the letter grades are the values (i.e. 𝐴 = 4, 𝐵 =
3, 𝐶 = 2 𝑎𝑛𝑑 𝐷 = 1) and the corresponding EtCTS of the course are their respective
weights. i.e.
𝟒
𝒘𝟏 𝒙𝟏 +𝒘𝟐 𝒙𝟐 +⋯+𝒘𝒏 𝒙𝒏 𝒊=𝟏 𝒘𝒊 𝒙𝒊 4x3+3x6+3x5+1x2 12+18+15+2 47
𝑮𝑷𝑨 = 𝑿𝒘 = = 𝟒 𝒘 = = = 16 = 2.9375.
𝒘𝟏 +𝒘𝟐 +⋯+𝒘𝒏 𝒊=𝟏 𝒊 3+6+5+2 16
Values 2 4 6 8 10
Frequency 1 2 2 2 1
Page 4
8 8 8
𝑺𝒐𝒍𝒖𝒕𝒊𝒐𝒏: 𝑔. 𝑚 = 21 ∗ 42 ∗ 62 ∗ 82 ∗ 101 = 2 ∗ 16 ∗ 36 ∗ 64 ∗ 100 = 737280 = 5.41.
Example 3: Suppose that the profits earned by a certain construction company in four projects
were 3%, 2%, 4% & 6% respectively. What is the Geometric mean profit?
4 4
𝑺𝒐𝒍𝒖𝒕𝒊𝒐𝒏: 𝑔. 𝑚 = 3∗2∗4∗6 = 144 = 3.46.
𝑇𝑒𝑟𝑒𝑓𝑜𝑟𝑒; 𝑡𝑒 𝑔𝑒𝑜𝑚𝑒𝑡𝑟𝑖𝑐 𝑚𝑒𝑎𝑛 𝑝𝑟𝑜𝑓𝑖𝑡 𝑖𝑠 3.46 𝑝𝑒𝑟𝑐𝑒𝑛𝑡.
2.2.1.4 Harmonic mean
Another important mean is the harmonic mean, which is suitable measure of central tendency
when the data pertains to speed, rates and price.
Let 𝑥1 , 𝑥2 , … , 𝑥𝑛 be n variant values in a set of observations, then simple harmonic
𝐧 𝐧
mean is given by: 𝑺. 𝑯. 𝑴 = 𝟏 𝟏 𝟏 = 𝐧 𝟏
+ +⋯+ 𝐢=𝟏 𝐱
𝐱𝟏 𝐱𝟐 𝐱𝐧 𝐢
Note: SHM is used for equal distances, equal costs and equal rates.
Example 1: A motorist travels for three days at a rate (speed) of 480 km/day. On the first day he
travels 10 hours at a rate of 48 km/h, on the second day 12 hours at a rate of 40 km/h, on the
third day 15 hours at a rate of 32 km/h. What is the average speed?
Solution: Since the distance covered by the motorist is equal (𝑖. 𝑒. 𝑠1 = 480, 𝑠2 = 480, 𝑠3 =
480), so we use SHM.
3
𝑆. 𝐻. 𝑀 = 1/48+1/40+1/32 = 38.92 so the required average speed = 38.92 𝑘𝑚/.
We can check this, by using the known formula for average speed in elementary physics.
total distance covered 𝑆𝑇
Check; 𝐴𝑣𝑒𝑟𝑎𝑔𝑒 𝑠𝑝𝑒𝑒𝑑 𝑉𝑎𝑣 = =
total time taken 𝑡𝑇
480km +480km +480km 1440 km
= = = 38.42 𝑘𝑚/ h.
10hr +12hr +15hr 37hr
Example 2: A business man spent 20 Birr for milk at 40 cents per liter in Mizan-Aman town and
another 20 Birr at 60 cents per liter in Tepi town. What is the average price of milk at two towns.
Solution: Since the price on the two towns are equal (20 Birr), so we use SHM.
2
𝐴𝑣𝑒𝑟𝑎𝑔𝑒 𝑝𝑟𝑖𝑐𝑒 (𝑝𝑎𝑣 ) = 𝑆. 𝐻. 𝑀 = 1 1 = 48 𝑐𝑒𝑛𝑡𝑠/𝑙𝑖𝑡𝑒𝑟.
+
40 60
Example 2: A business man spent 20 Birr for milk at rate of 40 cents per liter in Mizan-Aman
town and 25 Birr at a price of 50 cents per liter in Tepi town. What is the average price ?
Page 5
Solution: Since the price on the two towns are different , so we use WHM by taking the cost as
weights (wi).
𝑤𝑖 20 + 25 𝑏𝑖𝑟𝑟
𝑝𝑎𝑣 = 𝑤. . 𝑚 = w = = 45 𝑐/𝑙.
i 20 25
xi 40 + 50 𝑏𝑖𝑟𝑟 𝑙/𝑐
(Finally If all the observations are positive) 𝐴. 𝑀 ≥ 𝐺. 𝑀 ≥ 𝐻. 𝑀.
Corrected mean
𝒄−𝒘
𝒙𝒄𝒐𝒓𝒓 = 𝒙𝒘 + 𝑤𝑒𝑟𝑒 𝑥𝑤 𝑖𝑠 𝑡𝑒 𝑤𝑟𝑜𝑛𝑔 𝑚𝑒𝑎𝑛
𝒏
𝒄 𝑖𝑠 𝑡𝑒 𝑠𝑢𝑚 𝑜𝑓 𝑐𝑜𝑟𝑟𝑒𝑐𝑡 𝑣𝑎𝑙𝑢𝑒𝑠 𝑎𝑛𝑑 𝒘 𝑖𝑠 𝑡𝑒 𝑠𝑢𝑚 𝑜𝑓 𝑤𝑟𝑜𝑛𝑔 𝑣𝑎𝑙𝑢𝑒𝑠.
Example: The mean age of a group of 100 persons was found to be 32.02 years. Later on, it was
discovered that age of 57 was misread as 27. Find the corrected mean?
Solution: 𝑛 = 100, 𝑥𝑤 = 32.02 , 𝑐 = 57 𝑎𝑛𝑑 𝑤 = 27.
𝑐−𝑤 57 − 27
𝑥𝑐𝑜𝑟𝑟 = 𝑥𝑤 + = 32.02 + = 32.02 + 0.3 = 32.32 𝑦𝑒𝑎𝑟𝑠.
𝑛 100
Median and mode
2.2.2 The Median
Suppose we sort all the observations in numerical order, ranging from smallest to largest or vice
versa. Then the median is the middle value in the sorted list. We denote it by x.
Let 𝑥1 , 𝑥2 , … , 𝑥𝑛 be n ordered observations. Then the median is given by:
𝑿 𝒏+𝟏 𝐼𝑓 𝑛 𝑖𝑠 𝑜𝑑𝑑.
𝟐
𝒙= 𝑿 𝒏 +𝑿 𝒏
𝟐 𝟐 +𝟏
𝐼𝑓 𝑛 𝑖𝑠 𝑒𝑣𝑒𝑛.
𝟐
Then the average of the variant values corresponding to these lcf is the median.
Page 6
Example 1: Find the median for the following data.
Values (xi) 3 5 4 2 7 6
Frequency (fi) 2 1 3 2 1 1
Solution: First arrange the data in increasing order and construct the lcf table for this data.
Values (xi) 2 3 4 5 6 7
Frequency (fi) 2 2 3 1 1 1
Lcf 2 4 7 8 9 10
𝑛 10 𝑛 10
𝑛 = 10 =≫ 𝑒𝑣𝑒𝑛. 𝑆𝑜 = = 5 𝑎𝑛𝑑 +1= + 1 = 5 + 1 = 6.
2 2 2 2
Then the smallest LCF which is ≥ 5 & 6 𝑖𝑠 7 and the variant value corresponding to this LCF
4+4
is 4. Thus the median is x= = 4.
2
Values (xi) 10 9 11 12 14 13 15 16 17 18
Frequency (fi) 2 1 3 6 10 11 7 3 2 1
Solution: First arrange the data in ascending order and construct the LCF table for this data.
Values (xi) 9 10 11 12 13 14 15 16 17 18
Frequency (fi) 1 2 3 6 11 10 7 3 2 1
LCF 1 3 6 12 23 33 40 43 45 46
𝑛 46 𝑛 46
𝑛 = 46 =≫ 𝑒𝑣𝑒𝑛. 𝑆𝑜 = = 23 𝑎𝑛𝑑 + 1 = + 1 = 23 + 1 = 24.
2 2 2 2
𝑇𝑒 𝑠𝑚𝑎𝑙𝑙𝑒𝑠𝑡 𝐿𝐶𝐹 ≥ 23 & 24 𝑎𝑟𝑒 23 & 33 𝑟𝑒𝑠𝑝𝑒𝑐𝑡𝑖𝑣𝑒𝑙𝑦 𝑎𝑛𝑑 the variant values
13+14
corresponding to these LCF are 13 & 14 respectively. Thus the median 𝑖𝑠 x = = 13.5.
2
n
Note: The class corresponding to the smallest LCF which is ≥ is called the median
2
class. So that the median lies in this class.
Steps to calculate the median for grouped data
1. First construct the LCF table.
n
2. Determine the median class. To determine the median class, find and search the
2
n
smallest LCF which is ≥ 2. Then the class corresponding to this lcf is the median
class.
Page 7
Example 1: Find the median for the following data.
Daily production 80 − 89 90 − 99 100 − 109 110 − 119 120 − 129 130 − 139
Frequency 5 9 20 8 6 2
Daily production(CI) 80 − 89 90 − 99 100 − 109 110 − 119 120 − 129 130 − 139
Frequency(fi) 5 9 20 8 6 2
Lcf 5 14 34 42 48 50
𝑛 50 𝑛
To obtain the median class , calculate = = 25. Thus the smallest lcf which is ≥ is 34. So
2 2 2
the class corresponding to this lcf is 100 − 109, 𝑖𝑠 𝑡𝑒 𝑚𝑒𝑑𝑖𝑎𝑛 𝑐𝑙𝑎𝑠𝑠.
𝑇𝑒𝑟𝑒𝑓𝑜𝑟𝑒, 𝑙𝑐𝑏𝑥 = 99.5, 𝑤 = 10, 𝑓𝑚 = 20, 𝑙𝑐𝑓𝑝 = 14.
𝑛
− 𝑙𝑐𝑓𝑝 𝑥 𝑤 25 − 14 𝑥 10
𝑚𝑒𝑑𝑖𝑎𝑛 = x = lcb𝑥 + 2 = 99.5 + = 105.
𝑓𝑚 20
Properties of the median
1. The median is unique.
2. It can be computed for an open ended frequency distribution if the median does not lie in
an open ended class.
3. It is not affected by extremely large or small values .
4. It is not so suitable for algebraic manipulations.
5. It can be computed for ratio level, interval level and ordinal level data.
2.2.3 The mode
In every day speech, something is “in the mode” if it is fashionable or popular. In statistics this
“popularity” refers to frequency of observations.
Therefore, mode is the `most frequently observed value in a set of observations.
𝑬𝒙𝒂𝒎𝒑𝒍𝒆: 𝑺𝒆𝒕 𝑨: 10, 10, 9, 8, 5, 4, 5, 12, 10 𝑚𝑜𝑑𝑒 = 10 → 𝑢𝑛𝑖𝑚𝑜𝑑𝑎𝑙.
𝑺𝒆𝒕 𝑩: 10, 10, 9, 9, 8, 12, 15, 5 𝑚𝑜𝑑𝑒 = 9 &10 → 𝑏𝑖𝑚𝑜𝑑𝑎𝑙.
𝑺𝒆𝒕 𝑪: 4, 6, 7, 15, 12, 9 𝑛𝑜 𝑚𝑜𝑑𝑒.
Remark: In a set of observed values, all values occur once or equal number of times, there is no
mode. (See set C above).
Page 8
𝑓𝑝 − 𝑖𝑠 𝑡𝑒 𝑓𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 𝑜𝑓 𝑡𝑒 𝑐𝑙𝑎𝑠𝑠 𝒑𝒓𝒆𝒄𝒆𝒅𝒊𝒏𝒈 𝑡𝑒 𝑚𝑜𝑑𝑎𝑙 𝑐𝑙𝑎𝑠𝑠.
𝑓𝑠 − 𝑖𝑠 𝑡𝑒 𝑓𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 𝑜𝑓 𝑡𝑒 𝑐𝑙𝑎𝑠𝑠 𝒔𝒖𝒄𝒄𝒆𝒆𝒅𝒊𝒏𝒈 𝑡𝑒 𝑚𝑜𝑑𝑎𝑙 𝑐𝑙𝑎𝑠𝑠.
𝑤 − 𝑖𝑠 𝑡𝑒 𝑤𝑖𝑑𝑡 𝑜𝑓 𝑡𝑒 𝑚𝑜𝑑𝑎𝑙 𝑐𝑙𝑎𝑠𝑠.
Example 1: The ages of newly hired, unskilled employees are grouped into the following
distribution. Then compute the modal age?
Ages 18 − 20 21 − 23 24 − 26 27 − 29 30 − 32
Number 4 8 11 20 7
Solution: First we determine the modal class. The modal class is 27 − 29, since it has the highest
frequency. 𝑇𝑢𝑠, 𝑙𝑐𝑏𝑥 = 26.5, 𝑤 = 3, ∆1 = 20 − 11 = 9, ∆2 = 20 − 7 = 13.
∆1 9 27
𝑋 = 𝑙𝑐𝑏𝑥 + 𝑥 𝑤 = 26.5 + 𝑥 3 = 26.5 + = 26.5 + 1.2 = 𝟐𝟕. 𝟕
∆1 + ∆2 9 + 13 22
Interpretation: The age of most of these newly hired employees is 27.7 (27 years and 7 months).
Example 2: The following table shows the distribution of a group of families according to their
expenditure per week. The median and the mode of the following distribution are known to be
25.50 Birr and 24.50 Birr respectively. Two frequency values are however missing from the
table. Find the missing frequencies.
Class interval 1 − 10 11 − 20 21 − 30 31 − 40 41 − 50
Frequency 14 𝑓2 27 𝑓4 15
Solution: The LCF table of the given distribution can be formed as follows.
Expenditure (CI) 1 − 10 11 − 20 21 − 30 31 − 40 41 − 50
Number of families (fi) 14 𝑓2 27 𝑓4 15
LCF 14 14 + 𝑓2 41 + 𝑓2 41 + 𝑓2 + 𝑓4 56 + 𝑓2 + 𝑓4
Here: 𝑛 = 56 + 𝑓2 + 𝑓4 . Since the median and the mode are Birr 25.5 & 24.5 respectively then
the class 21 − 30 is the median class as well as the modal class.
56+𝑓2 +𝑓4
−(14+𝑓2) x 10
2
25.5 = 20.5 + (𝑖)
27
27−𝑓2 x 10
24.5 = 20.5 + (27−𝑓 (𝑖𝑖)
2 )+(27−𝑓4 )
Page 9
4. The main drawback of mode is that often it does not exist.
5. Often its values are not unique.
2.3 Measure of non - central location (Quintiles’)
There are three types of quintiles. These are:
1. Quartiles
The quartiles are the three points, which divide a given order data into four equal parts. These
𝑖 𝑥 (𝑛+1)𝑡
𝑄𝑖 = , 𝑖 = 1, 2, 3. → 𝑓𝑜𝑟 𝑟𝑎𝑤 𝑑𝑎𝑡𝑎.
4
n+1 th
Q1 is the value corresponding to ( ) ordered observation.
4
n+1 th
Q2 is the value corresponding to 2 𝑥 ( ) ordered observation.
4
n+1 th
Q3 is the value corresponding to 3 𝑥 ( ) ordered observation.
4
Example: Consider the age data given below and calculate Q1, Q2, and Q3.
19, 20, 22, 22, 17, 22, 20, 23, 17, 18
Solution: First arrange the data in ascending order, n=10.
17, 17, 18, 19, 20, 20, 22, 22, 22, 23
n+1 th 10+1 th
Q1 = ( ) =( ) = (2.75)th observation = 2nd observation + 0.75 (3rd - 2nd)
4 4
22)= 22
The class corresponding to this lcf is called the ith quartile class. This is the class where Qi lies.
The unique value of the ith quartile (Qi) is then calculated by the formula
𝒊𝒙𝒏
− 𝒍𝒄𝒇𝒑 𝒙 𝒘
𝐐𝐢 = 𝐥𝐜𝐛𝒒𝒊 + 𝟒 , 𝒇𝒐𝒓 𝒊 = 𝟏, 𝟐, 𝟑.
𝒇𝒒𝒊
𝑊𝑒𝑟𝑒: lcb𝑞 𝑖 − 𝑖𝑠 𝑡𝑒 𝒍𝒄𝒃 𝑜𝑓 𝑡𝑒 𝑖𝑡 𝑞𝑢𝑎𝑟𝑡𝑖𝑙𝑒 𝑐𝑙𝑎𝑠𝑠.
𝑓𝑞 𝑖 − 𝑖𝑠 𝑡𝑒 𝑓𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 𝑜𝑓 𝑡𝑒 𝑖𝑡 𝑞𝑢𝑎𝑟𝑡𝑖𝑙𝑒 𝑐𝑙𝑎𝑠𝑠.
𝑙𝑐𝑓𝑝 𝑖𝑠 𝑡𝑒 𝑙𝑐𝑓 𝑐𝑜𝑟𝑟𝑒𝑠𝑝𝑜𝑛𝑑𝑖𝑛𝑔 𝑡𝑜 𝑡𝑒 𝑐𝑙𝑎𝑠𝑠 𝒊𝒎𝒎𝒆𝒅𝒊𝒂𝒕𝒆𝒍𝒚 𝒑𝒓𝒆𝒄𝒆𝒅𝒊𝒏𝒈 𝑡𝑒 𝑖𝑡 𝑞𝑢𝑎𝑟𝑡𝑖𝑙𝑒 𝑐𝑙𝑎𝑠𝑠.
𝑁𝑜𝑡𝑒: 𝑄2 = 𝑚𝑒𝑑𝑖𝑎𝑛
2. Percentiles (P)
Percentiles are 99 points, which divide a given ordered data into 100 equal parts. These
𝑚 𝑥 (𝑛 + 1)𝑡
𝑃𝑚 = , 𝑚 = 1, 2, … ,99. → 𝑓𝑜𝑟 𝑟𝑎𝑤 𝑑𝑎𝑡𝑎.
100
Page 10
Calculation of percentiles for grouped data
For the grouped data, the computations of the 99 percentiles can be done as follows:
𝑚𝑥𝑛 𝑚𝑥𝑛
Calculate and search the minimum lcf which is ≥ , 𝑓𝑜𝑟 𝑚 = 1, 2, … ,99.
100 100
The class corresponding to this lcf is called the mth percentile class. This is the class where Pm
lies.
The unique value of the mth percentile (Pm)) is then calculated by the formula
𝒎𝒙𝒏
− 𝒍𝒄𝒇𝒑 𝒙 𝒘
𝐩𝐦 = 𝐥𝐜𝐛𝒑𝒎 + 𝟏𝟎𝟎 , 𝒇𝒐𝒓 𝒎 = 𝟏, 𝟐, … , 𝟗𝟗.
𝒇𝒑𝒎
𝑊𝑒𝑟𝑒: 𝑙𝑐𝑏𝑝 𝑚 , 𝑓𝑝 𝑚 𝑎𝑛𝑑 𝑙𝑐𝑓𝑝 𝑤𝑖𝑙𝑙 𝑎𝑣𝑒 𝑎 𝑠𝑖𝑚𝑖𝑙𝑎𝑟 𝑖𝑛𝑡𝑒𝑟𝑝𝑟𝑒𝑡𝑎𝑡𝑖𝑜𝑛 𝑎𝑠 𝑖𝑛 𝑞𝑢𝑎𝑟𝑡𝑖𝑙𝑒𝑠.
3. Deciles (D)
Deciles are the nine points, which divide the given ordered data into 10 equal parts.
𝑘 𝑥 (𝑛 + 1)𝑡
𝐷𝑘 = , 𝑘 = 1, 2, … ,9.
10
For the grouped data, the computations of the 9 deciles can be done as follows:
𝑘𝑥𝑛 𝑘𝑥𝑛
Calculate and search the minimum lcf which is ≥ , 𝑘 = 1, 2, … ,9.
10 10
The class corresponding to this lcf is called the kth decile class. This is the class where Dk lies.
The unique value of the kth decile (𝐷𝑘 ) is calculated by the formula
𝒌𝒙𝒏
− 𝒍𝒄𝒇𝒑 𝒙 𝒘
𝐃𝐤 = 𝐥𝐜𝐛𝑫𝒌 + 𝟏𝟎 , 𝒇𝒐𝒓 𝒌 = 𝟏, 𝟐, … , 𝟗.
𝒇𝑫𝒌
𝑊𝑒𝑟𝑒: 𝑙𝑐𝑏𝐷𝑘 , 𝑓𝐷𝑘 𝑎𝑛𝑑 𝑙𝑐𝑓𝑝 𝑤𝑖𝑙𝑙 𝑎𝑣𝑒 𝑎 𝑠𝑖𝑚𝑖𝑙𝑎𝑟 𝑖𝑛𝑡𝑒𝑟𝑝𝑟𝑒𝑡𝑎𝑡𝑖𝑜𝑛 𝑎𝑠 𝑖𝑛 𝑞𝑢𝑎𝑟𝑡𝑖𝑙𝑒𝑠 𝑎𝑛𝑑 𝑝𝑒𝑟𝑐𝑒𝑛𝑡𝑖𝑙𝑒𝑠.
Note that: 𝑚𝑒𝑑𝑖𝑎𝑛 = Q2 = D5 = P50 and 𝐷1 , 𝐷2 , … , 𝐷9 𝑐𝑜𝑟𝑟𝑒𝑠𝑝𝑜𝑛𝑑 𝑡𝑜 𝑃10 , 𝑃20 , … , 𝑃90
𝑄1 , 𝑄2 𝑎𝑛𝑑 𝑄3 𝑐𝑜𝑟𝑟𝑒𝑠𝑝𝑜𝑛𝑑𝑖𝑛𝑔 𝑡𝑜 𝑃25 , 𝑃50 𝑎𝑛𝑑 𝑃75 .
Example: For the following FD data , find
a) 𝑄1 , 𝑄2 𝑎𝑛𝑑 𝑄3 b) 𝑃25 , 𝑃30 , 𝑃50 𝑎𝑛𝑑 𝑃75 c) 𝐷1 , 𝐷2 , 𝐷3 𝑎𝑛𝑑 𝐷5
interval 21 − 22 23 − 24 25 − 26 27 − 28 29 − 30
F 10 22 20 14 14
interval 21 − 22 23 − 24 25 − 26 27 − 28 29 − 30 total
F 10 22 20 14 14 80
Lcf 10 32 52 66 80
𝑛 80
a) 𝑄1 =? = = 20. Thus, the minimum lcf just ≥ 20 is 32 so the class corresponding to
4 4
this 𝑙𝑐𝑓 𝑖𝑠 23 − 24, is the first quartile class. lcb𝑞 1 = 22.5, 𝑤 = 2, 𝑓𝑞 1 = 22, 𝑙𝑐𝑓𝑝 = 10.
𝑛
−𝑙𝑐𝑓𝑝 𝑥𝑤 20−10 𝑥2
4
Q1 = lcb𝑞 1 + = 22.5 + = 23.41.
𝑓𝑞 1 22
2𝑛 160
𝑄2 =? = = 40. Thus, the minimum lcf just ≥ 40 is 52 so the class corresponding to
4 4
this 𝑙𝑐𝑓 𝑖𝑠 25 − 26, is the second quartile class. lcb𝑞 2 = 24.5, 𝑤 = 2, 𝑓𝑞 2 = 20, 𝑙𝑐𝑓𝑝 = 32.
2𝑥𝑛
−𝑙𝑐𝑓𝑝 𝑥𝑤 40−32 𝑥2
4
Q2 = lcb𝑞 2 + = 24.5 + = 25.3.
𝑓𝑞 2 20
𝑄3 = 27.64.
Page 11
25𝑥𝑛 25𝑥80
b) 𝑃25 =? = = 20. Thus, the minimum lcf just ≥ 20 is 32 so the class
100 100
corresponding to this 𝑙𝑐𝑓 𝑖𝑠 23 − 24, is the 25th percentile class.
𝑇𝑢𝑠, lcb𝑝 25 = 22.5, 𝑤 = 2, 𝑓𝑝 25 = 22, 𝑙𝑐𝑓𝑝 = 10.
25𝑥𝑛
− 𝑙𝑐𝑓𝑝 𝑥 𝑤 20 − 10 𝑥 2
p25 = lcb𝑝 25 + 100 = 22.5 + = 23.41.
𝑓𝑝 25 22
p20 = 23.045.
p30 = 23.77.
p50 = 25.3.
p75 = 27.64.
1𝑥𝑛 80
C) 𝐷1 =? = 10 = 8. Thus, the minimum lcf just ≥ 8 is 10 so the class corresponding to
10
this 𝑙𝑐𝑓 𝑖𝑠 21 − 22, is the first decile class. 𝑇𝑢𝑠, lcb𝐷1 = 20.5, 𝑤 = 2, 𝑓𝐷1 = 10, 𝑙𝑐𝑓𝑝 = 0.
1𝑥𝑛
− 𝑙𝑐𝑓𝑝 𝑥 𝑤 8−0 𝑥2
D1 = lcb𝐷1 + 10 = 20.5 + = 22.1 =≫ 𝑢𝑝𝑡𝑜 𝑐𝑙𝑎𝑠𝑠𝑏𝑜𝑢𝑛𝑑𝑎𝑟𝑦.
𝑓𝐷1 10
D2 = 23.045.
D3 = 23.77.
D5 = 25.3.
:. Q1 = P25 , Q2 = P50 and Q3 = P75 D1 = P10, D2 = P20, D3 = P30 and D5 = P50
and median = Q2 = D5 = P50
Page 12
In general, the sample variance is computed by:
𝑛 𝑛
𝑖=1𝑥𝑖 − 𝑥 2 2
𝑖=1 𝑥𝑖 − 𝑛𝑥
2
= . → 𝑓𝑜𝑟 𝑟𝑎𝑤 𝑑𝑎𝑡𝑎.
𝑛−1 𝑛−1
𝑘 2 𝑘 2 2
𝑖=1 𝑓𝑖 𝑥𝑖 − 𝑥 𝑖=1 𝑓𝑖 𝑥𝑖 − 𝑛𝑥
𝑠2 = 𝑘 = . → 𝑓𝑜𝑟 𝑢𝑛𝑔𝑟𝑜𝑢𝑝𝑒𝑑 𝑑𝑎𝑡𝑎.
𝑖=1 𝑓𝑖 − 1 𝑛−1
𝑘
𝑖=1 𝑓𝑖 𝑚𝑖 − 𝑥 2 𝑘
𝑖=1 𝑓𝑖 𝑚𝑖 2 − 𝑛𝑥 2
𝑘 = . → 𝑓𝑜𝑟 𝑔𝑟𝑜𝑢𝑝𝑒𝑑 𝑑𝑎𝑡𝑎.
𝑖=1 𝑓𝑖 − 1 𝑛−1
Standard Deviation: it is the square root of variance. Its advantage over the variance is that it is
in the same units as the variable under the consideration. It is a measure of the average variation
in a set of data. It is a measure of how far, on the average, an individual measurements is from
the mean. 𝑆. 𝑑 = 𝑣𝑎𝑟𝑖𝑎𝑛𝑐𝑒 = 𝑆 2 = 𝑆.
Example 1: Compute the variance for the sample: 5, 14, 2, 2 and 17.
𝑛 𝑛 2
Solution: 𝑛 = 5, 𝑖=1 𝑥𝑖 = 40, 𝑥 = 8 , 𝑖=1 𝑥𝑖 = 518 .
𝑛 2
2 𝑖=1 𝑥𝑖− 𝑛𝑥 2 518 − 5 𝑥 82
𝑠 = = = 49.5. , 𝑆 = 49.5 = 7.04.
𝑛−1 5−1
Example 2: Suppose the data given below indicates time in minute required for a laboratory
experiment to compute a certain laboratory test. Calculate the mean, variance and standard
deviation for the following data.
𝒙𝒊 32 36 40 44 48 Total
𝒇𝒊 2 5 8 4 1 20
𝒇𝒊 𝒙𝒊 64 180 320 176 48 788
𝒇𝒊 𝒙𝒊 𝟐 2048 6480 12800 7744 2304 31376
𝑛 𝑛 2
𝑖=1 𝒇𝒊 𝒙𝒊 788 𝑖=1 𝒇𝒊 𝑥 𝑖 − 𝑛𝑥 2 31376 −20 𝑥 39.4 2
𝑥= = = 39.4 , 𝑠 2 = = = 17.31. , 𝑆 = 17.31 = 4.16.
𝑛 20 𝑛−1 19
Properties of Variance
1. The variance is always non-negative ( 𝑠 2 ≥ 0).
2. If every element of the data is multiplied by a constant "c", then the new variance
𝑠 2 𝑛𝑒𝑤 = 𝑐 2 𝑥 𝑠 2 𝑜𝑙𝑑 .
3. When a constant is added to all elements of the data, then the variance does not change.
4. The variance of a constant (c) measured in n times is zero. i.e. (var(c) = 0).
Exercise: Verify the above properties.
Uses of the Variance and Standard Deviation
1. They can be used to determine the spread of the data. If the variance or S.D is large, then
the data are more dispersed.
2. They are used to measure the consistency of a variable.
3. They are used quit often in inferential statistics.
5. Coefficient of Variation (C.V)
Whenever the two groups have the same units of measurement, the variance and S.D for each
can be compared directly. A statistics that allows one to compare two groups when the units of
measurement are different is called coefficient of variation. It is computed by:
𝜎
𝐶. 𝑉 = 𝑥 100% → 𝑓𝑜𝑟 𝑝𝑜𝑝𝑢𝑙𝑎𝑡𝑖𝑜𝑛.
𝜇
𝑆
𝐶. 𝑉 = 𝑥 100% → 𝑓𝑜𝑟 𝑠𝑎𝑚𝑝𝑙𝑒.
𝑥
Page 13
Example: The following data refers to the hemoglobin level for 5 males and 5 female students.
In which case , the hemoglobin level has high variability (less consistency).
13+13.8+14.6+15.6+17 74 12+12.5+13.8+14.6+15.6 68
Solution: 𝑥𝑚𝑎𝑙𝑒 = 5
= 5
= 14.8 , 𝑥𝑓𝑒𝑚𝑎𝑙𝑒 = 5
= 5
= 13.7.
𝑛 2
𝑖=1 𝑥 𝑖 − 𝑛𝑥 2
𝑠 2 𝑚𝑎𝑙𝑒𝑠 = 𝑛−1
= 2.44. , 𝑆𝑚𝑎𝑙𝑒𝑠 = 2.44 = 1.56205.,
𝑛 2
𝑖=1 𝑥𝑖 − 𝑛𝑥 2
𝑠 2𝑓𝑒𝑚𝑎𝑙𝑒𝑠 = = 2.19. , 𝑆𝑓𝑒𝑚𝑎𝑙𝑒𝑠 = 2.19 = 1.479865.
𝑛−1
𝑆𝑚𝑎𝑙𝑒𝑠 1.56205
𝐶. 𝑉𝑚𝑎𝑙𝑒𝑠 = 𝑥 100% = 𝑥100% = 𝟏𝟎. 𝟓𝟔%,
𝑥 𝑚𝑎𝑙𝑒 14.8
𝑆𝑓𝑒𝑚𝑎𝑙𝑒𝑠 1.479865
𝐶. 𝑉𝑓𝑒𝑚𝑎𝑙𝑒𝑠 = 𝑥 100% = 𝑥100% = 𝟏𝟎. 𝟖%.
𝑥𝑓𝑒𝑚𝑎𝑙𝑒 13.7
Therefore, the variability in hemoglobin level is higher for females than for males.
Since ZA > ZB i.e. 2 > 0.71, student A performed better relative to his group than student B.
Therefore, student A has performed better relative to his group because the score's of student A
is two standard deviation above the mean score of section 1 while the score of student B is only
0.71 standard deviation above the mean score of students in section 2.
Page 14