Mean, median & mode
Three measures of center, each answering "where is the middle of the data?" a little differently. On symmetric data they agree; on skewed data they pull apart — and the gap between them tells you something.
What it is
A measure of center is a single number that summarizes where a column of values typically sits. There isn't one right answer, because "typical" can mean different things. The three classic answers are the mean, the median, and the mode.
The mean is the arithmetic average: add up every value and divide by how many there are. The median is the middle value once the data are sorted — half the values fall below it, half above. The mode is simply the value that shows up most often. For a clean, symmetric, bell-shaped column the three land on essentially the same spot. The interesting cases are when they don't.
The formula
The mean of n values is their sum divided by the count:
x̄ = (1/n) · Σ xᵢ for i = 1 … n
The median is the value at probability p = 0.5 — the middle of the sorted data. With an odd count it's the single middle value; with an even count it's the average of the two middle values:
n odd: median = v[(n+1)/2]
n even: median = ( v[n/2] + v[n/2 + 1] ) / 2 (v sorted ascending)
The mode has no arithmetic — it's just the most frequent value:
mode = the value xᵢ with the highest count of occurrences
The median is the p = 0.5 quantile, so it follows the same quantile definition Stratum uses everywhere else. The mode is the only one of the three that also works on categorical data — you can't average colors or city names, but you can ask which one appears most.
How to read it
| Measure | Answers | Sensitive to outliers? |
|---|---|---|
| Mean | The balance point — the average value | Yes — one extreme value moves it |
| Median | The middle — the typical value | No — robust to extremes |
| Mode | The most common value | No — works on categories too |
The crucial difference is robustness. The mean is sensitive: a single very large value pulls it toward the tail. The median doesn't care how far away an extreme value is, only that it's on one side — so it stays anchored to the bulk of the data. That's why incomes, house prices, and response times are reported as medians: their long right tails would make the mean misleading.
Comparing the two is itself a quick read on shape. On right-skewed data (a long tail of large values) the mean > median. On left-skewed data the mean < median. When mean and median sit on top of each other, the distribution is roughly symmetric.
Which one to use
- Symmetric, outlier-free data → the mean is the natural summary, and it feeds directly into the standard deviation, t-tests, and regression.
- Skewed data or outliers → lead with the median; it's the honest center.
- Categorical data → only the mode applies. "Most common category" is the only center a non-numeric column has.
- Best practice → report the mean and the median together. The gap between them is free information about the shape.
See also
- Related terms
- Standard Deviation · Quartiles & the IQR · Skewness & Kurtosis
- On the blog
- Mean vs. median: which average should you use?
- In the app
- Read all three in the Summary report
The mean tells you the balance point, the median tells you the typical value, and the mode tells you the most common one. On well-behaved data they agree and any of them will do. The moment they part ways, that disagreement is the finding — your data are skewed, and which "average" you quote starts to matter.