Question
Question: Find the median of the following data \(31,38,27,28,36,25,35,40\)...
Find the median of the following data
31,38,27,28,36,25,35,40
Solution
The median is the process of finding the mid-value in the given set of data. To calculate the median, we need to first arrange the values in order (increasing or decreasing) and then we have to count the number of values (n)present in the given data. Then we shall apply the given formula.
Formula to be used:
The formula to be used to find the median of the given set of values is as follows.
Median=(2n+1)thobservation , if n is odd.
Median=2(2n)thobservation+(2n+1)thobservation, if n is even.
Where, n is the number of observations.
Complete step-by-step answer:
Let us consider the given set of values \left\\{ {31,38,27,28,36,25,35,40} \right\\}.
To calculate the median, we need to first arrange the values in order (increasing or decreasing) and then we have to count the number of values (n) present in the given data.
First, we shall arrange the given data.
Thus, we have 25,27,28,31,35,36,38,40
Here, the number of values (n) =8, which is odd.
So, by the above-median formula, we need to apply Median=2(2n)thobservation+(2n+1)thobservation
We shall substitute n=8in the above formula.
Thus, Median=2(28)thobservation+(28+1)thobservation
=2(4)thobservation+(4+1)thobservation
=24thobservation+5thobservation
=231+35 (Here the fourth observation is 31 and the fifth observation is 35)
=266
=33
Hence, the median of the given set of values is 33.
Note: The median can be found without using the formula. First, we shall arrange the given set of values either in ascending or descending order. Then we have to count the number of values (n) present in the given data. If (n) is odd, directly write the center value as the median. If (n) is even, then find the average of two middle numbers to obtain the median.