Professional Documents
Culture Documents
SW Stat - Median of Grouped Data
SW Stat - Median of Grouped Data
Step 2: Define the class size, and divide the data into
different classes.
Step 3: Calculate the cumulative frequency of each class.
c)/f × h.
Where,
l = lower limit of median class
n = total number of observations
c = cumulative frequency of the preceding class
f = frequency of median class
h = class size (upper limit - lower limit)
Definition of Median
Finding the median of any given data is simple since the median is
the middlemost value of the data. Since the data is grouped, it is
divided into class intervals. Let us learn the steps to finding the
median of grouped data.
Step 1: Construct the frequency distribution table with
class intervals and frequencies.
Step 2: Calculate the cumulative frequency of the data by
adding the preceding cumulative value of the frequency
with the current value.
Step 3: Find the value of n by adding the values in
frequency (which is nothing but the last value of the
cumulative frequency column)
Step 4: Find the median class. If n is odd, the median is the
(n+1)/2th value. If n is even, then the median will be
the average of the n/2th and the (n/2 +1)th observation.
Step 5: Find the lower limit of the class interval and the
cumulative frequency.
Step 6: Apply the formula for median in statistics: Median =
l + [(n/2−c)/f] × h
Let us look at an example to understand this better.
For Example: Calculate the median for the following data:
0- 10 - 30 - 60 - 80 -
Marks
10 30 60 80 90
Number of
6 20 37 10 7
students
Solution:
We need to calculate the cumulative frequencies to find the median.
Number
Cumulativ
Mark of
e
s student
frequency
s
0-
6 0+6 6
20
20 - 2
20 6 + 20
40 6
40 - 6
37 26 + 37
60 3
60 - 7
10 63 + 10
80 3
80 - 8
7 73 + 7
100 0
Before starting to use the median of grouped data formula, find the
median class by using the above procedure. Then the formula to
calculate the median of grouped data is l + [(n/2−c)/f] × h, where:
l = lower limit of median class
n = total number of observations
c = cumulative frequency of the preceding (of median class)
class
f = frequency of median class
h = size of each class