Mean, Median & Mode
Three ways to name the "center" of a data set — and how to tell which one is telling you the truth.
What do we mean by 'the center'?
Suppose you have a pile of numbers — test scores, house prices, wait times — and someone asks for a single number that captures the typical value. That one summary is a measure of center.
There are three classic ones, and they can disagree with each other. Knowing which one to trust for a given data set is the whole skill of this lesson.
- Mean — the everyday average: add up all the values and divide by how many there are.
- Median — the middle value once the data is put in order.
- Mode — the value that appears most often.
Mean: the balance point
The mean is what most people simply call 'the average'. You add every value and divide by the count \(N\):
Physically, the mean is the balance point of the data. Picture each value as an equal weight sitting on a number line: the mean is the spot where the line would balance on a fingertip. Because every single value pulls on that balance point, one far-off value can tug it a long way — a fact we will see live in a moment.
Median: the middle of the ordered data
To find the median, sort the values from smallest to largest and take the one in the middle.
- With an odd count there is a single middle value — for \(3, 5, 8\) the median is \(5\).
- With an even count, average the two middle values — for \(3, 5, 8, 10\) the median is \((5+8)/2 = 6.5\).
The median cares only about position in the ordered list, not about how far away the extremes are. That is exactly what makes it robust to outliers.
Mode: the most common value
The mode is simply the value that shows up most often. A data set can have one mode, several, or none at all if every value is unique.
The mode is also the only measure of center that works for categorical data — things you can count but not average. 'The most common blood type is O' or 'the most-ordered flavor is vanilla' are statements about the mode; there is no meaningful 'mean flavor'.
Drag one dot far out to the right in the tool above. The mean — the balance point — slides toward it, because that extreme value pulls hard on the average. The median barely moves: shifting one point further out does not change which value sits in the middle.
This is the single most useful fact about center: the mean is sensitive to outliers, the median is not.
So which one should you report?
- Roughly symmetric data with no wild values — the mean is efficient and familiar.
- Skewed data, or data with outliers (incomes, house prices, response times) — the median gives a more honest 'typical' value.
- Categorical data (colors, brands, yes/no) — only the mode makes sense.
A quick tell: if the mean and median are far apart, the data is skewed, and you should think hard about which number actually answers the question you were asked.
- Order the data (already sorted): 3, 4, 4, 5, 6, 7, 40.
- Mean = sum / N = (3 + 4 + 4 + 5 + 6 + 7 + 40) / 7 = 69 / 7 ≈ 9.9 thousand.
- Median = the middle (4th) of the 7 ordered values = 5 thousand.
- Mode = the most frequent value = 4 (it appears twice).
Check your understanding
- The mean adds all values and divides by the count; it is the balance point and uses every value.
- The median is the middle of the ordered data; it is robust to outliers and skew.
- The mode is the most frequent value, and it is the only measure of center that works for categorical data.
- Outliers and skew pull the mean but barely move the median — a large gap between them signals skew.
- Report the median for skewed data, the mean for roughly symmetric data, and the mode for categories.