Find the median of the following data.
20,43,38,29,33,45,20,34
To calculate the median we need to take "middle" elements in an ordered set. If the set has an odd number of elements, then there is only one middle element, otherwise there are 2 such elements and median is the mean of those elements.
So arranging the data in increasing order, we have,
20,20,29,33,34,38,43,45
Here the middle elements are 33 and 34, therefore median = mean of these two numbers.
Median = (33+34)/2
= 33.5