The mean, median, and mode are the three basic measures of center in statistics — each one summarizes a whole data set with a single "representative" number. This guide covers the definition and formula for each, how to pick the right one for your data, how outliers change the picture, and a full worked example that finds all three on the same data set.
The mean
The mean (written , also called the average) of a data set of values is given by:
In words, you add up every value and divide by how many values there are. This is the most familiar measure of center — it is what you use for a course grade average or the average height of a class.
If the data is given as a frequency table, where each value occurs with frequency , the mean becomes:
The median
The median (written ) is the value that sits exactly in the middle of the data once it has been sorted in increasing (or decreasing) order. How you find it depends on whether the number of values is odd or even:
| Case | How to find the median |
|---|---|
| odd | The median is the value in position |
| even | The median is the average of the values in positions and |
Key reminder: you must sort the data before locating the median. This is the step students forget most often.
For the sorted set with (odd), the middle value is in position , so .
For the set with (even), the two middle values are and , so:
The mode
The mode (written ) is the value with the highest frequency — the value that appears most often in the data set.
- A data set can have more than one mode if several values share the highest frequency.
- A data set has no mode if every value appears exactly once.
For example, the set has , because shows up three times, more than any other value. The mode is especially useful for categorical data — the most popular shirt color, the best-selling shoe size — where a mean cannot even be computed.
When to use each measure
The biggest difference among the three is how sensitive each one is to outliers (values that are far larger or smaller than the rest of the data).
| Measure | Strength | Weakness | Best used when |
|---|---|---|---|
| Mean | Uses every value; easy to compute | Pulled strongly off by outliers | Data is fairly even with no unusual values |
| Median | Not affected by outliers | Ignores the actual size of the values | There are outliers (income, house prices…) |
| Mode | Works even for categorical data | May not exist or may not be unique | You need the most common value |
Because the median depends only on the middle position, when one value is pushed extremely high, the mean jumps up while the median barely moves — that is exactly why news reports quote "median income" rather than "average income."
Worked example: all three on one data set
The test scores of a group of students are:
Step 1 — Mean. Add every score and divide by :
Step 2 — Median. Sort the data in increasing order:
Since (even), the two middle values in positions and are both , so:
Step 3 — Mode. The value appears three times, more than any other value, so .
This set has , , and . The three numbers are close because the data has no outliers. But if we replaced the score of with (an unusual value), the mean would jump to over while the median would still be — a clear illustration of why the median is more "stable."
Common mistakes
- Forgetting to sort before finding the median. The median is only correct once the data is in order.
- Mixing up the odd/even rule. When is even you must average the two middle values, not just pick one.
- Assuming the mode always exists and is unique. A set can have no mode or several modes.
- Using the mean when there are outliers. The result gets pulled off; in that case the median represents the data better.
Master these three measures and you can summarize and compare any table of data in a statistics unit. Try entering the score list from the example above into the calculator to check each value you computed.