Find a course

Module 1: Describing Data Like an AnalystLesson 1 of 1113 min

Averages, Medians and Percentiles

Learn when the mean misleads, why medians and percentiles describe skewed business data better, and how to avoid averaging averages and growth rates.

Step 1 of 13Learn

The average customer who does not exist

A subscription app's dashboard said the average customer spends $86 a year. The product team designed a new premium tier around that customer. It flopped. When an analyst looked closer, the median customer spent $31. About 4% of customers, mostly small businesses using the app for teams, spent more than $1,000 each, and they dragged the mean far above what a typical customer paid.

Nobody calculated anything wrong. The mean was correct. It just answered a different question from the one the team was asking. The mean is the total divided by the count: if you want to know total revenue, multiply the mean by the number of customers and you get it exactly. The median is the middle value when the data is sorted: half the customers spend less, half spend more. It describes the typical customer.

Business data is full of this shape. Revenue per customer, order values, time on site, house prices, salaries, support tickets per account and social media followers are all right-skewed: most values are modest and a long tail of large values stretches to the right. In skewed data the mean sits above the median, sometimes far above.

The first skill of a data analyst is picking the summary that matches the question, and showing more than one number when one would mislead.

Step 2 of 13Chart

A right-skewed spend distribution

Most customers sit on the left; a small tail of big spenders stretches far to the right and drags the mean with it.

A right-skewed spend distributionBar chart with 6 categories: $0–25: 42%; $25–50: 24%; $50–100: 14%; $100–250: 10%; $250–1,000: 6%; Over $1,000: 4%.0%10%20%30%40%50%Share of customers$0–25$25–50$50–100$100–250$250–1,000Over $1,000Annual spend42%24%14%10%6%4%
Illustrative shape matching the story: median about $31, mean about $86, 4% of customers above $1,000.
A right-skewed spend distribution
Annual spendShare of customers
$0–2542%
$25–5024%
$50–10014%
$100–25010%
$250–1,0006%
Over $1,0004%

Step 3 of 13Learn

Mean, median and mode: which one when

Each measure of center has a job:

  • Mean: use it when totals matter. Budgeting, forecasting revenue, calculating cost per unit and anything you will multiply back up by a count. It uses every value, which makes it sensitive to extremes.
  • Median: use it to describe a typical case in skewed data, such as "the typical home price" or "typical delivery time". It ignores how far the extremes go, which is a strength for description and a weakness for totals.
  • Mode: the most common value. Useful for categories, such as the most common plan or the most common shoe size, and for spotting spikes, such as many orders at exactly $50 because of a promotion.

A quick diagnostic: compare the mean and the median. If they are close, the data is roughly symmetric and either works. If the mean is much larger, the data is right-skewed, and reporting only the mean will overstate the typical case. If the mean is smaller, the data is left-skewed, as with exam scores on an easy test, where most people score high and a few score very low.

When in doubt, report both and say what each means: "Mean revenue per customer is $86, driven by a small group of team accounts; the median customer spends $31."

Step 4 of 13Practice · Work it out

Five customers spent $20, $25, $30, $35 and $400 last month. What is the mean spend in dollars?

Step 5 of 13Learn

Percentiles: describing the tail

Sometimes the center is not the point at all. When users complain that a website is slow, the average page load time rarely explains it. What matters is the tail.

A percentile tells you the value below which a given share of observations falls. The 50th percentile (p50) is the median. The 90th percentile (p90) is the value that 90% of observations are below. Engineering teams commonly track p95 and p99 latency.

Suppose a service has an average response time of 200 ms and a p99 of 3,000 ms. One request in a hundred takes three seconds or more. That sounds rare, until you notice that a single page might make 20 requests. The chance that at least one of them lands in the slowest 1% is 1 − 0.9920 ≈ 18%. Almost one page view in five feels slow, even though the average looks great.

Percentiles are also clearer for people. "Half of customers get their order within 2 days and 90% within 4 days" is easier to act on than a mean and a standard deviation. When describing waiting times, prices or income, giving the p25, p50 and p75, or the p50 and p90, often tells the whole story in two or three numbers.

Step 6 of 13Try the calculator

How often does a user hit the slow tail?

If each request independently has a small chance of being in the slow tail, see how likely it is that at least one request on a page is slow.

Page views with at least one slow request
18.2 %
Page views with no slow request
81.8 %

Step 7 of 13Practice · Choose one

A team wants a service-level target that protects nearly all users from slow responses. Which metric best fits that goal?

Step 8 of 13Learn

Averaging averages and growth rates

Two traps catch even experienced analysts.

Averaging averages. Store A has a conversion rate of 10% on 100 visitors, and Store B has 2% on 10,000 visitors. The average of the two rates is 6%, but the combined conversion rate is (10 + 200) / 10,100 ≈ 2.1%. The simple average gives the tiny store as much weight as the big one. To combine rates or means from groups of different sizes, go back to totals: total conversions divided by total visitors, or a weighted average using group sizes.

Averaging growth rates. A stock rises 50% one year and falls 50% the next. The average of +50% and −50% is 0%, yet $100 became $150 and then $75. Growth compounds, so it must be averaged by multiplying: 1.5 × 0.5 = 0.75 over two years. The geometric mean growth rate is √0.75 − 1 ≈ −13.4% per year, which correctly turns $100 into $75 in two steps.

The same applies to monthly user growth, price changes and any percentage that builds on the previous period. If someone reports "average annual growth of 12%" over several volatile years, ask whether it was computed as an arithmetic or a geometric mean. The arithmetic version always looks at least as good, and often better than reality.

Step 9 of 13Practice · Work it out

A product's price rises 20% in one year and falls 20% the next year. What is the total percentage change over the two years? (Enter a negative number for a decrease.)

Step 10 of 13Chart

Up 20%, down 20%: not back to start

Up 20%, down 20%: not back to startLine chart with 3 categories: Start: $100; After year 1 (+20%): $120; After year 2 (−20%): $96.$80$90$100$110$120StartAfter year 1 (+20%)After year 2 (−20%)$96
The 20% fall is taken from a bigger base (120), so it removes more than the rise added. Growth rates combine by multiplying: 1.2 × 0.8 = 0.96.
Up 20%, down 20%: not back to start
ItemPrice
Start$100
After year 1 (+20%)$120
After year 2 (−20%)$96

Step 11 of 13Note

Step 12 of 13Practice · What would you do?

What would you do?

An online store wants to set a free-shipping threshold slightly above what a typical customer spends, so that many customers add one more item to qualify. Order values are right-skewed: the mean order is $74, the median is $48, and the 75th percentile is $66. Which number should guide the threshold?

Step 13 of 13Practice · True or false

If three regions have average order values of $40, $50 and $60, the company-wide average order value is $50.