STAT 200 · Statistics for Economics

Mean, Median and Mode

Find the mean, median and mode, see why they disagree when data are lopsided, and learn which one answers your question.

Key takeaways

  • The mean is the sum of the values divided by how many there are, and every value pulls on it.
  • The median is the middle value of the sorted data, so a few extreme values barely move it.
  • The mode is the most frequent value, and it is the only one of the three that works for nominal categories.
  • When data are lopsided, the mean and median separate, and reporting both tells a fuller story.
  • Averaging groups of different sizes calls for a weighted mean, not a plain average of averages.

Five friends are sitting in a diner. Their yearly incomes are modest and close together. Then a wildly successful app founder slides into the booth to ask for the ketchup. Suddenly the "average income" at the table is over a million dollars.

Nobody got a raise. Nobody's life changed. Yet one common summary number just went through the roof, while another barely twitched. If you do not know which summary someone is using, you can be fooled by perfectly correct arithmetic.

This lesson is about measures of center: single numbers meant to describe where a set of values is located. We will follow Rosa, who owns a small coffee shop and wants to answer a simple question that turns out not to be simple. What does a typical day, a typical worker, or a typical customer look like?

The mean: sharing it all equally

The mean is what most people mean by "average." Add up all the values and divide by the number of values. In symbols, with n values:

mean = (x₁ + x₂ + … + xₙ) ÷ n

Statisticians write the mean of a sample as x̄ (say "x bar") and the mean of a whole population as μ (the Greek letter "mu"). A population is everyone or everything you care about, and a sample is the part you actually observe.

Rosa counts the tips in the jar on each of seven days, in dollars: 24, 30, 27, 30, 35, 30, 34.

Sum  = 24 + 30 + 27 + 30 + 35 + 30 + 34 = 210
Mean = 210 ÷ 7 = 30

The mean has a lovely interpretation. If Rosa poured every day's tips into one pile and split it evenly across the seven days, each day would get $30. It also works as a balance point. The days above 30 are above by 5 + 4 = 9 dollars in total. The days below are below by 6 + 3 = 9 dollars. The two sides cancel exactly, as they always will.

Because it uses every value, the mean connects neatly to totals. Mean × n = total. If Rosa expects a mean of $30 over 25 days, she should expect about $750 in tips.

The median: the one in the middle

The median is the middle value after you sort the data. Half of the values sit at or below it and half sit at or above it.

Sort Rosa's tips: 24, 27, 30, 30, 30, 34, 35. With seven values, the fourth is in the middle, so the median is $30.

With an even number of values there is no single middle one. Take the mean of the two middle values. For the six numbers 10, 12, 15, 19, 22, 40, the middle pair is 15 and 19, so the median is (15 + 19) ÷ 2 = 17.

A handy shortcut: in sorted data the median sits at position (n + 1) ÷ 2. For n = 7, that is position 4. For n = 6, it is position 3.5, halfway between the third and fourth values.

The mode: the crowd favorite

The mode is the value that appears most often. In Rosa's tips, 30 shows up three times, so the mode is $30.

Data can have one mode, several modes, or none worth mentioning (if every value appears once). The mode really earns its keep with categories. If Rosa records each drink order as latte, drip, tea, or cocoa, she cannot add them or sort them in a meaningful way. But she can say that latte is the most common order.

When a histogram has two clear humps, we call the distribution bimodal. Rosa's customer arrivals by hour might peak at 8 a.m. and again at 3 p.m. Any single "typical arrival time" would point at the sleepy middle of the day, when the shop is nearly empty. Two humps often mean two different groups are mixed together.

Three measures of center
Mean Sum divided by count Uses every value Pulled by extremes Links directly to totals Median Middle of sorted data Depends on order Resists extremes Good for lopsided data Mode Most frequent value Works for categories May be several or none Shows the common case Mean Sum divided by count Uses every value Pulled by extremes Links directly to totals Median Middle of sorted data Depends on order Resists extremes Good for lopsided data Mode Most frequent value Works for categories May be several or none Shows the common case

Averages from a frequency table

Data often arrive already counted. Rosa tallies how many pastries each of 20 customers bought.

Pastries bought Customers
0 8
1 7
2 3
3 1
6 1

Do not average the left column. That would ignore the fact that zero happened eight times and six happened once. Multiply each value by its count, add, and divide by the total number of customers.

Total pastries = 0×8 + 1×7 + 2×3 + 3×1 + 6×1 = 0 + 7 + 6 + 3 + 6 = 22
Customers      = 8 + 7 + 3 + 1 + 1 = 20
Mean           = 22 ÷ 20 = 1.1

For the median, count your way through the table. With 20 customers, the middle pair is the 10th and 11th. The first 8 customers bought zero. Customers 9 through 15 bought one. So both middle customers bought one, and the median is 1. The mode is 0, the most common purchase.

Three measures, three answers: 0, 1 and 1.1. All correct. "The most common customer buys no pastry" and "we sell 1.1 pastries per customer" are both useful, one for the person writing the sales pitch and one for the person ordering flour.

When data are grouped into intervals, such as "$0 to $10," you no longer know the exact values. You can estimate the mean by pretending everyone in an interval sits at its midpoint. Call the result an estimate, because that is what it is.

A worked example: payroll at the coffee shop

Rosa lists the weekly pay of everyone on her payroll, including her manager brother, who negotiated unusually well at a family dinner. In dollars: 400, 420, 420, 450, 480, 510, 2,120.

Step one, the mean:

Sum  = 400 + 420 + 420 + 450 + 480 + 510 + 2,120 = 4,800
Mean = 4,800 ÷ 7 ≈ 685.71

Step two, the median. The list is already sorted. The fourth value is 450.

Step three, the mode. Only 420 repeats, so the mode is 420.

So what is "typical pay"? Rosa could truthfully advertise an average of about $686. But six of the seven workers earn less than that. Not one earns anything close to it. The median of $450 describes the middle worker far better.

Now remove the brother's $2,120 and recompute with the other six:

Sum    = 4,800 − 2,120 = 2,680
Mean   = 2,680 ÷ 6 ≈ 446.67
Median = (420 + 450) ÷ 2 = 435
One large paycheck moves the mean far more than the median
Mean with all seven $685.71 Mean without the largest $446.67 Median with all seven $450 Median without the largest $435 Mean with all seven $685.71 Mean without the largest $446.67 Median with all seven $450 Median without the largest $435

Weekly pay at an invented coffee shop. Hypothetical example: the numbers are made up to show the method, not a quote or an average.

The mean dropped by about $239. The median moved by $15. A measure that a few extreme values cannot yank around is called resistant.

What happens when you change every value

Suppose Rosa gives every worker a flat $20 raise. The mean, median and mode each rise by exactly $20. Suppose she gives everyone a 10% raise instead. Each measure is multiplied by 1.10. So the mean of the original seven would go from about $685.71 to about $754.29.

This is useful for unit changes too. Convert a whole data set from dollars to cents, and you can simply multiply the old mean by 100. Raises that are not uniform behave differently. If only the top earner gets more, the mean rises and the median stays put. A company could truthfully report "average pay is up" while most workers saw no change at all.

Which one should you report?

Resistance is not automatically a virtue. It depends on the question.

If Rosa needs to know whether she can cover payroll, she needs the total, and the mean leads straight to it: 7 × 685.71 ≈ 4,800. The median would badly understate her bill, since 7 × 450 = 3,150.

If a job applicant asks what she might expect to earn, the median (or the pay for that specific job) is far more informative.

This is why reports about household income and house prices in the United States usually lead with the median. A small number of very high values stretches those distributions to the right, which pulls the mean above the median. When the mean and median are far apart, that gap is itself news. The shape behind it, called skew, gets full attention in percentiles, skew and outliers. It also matters when you study gaps in income and poverty.

The weighted mean

Rosa now has two shops. At the downtown shop, the mean sale is $8. At the station kiosk, it is $4. Is the mean sale across both $6?

Only if both made the same number of sales. Suppose downtown made 100 sales and the kiosk made 300.

Downtown total = 100 × 8 = 800
Kiosk total    = 300 × 4 = 1,200
Combined mean  = (800 + 1,200) ÷ (100 + 300) = 2,000 ÷ 400 = 5

The correct figure is $5. This is a weighted mean, where each value counts in proportion to a weight. Here the weights are the numbers of sales, or as shares, 25% and 75%.

The weighted mean of the two shops
$5 = 0.25 × $8 + 0.75 × $4 $5 = Combined mean Mean sale across all 400 sales 0.25 × $8 = Downtown Share of sales times its mean 0.75 × $4 = Kiosk Share of sales times its mean $5 = 0.25 × $8 + 0.75 × $4 $5 = Combined mean Mean sale across all 400 sales 0.25 × $8 = Downtown Share of sales times its mean 0.75 × $4 = Kiosk Share of sales times its mean

Weighted means are everywhere. Your grade point average weights courses by credit hours. Price indexes weight goods by how much people spend on them, a theme in index numbers and seasonal adjustment.

A common mistake: "half of us must be below average"

You will hear that half of all people are, by definition, below average. That is true of the median (roughly, allowing for ties). It is false of the mean. In Rosa's payroll, six of seven are below the mean. Most people have more than the average number of legs, too, because a few people have fewer than two and nobody has seven.

A second slip is finding the median without sorting first. In the unsorted list 9, 2, 7, the middle position holds 2, but the median is 7.

A third is treating the mean as a value someone must actually have. A mean of 2.4 customers per table is fine. No one needs to seat four-tenths of a person.

Beyond the center

Two shops can have the same mean daily sales and feel completely different to run. One sells nearly the same amount every day. The other swings between feast and famine. A measure of center cannot see that difference at all, which is why the next lesson adds measures of spread.

When someone hands you an "average," ask politely: which kind, over what group, and what does the rest of the distribution look like?

Words to know

Mean the sum of the values divided by the number of values.

Median the middle value of sorted data, or the mean of the two middle values.

Mode the value or category that occurs most often.

Resistant measure a summary that changes little when a few extreme values are added or removed.

Weighted mean an average in which each value counts in proportion to an assigned weight.

Bimodal having two distinct peaks in a distribution.

Check yourself

  1. Find the mean, median and mode of 3, 8, 5, 8, 11.
  2. What is the median of 4, 9, 12, 20, 25, 31?
  3. A class of 20 has a mean score of 70, and a class of 30 has a mean score of 80. What is the combined mean?
  4. Which measure of center can describe the most popular color of car, and why?
  5. Five houses sell for a mean price of $300,000. What is their total sale value?
  6. Explain why the median is often preferred to the mean for describing household income.
Show the answers
  1. The sum is 35, so the mean is 7, the sorted list 3, 5, 8, 8, 11 gives a median of 8, and the mode is 8.
  2. The middle pair is 12 and 20, so the median is (12 + 20) ÷ 2 = 16.
  3. It is (20 × 70 + 30 × 80) ÷ 50 = (1,400 + 2,400) ÷ 50 = 76.
  4. The mode, because color is a nominal category that cannot be added or ranked.
  5. The total is 5 × 300,000 = $1,500,000.
  6. A few very high incomes pull the mean upward, while the median still describes the household in the middle.

A free self-study program written for 4Economics with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: Describing data

  1. Data and Variables: What Economists MeasureLearn what data and variables are, the main types and shapes of economic data, and how to question a number before you trust it.11 min
  2. Pictures of Data: Histograms, Bars and Scatter PlotsChoose the right chart for your data, build a histogram step by step, read a scatter plot, and spot pictures that mislead.12 min
  3. Mean, Median and ModeFind the mean, median and mode, see why they disagree when data are lopsided, and learn which one answers your question.10 min
  4. Spread: Variance and Standard DeviationMeasure how far data scatter around the middle with the range, variance and standard deviation, worked out step by step.10 min
  5. Percentiles, Skew and OutliersUse percentiles and quartiles to place a value, recognize skewed distributions, and handle outliers honestly.11 min
  6. Covariance and CorrelationMeasure how two variables move together, compute a correlation by hand, and learn why it does not prove cause and effect.10 min
  7. Index Numbers and Seasonal AdjustmentBuild and read index numbers, change their base period, and strip regular seasonal swings out of economic data.10 min

In the news