The median’s position in an ordered row:
Sample with an odd number of observations, the (𝑛𝑛 + 1)/2th observation:
12, 13, 13, 16, 17, 19, 20(7 + 1)/2 = 4th observation
Sample with an even number of observations, the average value between the(𝑛/2)th and (𝑛/2 + 1)th ordered observation:
12, 13, 13, 16, 17, 19, 20, 28
Median is between 16 and 17: 16.5