Statistics·Elementary·Measure of center

Median

The median is the middle value in an ordered data set, or the mean of the two middle values when the data set has even size.

Sort the numbers and choose the center value.

StatisticsDescriptive statistics

What does median mean?

For n observations sorted from least to greatest, the median is at the center rank. If n is even, average the values at ranks n/2 and n/2+1. Unlike the mean, the median is resistant to extreme observations, making it useful for skewed distributions.

Median examples

Example 1

Find the median of 2, 4, 9.

Answer: 4

The values are ordered and 4 is the middle observation.

Properties and types

  • The median divides ordered data into two halves.
  • It is resistant to outliers compared with the mean.

Where is median used?

This concept appears in a range of mathematical and practical settings:

  • Income and house-price summaries
  • Skewed data
  • Robust statistics

Common misunderstandings

  • Finding the middle before sorting.
  • For even sample size, failing to average the two center values.