Start studying
Module 3 · Descriptive Statistics Module contents
Module 3  ·  Card 2 / 14beginner

Median

The median is the middle value of a dataset when all observations are arranged in numerical order.

If the dataset contains an odd number of values, the median is the single observation sitting exactly at the midpoint.

If the dataset contains an even count, the median is the arithmetic mean of the two middle observations.

For example, in the ordered values 3, 5 and 40, the median is 5 despite the large third value.

Because it depends only on order rather than magnitude, the median resists extreme outliers and reflects typical values reliably.

Learn in depth ↓
Module 03 · Descriptive Statistics · 14 concepts
In depth  /  15 lines

Median, in more detail

The median is the value that splits an ordered dataset into two equal halves.

Exactly fifty percent of the observations lie below or equal to the median, and fifty percent lie above or equal to it.

To determine the median, observations must first be sorted in ascending order from lowest to highest.

When the sample size n is odd, the median occupies the exact rank position calculated as n plus one divided by two.

For example, given the five sorted values twelve, fifteen, nineteen, twenty-four, and eighty, the median is nineteen.

When the sample size n is even, no single middle observation exists in the sequence.

In that case, analysts average the two middle values located at position n divided by two and position n divided by two plus one.

For example, given four sorted values of ten, twenty, thirty, and forty, the median is twenty-five.

The median possesses a breakdown point of fifty percent, meaning nearly half the dataset can be corrupt before the median collapses.

Unlike the mean, which minimises squared deviations, the median minimises the sum of absolute deviations across all observations.

This mathematical trait makes the median the natural objective function in robust regression and L1 error estimation.

In skewed distributions, such as household net worth or software response latency, the median provides a stable typical value.

However, the median has limitations: it is less mathematically tractable than the mean when combining independent subgroups.

Computing medians on massive streaming datasets requires sorting or specialised approximate quantile algorithms.

Analysts should report both mean and median together, because the gap between them exposes the extent of distributional skew.

Want the full technical article? Wikipedia ↗
Test yourself

One question on this card. Every option explains itself once you pick, right or wrong.

Question 1
Five house sales in a village record prices of 2, 3, 3, 4 and 20 million pounds. What is the median price?
Descriptive Statistics

14 concepts in this module, then a graded test with every answer explained.

Study this module →
↑↓ move↵ openesc close