Sub topic 8
Mean, median, and range: which one to report
This chapter assumes you can compute an average and a percentage, and that you have written memos or proposals where a number had to support a claim. The question here is which single figure best describes a set of values, and what to add so the reader is not misled.
Three ways to summarize a list of numbers
- The mean is the sum of the values divided by how many there are.
- The median is the middle value when the values are sorted. Half the values fall below it and half above.
- The range is the lowest value and the highest value, reported together.
The mean uses every value, so one extreme value pulls it. The median ignores how far the extremes sit, so it stays near the typical case.
A worked example
Suppose you are arguing that your team should add a second support agent for billing questions. Here are the hours it took to resolve nine billing tickets last week:
1, 1, 2, 2, 2, 3, 3, 4, 40
The code below computes all three summaries.
from statistics import mean, median
hours = [1, 1, 2, 2, 2, 3, 3, 4, 40]
print(f"Mean: {mean(hours):.1f} hours")
print(f"Median: {median(hours)} hours")
print(f"Range: {min(hours)} to {max(hours)} hours")It prints a mean of 6.4 hours, a median of 2 hours, and a range of 1 to 40 hours. One ticket that took 40 hours lifts the mean above every other ticket except that one. If you write "tickets take 6.4 hours on average," a reader will picture most tickets taking about six hours, and that is false.
Choosing which to report
Use the median when the data is skewed, meaning a few values sit far from the rest. Salaries, order sizes, resolution times, and house prices are typical cases. Use the mean when the reader needs a total, because the mean multiplied by the count gives the sum. For example, average cost per ticket times ticket volume gives next quarter's cost. When the two figures differ noticeably, report both, since the gap itself tells the reader the data is skewed.
Add the range or the count
A single figure hides spread. Two teams can both have a median of 2 hours while one ranges from 1 to 3 hours and the other from 1 to 40. Give the range, or the share of cases beyond a threshold, so the reader sees how reliable the typical value is. Also state how many values you summarized. A median from nine tickets deserves less trust than one from nine thousand.
Compare the two sentences:
- Weak: Billing tickets take 6.4 hours on average.
- Stronger: The median billing ticket took 2 hours to resolve (range 1 to 40 hours, 9 tickets). One ticket took 40 hours and raised the mean to 6.4.
The stronger version names the statistic, shows the spread, gives the sample size, and explains the outlier so the reader does not discover it later.
Common errors
- Writing "average" without saying mean or median.
- Reporting a mean for skewed data with no range.
- Dropping the outlier silently. If you exclude it, say so and say why.
- Reporting a median or mean without the number of values behind it.
Exercise
Five orders this month were $20, $25, $30, $35, and $490. Which figure would you report as the typical order, what is it, and what else would you add?
Show answer
Report the median, $30, because the $490 order pulls the mean up to $120 and no other order is close to that. Add the range ($20 to $490) and the count (5 orders), and mention the $490 order so the reader knows why the mean would mislead.