Definition · applies to data and distributions

Elementary

Think of a list of numbers, sorted from smallest to largest. The median of the list is the middle value. With an even number of values, it is the mean of the two middle values.

Undergraduate (probability)

Consider a random variable $X$. A median of $X$ is a number $m$ such that

\[P(X \leq m) \geq \frac{1}{2} \quad \text{and} \quad P(X \geq m) \geq \frac{1}{2}.\]

Examples

Worked examples

  • Value:

    $5$

    $\operatorname{median}(2, 5, 9) = 5$
  • Value:

    $\operatorname{median}(1, 1, 2, 3, 100) = 2$

    The median of the data $1, 1, 2, 3, 100$ is $2$, the middle value in sorted order, which the outlier $100$ does not affect.
  • Value:

    $\frac{3 + 4}{2} = 3.5$

    The expected value and the median of a fair die roll are both $3.5$, which is not a possible outcome.

Notes

Other meanings of “median”

In geometry, a median of a triangle is the line segment from a corner of the triangle to the midpoint of the opposite side.

A median is not a meridian, which is a line of longitude on the Earth, a half circle from the North Pole to the South Pole. Both words come from the Latin for “middle.”

Distinctions involving this term

All definitions · All distinctions · All examples · Notation