Skip to content

Median

Definition

Let XX be a random variable with distribution function FXF_X. A median of XX is a real number mm such that

P(X≤m)≥12andP(X≥m)≥12.\mathbb{P}(X\le m)\ge \frac{1}{2}\quad\text{and}\quad \mathbb{P}(X\ge m)\ge \frac{1}{2}.

Interpretation

A median is a central value that splits the distribution into two halves. Unlike the mean, it depends only on the order of the values, not on how far out the extreme ones lie.

A right-skewed density split by a vertical line at the median, about 1.68, into two shaded parts of area 1/2 each, with a dashed line at the mean 2.

The density is f(x)=xe−xf(x)=x\mathrm{e}^{-x} for x≥0x\ge0, with CDF F(x)=1−(1+x)e−xF(x)=1-(1+x)\mathrm{e}^{-x}. The solid line at m≈1.68m\approx1.68, the solution of F(m)=12F(m)=\tfrac{1}{2}, cuts the area into two parts of 12\tfrac{1}{2} each, and the dashed line marks the mean 22. The long right tail pulls the mean outwards but does not move the halfway point.

Move the candidate mm and check both conditions. For the skewed density the median is unique; for Bin⁡(3,12)\operatorname{Bin}(3,\frac12) every m∈[1,2]m\in[1,2] is a median.

The Definition uses two inequalities rather than the equation FX(m)=12F_X(m)=\tfrac{1}{2}, because that equation can have many solutions or none. For Bin⁡(3,12)\operatorname{Bin}(3,\tfrac{1}{2}) the CDF equals 12\tfrac{1}{2} on all of [1,2)[1,2), and every m∈[1,2]m\in[1,2] satisfies both conditions. For Bern⁡(0.3)\operatorname{Bern}(0.3) the CDF jumps from 00 to 0.70.7 at 00, so the equation has no solution, yet 00 is the unique median. For a continuous, strictly increasing CDF the median is simply the quantile at level 12\tfrac{1}{2}.

Because only the order of the values matters, medians move along with increasing transformations: if mm is a median of YY and gg is strictly increasing, then g(m)g(m) is a median of g(Y)g(Y). This gives the median eμ\mathrm{e}^{\mu} of the lognormal distribution. For a symmetric distribution, the centre of symmetry is a median.


Key Results

  • A median need not be unique: the medians of a distribution form an interval, which contains more than one point exactly when the CDF equals 12\tfrac{1}{2} on a whole stretch (for a fair die, every point of [3,4][3,4] is a median). If the CDF jumps from below 12\tfrac{1}{2} to above 12\tfrac{1}{2} at a point, that point is the unique median.
  • For a continuous strictly increasing CDF, the median is the point where the CDF equals one half.
  • The median is robust to extreme values compared with the mean.

Examples

  • The median of a symmetric normal distribution is its centre.
  • For waiting times, the median is the time by which half of cases have occurred.
  • In income data, the median can better describe a typical person than the mean when there are extreme high incomes.

Prerequisites

Sources

Aliases: 0.5-quantile, second quartile, 0.5 quantile, 50th percentile Keywords: median of a random variable Symbols: element of, mu

Last updated: 22 October 2026 19:04