When should you use the median instead of the mean
Use the median instead of the mean when the distribution is skewed, contains extreme outliers, or the data are ordinal rather than interval/ratio. The median resists the influence of those extreme values and better represents a typical observation in such cases.
Statistics · Descriptive statistics
The median and the mean are both measures of central tendency, but they respond differently to the shape of the data. The mean adds all values and divides by the count, while the median is the middle value after sorting. Knowing which one to report depends on the distribution and the measurement level.
When the median is preferred
The median has a 50\% breakdown point, meaning that up to half the observations can be corrupted before the median moves arbitrarily far. This makes it far less sensitive to a few extreme values than the mean, whose breakdown point is 0\%. In practice, the median remains stable when a dataset contains measurement errors or data‑entry mistakes. Because the median depends only on the order of the data, it can be computed quickly even for very large samples. However, the median does not convey information about the spread of the data, so it is often reported together with the interquartile range.
A distribution that is skewed to the right or left pulls the mean toward the long tail, making it unrepresentative of a typical observation. Outliers, such as a single extremely high income in a salary list, inflate the mean but leave the median unchanged. For example, the five salaries 20, 22, 23, 24, and 1000 have a mean of and a median of 23; the median better reflects what most employees earn. Ordinal data, like Likert‑scale responses, have no meaningful arithmetic average, so the median is the appropriate summary.
Common scenarios where the median outperforms the mean include the following:
- Highly skewed income or price data
- Presence of extreme outliers
- Ordinal or ranked variables
- Small sample sizes with irregular values
Follow this short decision procedure to pick the appropriate statistic:
- 1Plot or sort the data
- 2Check for obvious outliers or long tails
- 3If the distribution is symmetric, use the mean; otherwise use the median
The following table summarizes key differences between the two measures:
| Feature | Mean | Median |
|---|---|---|
| Sensitive to outliers | Yes | No |
| Applicable to interval/ratio data | Yes | Yes |
| Works with ordinal data | No | Yes |
| Best for symmetric distributions | Yes | No |
The table shows that the mean excels when the data are clean and symmetric, while the median shines in messy or ordered contexts. Choosing the right measure improves interpretation and avoids misleading conclusions. When the data are roughly symmetric and measured on an interval or ratio scale, the mean provides a more efficient estimate. In all other cases, especially with skewness, outliers, or ordinal scales, the median gives a robust picture of central tendency.
Check yourself
Why is the median preferred over the mean for the salary list 20, 22, 23, 24, 1000?
Get this as a lesson built for you
Describe what you are studying and Lernex writes the lesson and the questions around it. Free, and it takes about a minute.
Try itNo account needed to try it.
What people ask next
- How do I calculate the median for an even number of observations?Ask
- What is the interquartile range and how does it relate to the median?Ask
- Can I use the median for categorical data?Ask
- why do you divide by n-1 for sample variance
- how do you tell if a distribution is skewed left or right
- what is the difference between standard deviation and standard error
- what does a p-value actually mean
