Worked examples · Sheet 2
Medians and ordering
Theory used:Central position and highest frequencyRange
Go to: Exercise 1Exercise 2Exercise 3
Exercise 1
Find the median of . Recalculate it after removing the largest value.
The repeated value occupies two distinct positions. With five observations the central position is the third, giving . Removing the maximum leaves four observations. The earlier part of the ordering is the same, but the central positions change to the second and third. Take the mean of the second and . The example shows how removing a value far from the centre can change the median by changing the sample size.
Exercise 2
The values occur times, respectively. Use cumulative frequencies to find the median.
| Value | Frequency | Cumulative count | Positions |
|---|---|---|---|
| – | |||
| – | |||
| – | |||
With ten observations, the central positions are the fifth and sixth. The cumulative count at is , so the fifth observation is the last one equal to . The count rises from to at , which takes positions six through nine. This identifies both central values without writing out the whole list. The result lies between the two central values and is absent from the observations.
Exercise 3
The data are . For which real values of is the median ?
With five observations, look for the third in order. If , the three values , , and come before , so the third value is less than . If , only and are less than , and the next value is itself. The case is allowed because the two equal observations take positions three and four. The condition is .