Solveeit Logo

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,4031,38,27,28,36,25,35,40

Explanation

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)\left( n \right)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=(n+12)thobservationMedian = {\left( {\dfrac{{n + 1}}{2}} \right)^{th}}observation , if nn is odd.
Median=(n2)thobservation+(n2+1)thobservation2Median = \dfrac{{{{\left( {\dfrac{n}{2}} \right)}^{th}}observation + {{\left( {\dfrac{n}{2} + 1} \right)}^{th}}observation}}{2}, if nn is even.
Where, nn 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)\left( n \right) present in the given data.
First, we shall arrange the given data.
Thus, we have 25,27,28,31,35,36,38,4025,27,28,31,35,36,38,40
Here, the number of values (n)\left( n \right) =88, which is odd.
So, by the above-median formula, we need to apply Median=(n2)thobservation+(n2+1)thobservation2Median = \dfrac{{{{\left( {\dfrac{n}{2}} \right)}^{th}}observation + {{\left( {\dfrac{n}{2} + 1} \right)}^{th}}observation}}{2}
We shall substitute n=8n = 8in the above formula.
Thus, Median=(82)thobservation+(82+1)thobservation2Median = \dfrac{{{{\left( {\dfrac{8}{2}} \right)}^{th}}observation + {{\left( {\dfrac{8}{2} + 1} \right)}^{th}}observation}}{2}
=(4)thobservation+(4+1)thobservation2= \dfrac{{{{\left( 4 \right)}^{th}}observation + {{\left( {4 + 1} \right)}^{th}}observation}}{2}
=4thobservation+5thobservation2= \dfrac{{{4^{th}}observation + {5^{th}}observation}}{2}
=31+352= \dfrac{{31 + 35}}{2} (Here the fourth observation is 3131 and the fifth observation is 3535)
=662= \dfrac{{66}}{2}
=33= 33
Hence, the median of the given set of values is 3333.

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)\left( n \right) present in the given data. If (n)\left( n \right) is odd, directly write the center value as the median. If (n)\left( n \right) is even, then find the average of two middle numbers to obtain the median.