Quick Context
All three are measures of central tendency — attempts to summarise a whole dataset with one number. They answer subtly different questions, and on skewed data they can be wildly far apart.
The Three Definitions
- Mean — add everything up and divide by the count. The balance point: if the data sat on a seesaw, this is where it would tip.
- Median — sort the values and take the middle one. Half the data is below it, half above.
- Mode — the value that occurs most often. The tallest bar on the chart.
On a perfectly symmetric distribution all three land in the same place. Load Symmetric and see the three markers stack up.
The Billionaire Test
Press Add a billionaire. One extreme value arrives and the mean lurches toward it, while the median barely twitches and the mode does not move at all.
This is why median household income is reported rather than mean. The mean answers "what if the total were shared equally?" — a real question, but not the same as "what does a typical household earn?". Whenever someone quotes an "average", the first thing worth asking is which one.
Skew Tells You Which Is Bigger
The relationship between the three is a reliable fingerprint of shape:
- Symmetric — mean ≈ median ≈ mode.
- Right-skewed (a long tail of large values) — mean > median > mode. The tail drags the mean up. Incomes, house prices and web-session lengths all look like this.
- Left-skewed — mean < median < mode.
The mean is always pulled toward the tail, because it is the only one of the three that uses the actual magnitude of every value.
Which Should You Use?
- Mean — for roughly symmetric data with no wild outliers. It uses every value and feeds directly into variance, standard deviation and most ML maths.
- Median — for skewed data or when outliers are present. It is robust: changing the largest value to a trillion moves it not at all.
- Mode — for categorical data, where the others are meaningless. The mean of {red, red, blue} is not a colour, but the mode is.
In practice this is a data-cleaning decision: filling missing values with the mean is standard for symmetric numeric columns, with the median for skewed ones, and with the mode for categories.
Interactive Exploration Guide
- Start symmetric. All three markers sit almost on top of each other — on nice data the distinction genuinely does not matter.
- Switch to right-skewed and confirm mean > median > mode, exactly as the rule predicts.
- Press "Add a billionaire" two or three times. Track how far the mean travels versus the median. This single demo explains most misleading statistics you will ever read.
- Load "Two peaks". The mean and median both land in the empty valley between the clusters — a "typical" value that describes nobody. Sometimes no single number is honest.
- Load "Flat". The mode becomes unstable and meaningless, because no value is genuinely more common than the others.
Key Takeaway
The mean is the balance point and uses every value — which makes it precise but fragile. The median is the middle and shrugs off outliers. The mode is the most common and is the only option for categories. Skewed data pulls them apart, and "average" without qualification is an ambiguous word.