Find a course

Module 3: Describing DataLesson 5 of 1212 min

Mean, Median and Mode

Learn when the mean, median or mode tells the truth about a typical value, how skew distorts averages, and how to compute a weighted average.

Step 1 of 12Learn

A billionaire walks into a café

Ten people are sitting in a café. Their annual incomes average $50,000. Then a billionaire walks in for a coffee. The average income in the room jumps to about $90 million. Did anyone in the café get richer? No. But "the average person in this café earns $90 million" is technically true and completely misleading.

This is why analysts have more than one kind of "average", and why choosing the right one matters.

  • The mean is the sum of all values divided by how many there are. It uses every value, which is its strength and its weakness: a single extreme value can drag it far from what's typical.
  • The median is the middle value when data are sorted. With an odd number of values, it's the one in the middle; with an even number, it's the mean of the two middle values. Half the observations are below it and half above. The billionaire barely moves it.
  • The mode is the most common value. It's the only "average" that works for categorical data: the most popular product, the most common complaint.

Example: delivery times (in days) of 2, 3, 3, 4 and 13. The mean is (2 + 3 + 3 + 4 + 13) ÷ 5 = 25 ÷ 5 = 5 days. The median is 3 days (the middle of the sorted list). The mode is also 3 days. Which would you tell a customer to expect? Most deliveries take about 3 days; one very late order pulled the mean up to 5. Reporting "average delivery: 5 days" would misrepresent the typical experience.

Step 2 of 12Compare

The café before and after the billionaire

Aspect10 people+ 1 billionaire
Mean income$50,000About $91 million
Median incomeAbout $50,000About $50,000
Describes a typical person?Both doOnly the median

Step 3 of 12Try the calculator

Mean of five values

Enter five values and see the mean. Try making one value extreme and watch how far the mean moves, then compare it with the median you find by sorting the values yourself.

Sum
25
Mean
5
Smallest and largest (range)
11

Step 4 of 12Practice · Work it out

Six employees have these monthly sales: 8, 12, 15, 9, 40, 11 (in thousands of dollars). What is the median, in thousands?

Step 5 of 12Learn

Skew: when mean and median part ways

In a symmetric distribution, such as the heights of adult men in one country, values spread evenly around the center and the mean and median are about equal.

Many real-world variables are skewed: they have a long tail on one side.

  • Right-skewed (positively skewed): most values are low or moderate, with a few very high values. Incomes, house prices, order values, website session lengths, insurance claims and delivery times all tend to look like this. The tail pulls the mean above the median.
  • Left-skewed (negatively skewed): most values are high, with a few very low ones, such as scores on an easy exam where most students score 85–100 but a few score very low. The mean falls below the median.

So the gap between mean and median is itself a clue. If the mean order value is $120 and the median is $45, a small number of very large orders is doing a lot of work.

This is why official statistics usually report median household income and median home price, not the mean. A few very rich households or mansions would make the mean misleading as a description of a typical household.

That doesn't make the mean useless. For totals and planning, the mean is exactly what you need: if the mean order value is $120 and you expect 1,000 orders, expect about $120,000 in revenue. The median can't tell you that. A good habit is to report both for skewed data, and say which one answers the question at hand.

Step 6 of 12Practice · Chart

A right-skewed distribution: order values

There are 735 orders. Tap the bin that contains the median order.

Tap the bar that answers the question, then press Check.

A right-skewed distribution: order valuesBar chart with 7 categories: $0-25: 120; $25-50: 260; $50-75: 180; $75-100: 90; $100-150: 50; $150-250: 25; $250+: 10.0100200300Orders$0-25$25-50$50-75$75-100$100-150$150-250$250+12026018090502510
Illustrative histogram. The long right tail pulls the mean above the median.
A right-skewed distribution: order values
ItemOrders
$0-25120
$25-50260
$50-75180
$75-10090
$100-15050
$150-25025
$250+10

Step 7 of 12Practice · Choose one

A real estate site wants to describe the typical home price in a neighborhood where most homes sell for $300,000–$400,000 but a few estates sold for over $5 million. Which measure should it report?

Step 8 of 12Learn

Weighted averages

Sometimes values shouldn't count equally. A weighted average gives each value a weight that reflects its importance or size.

Weighted average = (value₁ × weight₁ + value₂ × weight₂ + ...) ÷ (weight₁ + weight₂ + ...)

Example: a company has two stores. Store A has an average order value of $40 from 900 orders. Store B has an average of $100 from 100 orders. What's the company's average order value?

The tempting answer is ($40 + $100) ÷ 2 = $70. But Store A has nine times as many orders. The correct answer weights each average by its number of orders:

($40 × 900 + $100 × 100) ÷ (900 + 100) = ($36,000 + $10,000) ÷ 1,000 = $46.

The simple average of $70 overstates the typical order by more than 50%, because it treats a small store the same as a big one.

Weighted averages show up constantly: course grades where the final exam counts 40% and homework 20%, average prices across products with different sales volumes, and portfolio returns where each investment has a different amount of money in it.

The general rule: averaging averages is only correct when the groups are the same size. Whenever you combine averages or percentages from groups of different sizes, go back to the underlying totals or weight by group size. You'll meet this trap again with percentages in the next lessons.

Step 9 of 12Chart

Average order value: simple vs. weighted

Average order value: simple vs. weightedBar chart with 4 categories: Store A (900 orders): $40; Store B (100 orders): $100; Simple average: $70; Weighted average: $46.$0$20$40$60$80$100Store A (900 orders)Store B (100 orders)Simple averageWeighted average$40$100$70$46
The two-store example from this lesson.
Average order value: simple vs. weighted
ItemAverage order
Store A (900 orders)$40
Store B (100 orders)$100
Simple average$70
Weighted average$46

Step 10 of 12Practice · Work it out

A course grade is 30% homework, 30% midterm and 40% final exam. A student scores 90 on homework, 70 on the midterm and 80 on the final. What is the weighted course grade?

Step 11 of 12Practice · True or false

In a right-skewed distribution, such as household incomes, the mean is usually higher than the median.

Step 12 of 12Practice · Choose one

A support team handles 400 tickets in English with an average resolution time of 2 hours and 100 tickets in Spanish with an average of 4 hours. What is the overall average resolution time?