To find the median, you need to arrange the data values in ascending order and determine the middle value. If there are an odd number of values, the median is the middle value. If there are an even number of values, the median is the average of the two middle values.
Arranging the data values in ascending order:
15, 20, 25, 25, 27, 28, 30, 34
Since there are eight values in the sample, which is an even number, we need to find the average of the two middle values. In this case, the middle values are 25 and 27.
Calculating the median:
Median = (25 + 27) / 2
Median = 52 / 2
Median = 26
Therefore, the median of the given sample is 26.