Observe the given data, the outlier of this data is
25 as it is very different from the rest of the values of the data set.
Arrange the given data in ascending order.
Here, the number of values is even, therefore median is calculated by taking the mean of these two middle numbers, i.e.,
7 and
8.
Median=Mean of two middle numbers=7+82=152=7.5
Thus, the median with outlier is
7.5.
Now, observe the given data without outlier.
Since, the middle number is
7, therefore the median of this data is
7.
Hence, the median without outlier is
7.
Thus, the difference between the median with and without outlier is calculated as,
Required difference=Median with outlier−Median without outlier=7.5−7=0.5
Hence, the difference between the median with and without outlier for the given data set is
0.5.