Key Takeaways
- Order matters: Values must be arranged from smallest to largest before the median is identified.
- Odd and even samples differ: An odd-sized data set has one middle observation; an even-sized set uses the two central observations.
- Outliers affect the median less than the mean: Its rank-based construction makes it useful for skewed data such as income or home prices.
- Median does not mean “most common”: The most frequent value is the mode.
How to Calculate the Median
First, sort the observations from lowest to highest.
Odd-number example: For 2, 4, 5, 9, 14, the middle observation is 5, so the median is 5.
Even-number example: For 2, 4, 8, 10, the two middle observations are 4 and 8. Their average is 6.
Formally, an ordered sample with an odd number of observations uses the value in the middle position. With an even number, the usual sample median is the arithmetic mean of the values in the two middle positions.
Why the Median Is Useful
Rank-based construction makes the median resistant to extreme observations because it depends less on the size of every value. One unusually large number can pull a mean upward sharply while leaving the median nearly unchanged.
Example: Five incomes are $35,000, $40,000, $45,000, $50,000, and $1,000,000.
Median: $45,000. Mean: $234,000, which is mathematically correct but gives a very different impression of the center because of the million-dollar observation.
This robustness is one reason official statistics often publish medians for income, wages, housing values, and other distributions that can be skewed.
Median vs. Mean vs. Mode
| Measure | What it represents | Useful when |
|---|---|---|
| Mean | Sum of all values divided by the number of values | Data are reasonably symmetric and every magnitude matters |
| Median | Middle ranked value | Data are skewed or contain influential outliers |
| Mode | Most frequent value or category | The most common observation is meaningful |
No measure is universally best. The right summary depends on the shape of the distribution and the question being asked. For a symmetric distribution with well-behaved tails, mean and median may be very close. In a strongly right-skewed distribution, the mean is often higher than the median.
What a Median Does Not Tell You
A median describes location, not spread. Two data sets can have the same median while having completely different ranges, volatility, or tail behavior.
For household income, the median tells you where the midpoint lies, but it does not show how far incomes below or above the midpoint are from one another.
Median in Financial and Economic Data
Median statistics are common in personal finance because many dollar-based variables are not symmetric. Home prices, household income, net worth, and account balances can have long upper tails created by a relatively small number of very large observations.
Using a median can therefore answer a practical question such as “What observation is in the middle?” more directly than an arithmetic average. It should not be interpreted as the amount that every typical person earns, owns, pays, or experiences.
Weighted and Grouped Medians
Survey data may assign weights so that each observation represents a different number of people or units. A weighted median is the point where the cumulative weight reaches the halfway mark, not necessarily the simple middle row of the raw file.
Grouped data create another complication. When only ranges are available, the exact median may not be observable and may need to be estimated from the interval containing the 50th percentile.
Frequently Asked Questions (FAQs)
Is the median the same as the average?
Not usually. In everyday speech “average” often means the arithmetic mean. The median is a different measure based on the middle ranked observation.
Can a median be a value that is not in the data set?
Yes. With an even number of observations, averaging the two middle values can produce a median that is not itself one of the observations.
Why is median income often lower than mean income?
Income distributions are commonly right-skewed. A smaller number of very high incomes can raise the mean much more than the median.