Mean, Median, and Mode Defined
- Mean: the average. Add all values and divide by how many there are.
- Median: the middle value after you sort the data. With an even number of values, average the two middle ones.
- Mode: the value that appears most often. A data set can have one mode, more than one mode, or no mode.
Quick median example with an odd count: for 3, 7, 1, 9, 5, sort to get 1, 3, 5, 7, 9. The median is 5.
Worked Example: Quiz Scores
Eight students scored these points on a 10-point quiz:
Mean
- Add the values: .
- Divide by the count: .
Median
- The data is already sorted. There are 8 values, so the middle two are the 4th and 5th values: 4 and 5.
- Average them: .
Mode
4 appears three times, more than any other value, so the mode is 4.
Standard Deviation Step by Step
Standard deviation measures the typical distance of values from the mean. A small value means the data is bunched together. A large value means it is spread out.
Using the same quiz scores (mean = 5), treat the eight students as the whole population:
- Subtract the mean from each value: .
- Square each difference: .
- Add the squares: .
- Divide by to get the variance: .
- Take the square root: .
The population standard deviation is 2 points. Most scores fall within about 2 points of the mean of 5.
Population vs Sample Standard Deviation
The only difference is what you divide by in step 4.
- Use population (, divide by ) when your data includes every member of the group you care about.
- Use sample (, divide by ) when your data is a sample used to estimate a bigger group. This is the more common case.
Dividing by makes the sample standard deviation slightly larger, which corrects for the fact that a sample usually underestimates the spread.
Quiz scores as a sample: , so .
Another example: Find both for 10, 12, 14.
- Mean: .
- Differences: . Squares: . Sum: .
- Population: .
- Sample: .
When to Use the Median Instead of the Mean
The mean gets pulled toward extreme values (outliers). The median does not, so it is the better measure of center for skewed data.
Example: Six people's yearly incomes, in thousands of dollars: 30, 32, 35, 38, 40, 250.
- Mean: .
- Median: the middle two values are 35 and 38, so .
Five of the six people earn 40 or less, yet the mean is almost 71. The median of 36.5 describes a typical person much better. That is why reports on home prices and incomes usually use the median.
Use the mean for roughly symmetric data without outliers. Use the median for skewed data or data with outliers. Use the mode for categories, like the most popular shoe size.
Common mistakes
- Finding the median without sorting the data first.
- Forgetting to average the two middle values when the data set has an even number of values.
- Dividing by n when the problem gives a sample, which calls for n - 1.
- Stopping at the variance and forgetting to take the square root to get the standard deviation.
Try one yourself
Find the mean, median, mode, and sample standard deviation of: 6, 2, 8, 4, 10, 6
Work it out, then check every step with the VeilGPT statistics solver.
Check it with VeilGPT