Z Table

Mean, Median and Mode

The mean is the sum of the values divided by their count, the median is the middle value of the sorted list (or the average of the two middle values), and the mode is the value that occurs most often. For 12, 15, 15, 18, 20, 22, 95 the mean is 28.1429, the median is 18 and the mode is 15: one large value pulls the mean far above the typical value.

Example: 12, 15, 15, 18, 20, 22, 95

  • Mean = 197 ÷ 7 = 28.1429
  • Sorted: 12, 15, 15, 18, 20, 22, 95
  • Median = the middle value (position 4 of 7) = 18
  • Mode = 15
  • Range = max − min = 95 − 12 = 83

How to find each one

Mean: add all the numbers and divide by how many there are. Median: sort the numbers; with an odd count take the middle one, with an even count average the two middle ones. Mode: count how often each value appears and take the highest count. Range, the difference between the largest and smallest values, is often reported with them as a first measure of spread.

Ties and gaps are handled differently by different textbooks. If every value occurs once, there is no mode. If two values tie for the highest count the data are bimodal, and with more ties multimodal; this site lists every tied value as a mode.

Which average should I use?

Use the mean for symmetric data without extreme values; it uses every observation and feeds into the standard deviation and most tests. Use the median for skewed data or when outliers are present, such as salaries or home prices, where a handful of very large values drag the mean upward. Use the mode for categorical data, or when you want the most common outcome, like the most frequent shoe size.

A quick diagnostic is to compare the mean and the median. If they are close, the data are probably roughly symmetric. If the mean is much larger than the median, the data are skewed right; if it is much smaller, they are skewed left. In the example above the mean is 28.14 against a median of 18, a clear sign that 95 is an outlier.

Frequently asked questions

What is the difference between mean and median?
The mean uses every value and is sensitive to extremes. The median is the middle value and ignores how far the extremes are.
Can there be more than one mode?
Yes. When two or more values tie for the highest count, each of them is a mode.
How do I find the median of an even number of values?
Average the two middle values after sorting. For 4, 7, 9, 13 the median is 8.
Does removing an outlier change the median much?
Usually very little, which is why the median is called a resistant measure.

Sources and references