compare() — Mean vs median vs mode

How the three averages are computed — and which to reach for.

compare(mean, median, mode)

Key idea

Which average should you use?

  1. Use the MEAN when the data is roughly symmetric with no wild outliers — average height, average test score, average temperature.
  2. Use the MEDIAN when the data is skewed or has outliers — incomes, house prices, waiting times — because it shrugs off the extremes.
  3. Use the MODE for categories or to name the most common choice — favourite colour, most-sold shoe size, busiest hour.

Definition

add up all the values
how many values
the middle once sorted
the value that repeats most

In plain words

Three ways to say "typical": add-and-share (mean), the one in the middle (median), and the one you see most (mode). Pick by how lopsided your data is and whether it’s numbers or labels.

Where you'd use it

Frequently asked questions

What does the gap between mean and median tell me?
The skew direction: mean > median usually means right (positive) skew.