The first step to finding the median of a data set is to arrange the numbers in ascending or descending order:
The median is the middle term of a data set after it has been arranged. If there are an even number of data, the median is the average of the two middle numbers.
From the given data, the number of data is 8. The two middle numbers are 4 and 5.
Hence, the median is calculated to be:
The median is 4.5.