The three averages
- Mean: add everything and divide by how many there are.
- Median: the middle value once the numbers are sorted. With an even count, take the average of the two middle ones.
- Mode: the value that appears most often. There can be none, one, or several.
Take 2, 4, 4, 4, 5, 5, 7, 9. The mean is 40 ÷ 8 = 5. The median is (4 + 5) ÷ 2 = 4.5. The mode is 4.
Spread: how scattered the numbers are
Two lists can have the same mean and still look very different, so we also measure the spread.
- Range: biggest minus smallest. Here 9 − 2 = 7.
- Variance: the average of the squared distances from the mean.
- Standard deviation: the square root of the variance, which brings it back to the original units. For the list above, the population standard deviation is exactly 2.
- Interquartile range (IQR): Q3 minus Q1, the width of the middle half of the data.
Sample or whole population?
If your numbers are everyone you care about (all the marks in one class), divide by n. If they are only a sample from something bigger (ten students out of a school), divide by n − 1. A sample sits a little closer to its own mean than the whole group would, so n − 1 corrects for that. For the list above the sample standard deviation is about 2.14.
Outliers and which average to report
One extreme value can drag the mean a long way but barely moves the median. Salaries of ₹30k, 32k, 35k, 38k and 400k have a mean of ₹107k, yet the median of ₹35k describes the group far better. When the data is lopsided like this, report the median.
A common rule flags a value as an outlier if it lies more than 1.5 × IQR below Q1 or above Q3. Different textbooks calculate quartiles slightly differently, so a classroom answer can differ a little from the calculator.