How do you Calculate the Median

How do you Calculate the Median

Median of a distribution is the value of the variable which divides the distribution into two equal parts i.e. it is the value of the variable such that the number of observations above it is equal to the number of observations below it.
If the values xi in the raw data. are arranged in order of increasing or decreasing magnitude, then the middle, most value in the arrangement is called the median.
Algorithm :
Step I : Arrange the observations (values of the variate) in ascending or descending order of magnitude.
Step II  : Determine the total number of observations, say, n.
Step III  : If n is odd, then
Median = value of \({\left( {\frac{{n + 1}}{2}} \right)^{th}}\) observation
If n is even, then
Median = \(\frac{{Value\;of\;{{\left( {\frac{n}{2}} \right)}^{th}}observation + \;Value\;of\,{{\left( {\frac{n}{2} + 1} \right)}^{th}}observation}}{2}\)

The median can be calculated graphically while mean cannot be.
The sum of the absolute deviations taken from the median is less than the sum of the absolute deviations taken from any other observation in the data.
Median is not affected by extreme values.

Median Example Problems with Solutions

Example 1:    Find the median of the following data :
25, 34, 31, 23, 22, 26, 35, 28, 20, 32
Solution:    Arranging the data in ascending order, we get20, 22, 23, 25, 26, 28, 31, 32, 34, 35
Here, the number of observations n = 10 (even).
∴ Median = \(\frac{{Value\;of\;{{\left( {\frac{10}{2}} \right)}^{th}}observation + \;Value\;of\,{{\left( {\frac{10}{2} + 1} \right)}^{th}}observation}}{2}\)
⇒ Median = \(\frac{{Value\;of\;{5^{th}}observation\; + Value\;of\;{6^{th}}observation}}{2}\)
∴  Median = \(\frac{{26 + 28}}{2}\) = 27
Hence, median of the given data is 27.

Example 2:    Find the median of the following values :
37, 31, 42, 43, 46, 25, 39, 45, 32
Solution:    Arranging the data in ascending order, we have 25, 31, 32, 37, 39, 42, 43, 45, 46
Here, the number of observations n = 9 (odd)
∴ Median = Value of \({\left( {\frac{{9 + 1}}{2}} \right)^{th}}\) observation
= Value of 5th observation = 39.

Example 3:    The median of the observations 11, 12, 14, 18, x + 2, x + 4, 30, 32, 35, 41 arranged in ascending order is 24. Find the value of x.
Solution:    Here, the number of observations n = 10. Since n is even, therefore
Median =  \(\frac{{{{\left( {\frac{n}{2}} \right)}^{th}}observation\; + {{\left( {\frac{n}{2} + 1} \right)}^{th}}observation}}{2}\)
⇒   24 =  \(\frac{{{5^{th}}observation + {6^{th}}observation}}{2}\)
⇒   24 =  \(\frac{{(x + 2) + (x + 4)}}{2}\)
⇒   24 =  \(\frac{{2x + 6}}{2}\)
⇒   24 = x + 3   ⇒ x = 21.
Hence,  x = 21.

Example 4:    Find the median of the following data : 19, 25, 59, 48, 35, 31, 30, 32, 51. If 25 is replaced by 52, what will be the new median.
Solution:    Arranging the given data in ascending order, we have 19, 25, 30, 31, 32, 35, 48, 51, 59
Here, the number of observations n = 9 (odd)
Since the number of observations is odd. Therefore.
Median = Value of \({\left( {\frac{{9 + 1}}{2}} \right)^{th}}\) observations
⇒   Median = value of 5th observation = 32.
Hence, Median = 32
If 25 is replaced by 52, then the new observations arranged in ascending order are :
19, 30, 31, 32, 35, 48, 51, 52, 59
∴ New median = Value of 5th observation = 35.

Example 5:    Calculate the median for the following  distribution.

Weight  (in kg)Number of students
463
472
484
496
505
512
521

Solution:    The cumulative frequency table is constructed as shown below :

Weight  (xi)Number of students (fiCumulative frequency
4633
4725
4849
49615
50520
51222
52123

Here, n = 23, which is odd
Median  = \({t_{\frac{{23 + 1}}{2}}}\) = t12 = 49
(i.e. weight of the 12th student when the weights have been arranged in order)

Example 6:    The following data have been arranged in desending orders of magnitude 75, 70, 68, x + 2, x – 2, 50, 45, 40
If the median of the data is 60, find the value of x.
Solution:    The number of observations are 8, the median will be the average of 4th and 5th number
⇒   Median = \(\frac{{(x + 2) + (x-2)}}{2}\)
⇒   60 = \(\frac{{2x}}{2}\)  ⇒ x = 60

Example 7:    Find the median of the following data
(i)   17, 27, 37, 13, 18, 25, 32, 34, 23
(ii)  24, 37, 19, 41, 28, 32, 29, 31, 33, 21
Solution:    (i)   The scores when arranged in ascending order are
13, 17, 18, 23, 25, 27, 32, 34, 37
Here, the number of scores n = 9 (odd)
∴    Median = \({t_{\frac{{9 + 1}}{2}}}\) = t5 = 25
(ii)  The scores when arraged in ascending order are
19, 21, 24, 28, 29, 31, 33, 34, 37, 41.
Total number of scores = 10, which is even. So there will be two middle-terms which are t5 = 29 and t6 = 31.
∴  Median = \(\frac{{{t_5} + {t_6}}}{2} = \frac{{29 + 31}}{2}\) = 30

Example 8:    Find the median of the following data :
(i)   8, 10, 5, 7, 12, 15, 11
(ii)  12, 14, 10, 7, 15, 16
Solution:    (i)   8, 10, 5, 7, 12, 15, 11
These numbers are arranged in an order
5, 7, 8, 10, 11, 12, 15
The number of observations = 7 (odd)
⇒   Median = \(\frac{7+1}{2}\) = 4th term
⇒   Median = 10
(ii)  12, 14, 10, 7, 15, 16
These numbers are arranged in an order
7, 10, 12, 14, 15, 16
The number of observations = 6 (even)
The medians will be mean of  = 3rd and 4th terms i.e., 12 and 14
⇒  The median = \(\frac{12+14}{2}\) = 13

Example 9:    The following data have been arranged in desending orders of magnitude 75, 70, 68, x + 2, x – 2, 50, 45, 40
If the median of the data is 60, find the value of x.
Solution:    The number of observations are 8, the median will be the average of 4th and 5th number
⇒   Median = \(\frac{{(x + 2) + (x–2)}}{2}\)
⇒   60 = \(\frac{2x}{2}\)
⇒  x = 60

Example 10:    Find the median of 6, 8, 9, 10, 11, 12 and 13.
Solution:    Total number of terms = 7
The middle terms = \(\frac{1}{2}\) (7 + 1) = 4th
Median = Value of the 4th term = 10.
Hence, the median of the given series is 10.

Example 11:    Find the median of 21, 22, 23, 24, 25, 26, 27 and 28.
Solution:    Total number of terms = 8
Median
= Value of \(\frac{1}{2}\left[ {\frac{8}{2}th\,\,term + \,\left( {\frac{8}{2} + 1} \right)th\,term} \right]\)
= Value of \(\frac{1}{2}\) [4th term + 5th term]
= \(\frac{1}{2}\) [24 + 25] = \(\frac{49}{2}\) = 24.5

Example 12:    The number of runs scored by 11 players of a cricket team of school are 5, 19, 42, 11, 50, 30, 21, 0, 52, 36, 27. Find the median.
Solution:    Let us arrange the value in ascending order
0, 5, 11, 19, 21, 27, 30, 36, 42, 50, 52
∴  Median M = \({\left( {\frac{{n + 1}}{2}} \right)^{th}}\) value
= \({\left( {\frac{{11 + 1}}{2}} \right)^{th}}\) value = 6th value
Now 6th value in data is 27
∴        Median = 27 runs.

How do you Calculate Median of Grouped Frequency Distribution

How do you Calculate Median of Grouped Frequency Distribution

Median of Grouped Frequency Distribution
Median = ℓ + \(\frac{{\frac{N}{2} – C}}{f}\,\, \times \,\,h\)
where,
ℓ = lower limit of median class interval
C = cumulative frequency preceding to the median class frequency
f = frequency of the class interval to which median belongs
h = width of the class interval
N =  f1 + f2 + f3 + … + fn.
Working rule to find median
Step 1:      Prepare a table containing less than type cumulative frequency with the help of given frequencies.
Step 2 :     Find out the cumulative frequency to which \(\frac{N}{2}\) belongs. Class-interval of this cumulative frequency is the median class-interval.
Step 3 :     Find out the frequency f and lower limit l of this median class.
Step 4 :     Find the width h of the median class interval
Step 5 :     Find the cumulative frequency C of the class preceding the median class.
Step 6 :     Apply the formula,
Median = ℓ + \(\frac{{\frac{N}{2} – C}}{f}\,\, \times \,\,h\) to find the median

Read More:

Median of Grouped Frequency Distribution Example Problems with Solutions

Example 1:    Find the median of the followng distribution :

Wages (in Rs)No. of labourers
200 – 3003
300 – 4005
400 – 50020
500 – 60010
600 – 7006

Solution:    We have,                            

Wages (in Rs)No. of laboursLess than type cumulative frequency
200 – 30033
300 – 40058 = C
400 – 50020 = f28
500 – 6001038
600 – 700644

Here, the median class is 400 – 500 as \(\frac{44}{2}\) i.e. 22 belongs to the cumulative frequency of this class interval.
Lower limit of the median class = ℓ = 400
width of the class interval = h = 100
Cumulative frequency preceding median class frequency = C = 8
Frequency of Median class = f =20
Median = ℓ + h \(\left( {\frac{{\frac{N}{2} – C}}{f}} \right)\) = 400 + 100 \(\left( {\frac{{\frac{{44}}{2} – 8}}{{20}}} \right)\,\)
= 400 + 100 \(\left( {\frac{{22 – 8}}{{20}}} \right)\) = 400 + 100 \(\left( {\frac{{14}}{{20}}} \right)\)
= 400 + 70 = 470
Hence, the median of the given frequency distribution is 470.

Example 2:    Find the median for the following :

Class Interval0–88–1616–2424–3232–4040–48
Frequency8101624157

Solution:    

Class intervalFrequencyLess than type cumulative frequency
0 – 888
8 – 161018
16 – 241634 = C
24 – 3224 = f58
32 – 401573
40 – 48780

Since \(\frac{80}{2}\) = 40 lies in the cumulative frequency of the class interval 24 – 32, so 24 – 32 belongs to the median class interval.
Lower limit of median class interval = ℓ = 24.
Width of the class interval = h = 8
Total frequency = N = 80
Cumulative frequency preceding median class frequency = C = 34
Frequency of median class = f = 24
Median = ℓ + \(\left( {\frac{{\frac{N}{2} – C}}{f}} \right)\,\,\,h\)
= 24 + \(\left( {\frac{{\frac{{80}}{2} – 34}}{{24}}} \right)\) 8 = 24 + \(\left( {\frac{{40 – 34}}{{24}}} \right)\) 8
= 24 + 2 = 26
Hence, the median of the given frequency distribution = 26.

Example 3:    The following table shows the weekly drawn by number of workers in a factory :

Weekly Wages  (in Rs.)0–100100–200200–300300–400
No. of  workers40393430

Find the median income of the workers.
Solution:    

Weekly Wages  (in Rs.)No. of  workersLess than type cumulative frequency
0–1004040
100–2003979 = C
200–30034 = f113
300–40030143
400 – 50045188

Since \(\frac{188}{2}\) = 94 belongs to the cumulative frequency of the median class interval (200 – 300), so 200 – 300 is the median class.
Lower limit of the median class interval = ℓ = 200.
Width of the class interval = h = 100
Total frequency = N = 188
Frequency of the median class = f = 34
Cumulative frequency preceding median class
= C = 79
Median = ℓ + \(\left( {\frac{{\frac{N}{2} – C}}{f}} \right)\,\,\,h\) = 200 + \(\left( {\frac{{\frac{{188}}{2} – 79}}{{34}}} \right)\) 100
= 200 + \(\left( {\frac{{94 – 79}}{{34}}} \right)\) 100 = 200 + 44.117
= 244.117
Hence, the median of the given frequency distribution = 244.12.

Example 4:    The following frequency distribution gives the monthly consumption of electricity of 68 consumers of a locality. Find the median and mode of the data and compare them.

Monthly consumptionNumber of consumers
65 – 854
85 – 1055
105 – 12513
125 – 14520
145 – 16514
165 – 1858
185 – 2054

Solution:    

Monthly consumptionNumber of consumersLess than type cumulative frequency
65 – 8544
85 – 10559
105 – 1251322 =C
125 – 14520 = f42
145 – 1651456
165 – 185864
185 – 205468

Since \(\frac{68}{2}\) belongs to the cumulative frequency (42) of the class interval 125 – 145, therefore 125 – 145 is the median class interval
Lower limit of the median class interval = ℓ = 125.
Width of the class interval = h = 20
Total frequency = N = 68
Cumulative frequency preceding median class frequency = C = 22
Frequency of the median class = f = 20
Median = ℓ  + \(\left( {\frac{{\frac{N}{2} – C}}{f}} \right)\,\,\,h\) = 125 + \(\left( {\frac{{\frac{{68}}{2} – 22}}{{20}}} \right)\) 20
= 125 + \(\frac{{12 \times 20}}{{20}}\) = 125 + 12 = 137
The frequency of class 125 – 145 is maximum i.e., 20, this is the modal class,
xk = 125, fk = 20, fk-1 = 13, fk+1 = 14, h = 20
Mode = xk + \(\frac{{f – {f_{k – 1}}}}{{2f – {f_{k – 1}} – {f_{k + 1}}}}\)
= 125 + \(\frac{{20 – 13}}{{40 – 13 – 14}}\) × 20
= 125 + \(\frac{7}{{40 – 27}}\) × 20 = 125 + \(\frac{7}{{13}}\) × 20
= 125 + 10.77 = 135.77

Example 5:    Compute the median from the marks obtained by the students of class X.

MarksNumber of Students
40 – 495
50 – 5910
60 – 6920
70 – 7930
80 – 8920
90 – 9915

Solution:    First we will form the less than type cumulative  frequency distribution and we make the distribution continuous by subtracting 0.5 from the lower limits and adding 0.5 to the upper limits.

MarksNumber of studentsLess than type cumulative frequency
39.5 – 49.555
49.5 – 59.51015
59.5 – 69.52035 = C
69.5 – 79.530 = f65
79.5 – 89.52085
89.5 – 99.515100

Since \(\frac{100}{2}\) belongs to the cumulative frequency (65) of the class interval 69.5 – 79.5, therefore 69.5 – 79.5 is the median class.
Lower limit of the median class = ℓ = 69.5.
Width of the class interval = h = 10
Total frequency = N = 100
Cumulative frequency preceding median class frequency = C = 35
Frequency of median class = f = 30
Median = ℓ + \(\left( {\frac{{\frac{N}{2} – C}}{f}} \right)\,\,\,h\) = 69.5 + \(\left( {\frac{{\frac{{100}}{2} – 35}}{{30}}} \right)\) 10
= 69.5 + \(\left( {\frac{{50 – 35}}{{30}}} \right)\) 10 = 69.5 + \(\frac{{10 \times 15}}{{30}}\)
= 69.5 + 5 = 74.5
Hence, the median of given frequency distribution is 74.50.

Example 6:    An incomplete frequency distribution is given as follows :

VariableFrequency
10 – 2012
20 – 3030
30 –40?
40 – 5065
50 – 60?
60 – 7025
70 – 8018
Total229

Given that the median value is 46, determine the missing frequencies using the median formula.
Solution:    Let the frequency of the class 30 – 40 be f1 and that of 50 – 60 be f2.
From the last item of the third column, we have
150 + f1 + f2 = 229
⇒   f1 + f2 = 229 – 150
⇒ f1 + f2 = 79
Since, the median is given to be 46, the class 40 – 50 is median class
Therefore, ℓ = 40, C = 42 + f1, N = 299, h = 10
Median = 46, f = 65
Median = ℓ + \(\left( {\frac{{\frac{N}{2} – C}}{f}} \right)\,\,\,h\) = 46
46 = 40 + 10 \(\frac{{\left( {\frac{{229}}{2} – 42 – {f_1}} \right)}}{{65}}\)
⇒ 6 = \(\frac{{10}}{{65}}\left( {\frac{{229}}{2} – 42 – {f_1}} \right)\)
⇒ 6 = \(\frac{2}{{13}}\left( {\frac{{229 – 84 – 2{f_1}}}{2}} \right)\)
⇒ 78 = 229 – 84 – 2f1  ⇒ 2f1 = 229 – 84 – 78
⇒ 2f1 = 67   ⇒ f1 = \(\frac{{67}}{2}\) = 33.5 = 34
Putting the value of f1 in (1), we have
34 + f2 = 79
⇒ f2 = 45
Hence, f1 = 34 and f2 = 45.

Example 7:    Recast the following cumulative table in the form of an ordinary frequency distribution and determine the median.

No. of days absentNo. of students
less than 529
less than 10224
less than 15465
less than 20582
less than 25634
less than 30644
less than 35650
less than 40653
less than 45655

Solution:    

No. of daysNo. of studentsNo. of days absentNo. of studentsLess than type cumulative frequency
less than 5290 – 52929
less than 102245 – 10195224 = C
less than 1546510 – 15241 = f465
less than 2058215 – 20117582
less than 2563420 – 2552634
less than 3064425 – 3010644
less than 3565030 – 356650
less than 4065335 – 403653
less than 4565540 – 452655

Since \(\frac{655}{2}\) belongs to the cumulative frequency (465) of the class interval 10 – 15, therefore 10 – 15 is the median class.
Lower limit of the median class = ℓ = 10.
Width of the class interval = h = 5
Total frequency = N = 655
Cumulative frequency preceding median class frequency = C = 224
Frequency of median class = f = 241
Median = ℓ + \(\left( {\frac{{\frac{N}{2} – C}}{f}} \right)\,\,\,h\) = 10 + 5 \(\left( {\frac{{\frac{{655}}{2} – 224}}{{241}}} \right)\)
= 10 + 5 \(\left( {\frac{{327.5 \times 224}}{{241}}} \right)\) = 10 + \(\frac{{5 \times 103.5}}{{241}}\)
= 10 + 2.147 = 12.147
Hence, the median of given frequency distribution is 12.147.