Mean, Median & Mode
Press Next → or use ← → arrow keys
One Number To Stand For Many
That's the whole point of central tendency: summarizing a pile of numbers with one representative value. But which value? Mean, median, and mode each answer differently — and the CEO shows why the choice matters.
Mean, median, and mode are the three measures of central tendency — the foundation of descriptive statistics. Get comfortable with when each one lies and when it tells the truth, and you can read almost any dataset at a glance.
The Three Measures At A Glance
Mean asks "where's the balance point?" Median asks "what's the middle?" Mode asks "what's most common?" They only agree when the data is perfectly symmetric — the moment it isn't, they diverge, and that divergence is itself information.
The Mean — Every Value Gets A Vote
Because the mean sums every value, one extreme number moves it a lot. Adding a single ₹5,00,000 CEO to ten ordinary salaries lifted the mean from ₹42,000 to ₹83,636 — a ~99% jump driven by one row. That's why salary and income surveys almost always report the median instead.
On symmetric, outlier-free data the mean is ideal — it uses all the information and feeds directly into later maths like variance and standard deviation. Think average temperature, or mean product weight on a production line.
The Median — The True Middle
Six homes sell for ₹45–55 lakh and one luxury villa for ₹420 lakh. The mean price is ₹109.6L — higher than every ordinary home. The median is ₹50L, exactly what a typical buyer sees. Sort, take the middle (or average the two middles for an even count), and outliers simply can't distort it.
The Mode — What Shows Up Most
Across 238 customers, size 8.5 sold most (45 times) — so 8.5 is the mode, and the only statistic that tells the shop what to reorder. Mode also handles pure categories: in a colour survey where Blue wins 72 of 200 votes, you can't average colours — but the mode names the favourite. Data can be unimodal, bimodal, multimodal, or have no mode at all.
Outliers — The Mean Moves, The Median Holds
The mean is pulled toward extremes, the median resists them, and the mode ignores them entirely. A large gap between mean and median is a red flag — it almost always means outliers or skew, so investigate before you trust the average.
How Skew Reorders The Three
The mode always sits at the peak, the mean is dragged toward the long tail, and the median lands between them. So the order of the three tells you the shape: mean to the right of the median means a right skew; to the left means a left skew.
The Mean–Median Gap Measures Skew
| Distribution | Ordering | Tail | Report |
|---|---|---|---|
| Symmetric | Mean = Median = Mode | None | Mean is fine |
| Right-skewed (+) | Mode < Median < Mean | Long right tail | Prefer median |
| Left-skewed (−) | Mean < Median < Mode | Long left tail | Prefer median |
When unsure, report the mean and the median. The distance between them is a free skewness detector — income data (a few very high earners) is the classic right-skew, which is exactly why "median income" is the honest number.
Which Measure, When?
| Measure | Data type | Use when… | Everyday example |
|---|---|---|---|
| Mean | Continuous numeric | Symmetric, no outliers | Average temperature; product weight |
| Median | Continuous numeric | Skewed or has outliers | Household income; home prices |
| Mode | Any (incl. categorical) | Most popular / typical category | Favourite colour; best-selling size |
The same logic drives imputation: fill a roughly-normal numeric column with its mean, a skewed one with its median, and a categorical column with its mode. The mean also feeds variance and standard deviation — the median doesn't — so it stays essential for downstream statistics.
All Three On 20 Exam Scores
Twenty students score between 45 and 92. Their scores add up to 1,369, and 65 shows up three times. Compute all three measures:
Mean 68.45 sits above median 65 — the tell-tale sign of a mild right skew: a few high scorers are nudging the average up. The typical student is better described by the median (65), which also happens to be the mode. Three numbers, one coherent picture.
Computing All Three In Python
import numpy as np from scipy import stats scores = [45, 65, 65, 65, 72, 88, 92, ...] print(np.mean(scores)) # 68.45 — the average print(np.median(scores)) # 65.0 — the middle value print(stats.mode(scores)) # 65 — the most frequent # the mean-median gap = a free skewness check gap = np.mean(scores) - np.median(scores) print("right-skew" if gap > 0 else "left-skew") # right-skew
On a DataFrame column: df['score'].mean(), .median(), and
.mode(). Even simpler, df.describe() hands you the mean, median (as the 50%
quartile), min, max and spread in a single line — the fastest first look at any dataset.
Central Tendency In The Wild
Six Rules That Keep You Honest
Three Measures, One Clear Picture
Mean, median, and mode each summarize "typical" differently — the mean uses every value but bends toward outliers, the median holds the true middle, and the mode names the most common. Their disagreement reveals the data's shape, so plot first, then choose the measure that tells the honest story.
Central tendency is only half the story — pair it with spread (range, variance, standard deviation) and shape (skewness, kurtosis) for a full picture. Those measures of dispersion are the natural next step.
📊 End of tutorial · Press ← to review, or click Restart