Mathematics · Glossary

What is Median?

Definition 8.5 High School Mathematics · Chapter 8 — Descriptive Statistics

The median is a value that splits the sorted series in two halves: at least half the values are \leq the median, and at least half are \geq it. In practice, sort the NN values;

  • if NN is odd, the median is the middle value, in position N+12\frac{N+1}{2};
  • if NN is even, take the midpoint of the two middle values, in positions N2\frac N2 and N2+1\frac N2 + 1.

Examples

Example 8.6

Sorted series of 77 house prices (in thousands): 120120, 150150, 160160, 180180, 210210, 240240, 900900. The median is the 44th value, 180180. The mean is 19607=280\frac{1960}{7} = 280 — larger than 66 of the 77 prices! One extreme value (900900) pulls the mean far more than the median: the median is robust, the mean is not.

Example 8.9

Take the 1111 sorted values

2, 3, 5, 5, 6, 7, 8, 9, 9, 10, 12.2,\ 3,\ 5,\ 5,\ 6,\ 7,\ 8,\ 9,\ 9,\ 10,\ 12 .

Median: position 11+12=6\frac{11+1}{2} = 6, so the median is 77. Q1Q_1: 114=2.75\frac{11}{4} = 2.75, round up to 33; the 33rd value is 55. Q3Q_3: 334=8.25\frac{33}{4} = 8.25, round up to 99; the 99th value is 99. Range: 122=1012 - 2 = 10; interquartile range: 95=49 - 5 = 4.

Example 8.10 (Comparing two groups)

Two classes take the same test (scores out of 2020):

medianQ1Q_1Q3Q_3
class A121210101414
class B1212661717

Same median, very different spreads: class A is homogeneous (half its scores in [10,14]\intcc{10}{14}), class B is heterogeneous (its central half spans [6,17]\intcc{6}{17}). Indicators of center alone never tell the whole story.

Read in context →
Definition 17.2 High School Mathematics · Chapter 17 — Descriptive Statistics

A median of a sorted dataset is a value that splits it in half: at least half the values are \leq it, and at least half are \geq it. In practice, sort the nn values; if nn is odd, the median is the middle value; if nn is even, take the midpoint of the two middle values.

Examples

Example 17.3

For the running dataset, the sum is 144144, so xˉ=14412=12\bar x = \frac{144}{12} = 12. The two middle values (66th and 77th of the sorted list) are both 1212, so the median is 1212 too. Mean and median need not coincide: the median ignores how far the extreme values are, the mean does not. Replacing the top mark 1717 by 2020 moves the mean to 12.2512.25 but leaves the median at 1212.

Read in context →