Median

By Jude Wallis · Published

The median is the middle value of an ordered data set, splitting it so that half the values fall below and half above.

Sort the values from smallest to largest and the median is whatever sits at position n+12\frac{n+1}{2} (n plus 1, over 2), where nn is how many values there are. When nn is odd that position lands on an actual observation. When nn is even it lands between two of them and the median is their average, so the median of an even-sized set need not be a number that appears in the data at all. It is commonly written MM.

Take the seven quiz scores 12, 15, 15, 18, 22, 24, 91. They are already sorted and n=7n = 7, so the median is the value in position 4: M=18M = 18. The mean of the same seven scores is 28.14. Now change the 91 to 27. The median is still 18, while the mean drops to 19. That is resistance: the median only counts how many values sit on each side of it and ignores how far away they are, so moving one extreme value cannot shift it by more than one position.

With an even count the averaging step kicks in. For 2, 6, 8, 10 the median is (6+8)/2=7(6 + 8) / 2 = 7, a number that appears nowhere in the list.

The most common error is reporting the position instead of the value. For those seven scores the answer is 18, not 4; position 4 only tells you where to look. Two related slips are taking the middle of the list before sorting it, and averaging the smallest and largest values, which gives the midrange rather than the median.

The median is also the 50th percentile and the center of the five-number summary. The quartiles are the medians of the halves on either side of it, with the median itself left out of each half under the TI-84 convention this site uses: for the seven scores, 12, 15, 15 gives Q1=15Q_1 = 15 and 22, 24, 91 gives Q3=24Q_3 = 24. Comparing the two centers is also a quick read on shape: here the mean of 28.14 sits far above the median of 18, which usually signals either a right skew or a single high value dragging the mean up. In this set it is the second of those, since the 1.5 IQR rule puts the upper fence at 24+1.5(9)=37.524 + 1.5(9) = 37.5 and flags 91 as an outlier.

Where this comes up

45 pages on the site use this term.

More describing data terms, or browse the full statistics glossary.