Statisticsโฑ 5 min read

Mean, Median & Mode

xฬ„ = (ฮฃx) / n

What is the Mean, Median & Mode?

Mean, median, and mode are the three standard ways to describe a data set's "center" or typical value, and each responds differently to unusual data โ€” which is exactly why all three exist rather than just one. The mean (xฬ„ = ฮฃx/n) is the sum of all values divided by the count โ€” it's the most common measure, and the one most people mean by "average," but it's sensitive to extreme outliers: a single very large or very small value can pull it noticeably away from where most of the data actually sits.

The median is the middle value once the data is sorted โ€” resistant to outliers, since it only depends on position, not magnitude. For an odd number of values, it's the single middle one; for an even number, it's the average of the two middle values. This is why housing prices, income, and other data prone to extreme outliers are usually reported as a median rather than a mean โ€” one billionaire in a room doesn't move the median household net worth the way it would move the average.

The mode is simply the value that appears most often โ€” a data set can have one mode, several ("bimodal" or "multimodal"), or none at all if every value is unique. Unlike mean and median, mode is the only one of the three that works for non-numeric, categorical data, like a survey's most common answer choice.

What Each Variable Means

xฬ„
Mean (average)The sum of all values divided by how many values there are.
ฮฃx
Sum of valuesThe total of every value in the data set added together.
n
CountThe number of values in the data set.

When to Use It

  • Mean โ€” best for roughly symmetric data without extreme outliers
  • Median โ€” best when data has outliers that would skew the mean, like income or house prices
  • Mode โ€” best for categorical data where averaging doesn't make sense, like a favorite color or shoe size
Advertisement

Step-by-Step Example

Problem: Find the mean, median, and mode of {4, 7, 2, 9, 3, 4}.

1
Find the mean

Add all values and divide by the count.

xฬ„ = (4+7+2+9+3+4)/6 = 29/6 โ‰ˆ 4.83
2
Sort the data to find the median

Arrange from smallest to largest.

{2, 3, 4, 4, 7, 9}
3
Find the middle value(s)

With 6 values (even), average the two middle ones.

Median = (4 + 4)/2 = 4
4
Find the mode

Identify the most frequent value.

4 appears twice โ€” Mode = 4
โœ“
Answer: Mean โ‰ˆ 4.83, Median = 4, Mode = 4

Common Mistakes

  • Mistake: Forgetting to sort the data before finding the median.

    Fix: The median is defined by position in sorted order โ€” finding the "middle" of unsorted data gives a meaningless result.

  • Mistake: Averaging the two middle values only when the count is odd.

    Fix: It's the reverse: average the two middle values when the count is even. With an odd count, there's a single true middle value and no averaging is needed.

Practice Questions

  1. Find the mean of {10, 15, 20, 25, 30}.

  2. Find the median of {8, 3, 5, 12, 1}.

    Hint: Sort first: {1, 3, 5, 8, 12}.

Frequently Asked Questions

Can a data set have no mode?

Yes โ€” if every value appears exactly once (or all values appear the same number of times), there's no single most-frequent value, and the data set is described as having no mode.

Which measure should I use for a data set with an outlier?

The median โ€” it only depends on position in sorted order, so a single extreme value doesn't drag it far the way it would drag the mean.