Mean vs Median
The mean uses every value; the median is the middle one and ignores how extreme the ends are.
Mean
Add all the values and divide by how many there are.
Median
Sort the values and take the middle one (or the average of the two middle ones).
| Mean | Median | |
|---|---|---|
| Uses every value | Yes | Only their order |
| Pulled by very large or small values | Yes, strongly | Hardly at all |
| Best for | Data without extreme values | Incomes, house prices, skewed data |
| Grouped data formula | Σfx / Σf | l + ((n/2 − cf)/f) × h |
Example
Five salaries: ₹20k, ₹22k, ₹25k, ₹28k and ₹5 lakh. The mean is ₹1.19 lakh, which describes nobody; the median, ₹25k, describes the typical person.