Professor Turing

Study guides

Median and mean

Last updated: 2026-11-26

The mean is the total divided by the number of values. The median is the middle value once the data are in order, or the average of the two middle values when the count is even. A few extreme values can move the mean a long way while the median stays put, so which one to report depends on the question you are answering.

Start learning No account needed

1. Start with the question

"What does a typical person here earn?" asks about the middle of the group. "How much money does the payroll need?" asks about a total, and the mean multiplied by the number of people gives that total back. Write the question down before you choose a summary.

2. A worked example: seven salaries

A small firm pays 42, 45, 47, 50, 52, 55 and 240 thousand dollars a year. The figures are made up. Predict where the mean will land before you read it. The numbers are computed by scripts/median-vs-mean-worked-example.py in the Professor Turing repository.

seven salaries: n = 7, total = 531, mean = 75.86, median = 50
salaries below the mean: 6 of 7
top salary changed to 2400: n = 7, total = 2691, mean = 384.43, median = 50
top salary removed: n = 6, total = 291, mean = 48.50, median = 48.5
right-tail counterexample: n = 10, total = 80, mean = 8.00, median = 10
third central moment of counterexample = +864.0 (positive means right skew)
quartile (Galton) skewness of counterexample = -1.0 (negative means left skew)

The mean is 75.86 thousand, which is more than six of the seven people earn. The median is 50, the fourth value in order. If a job seeker asks what a middle salary at this firm looks like, 50 answers better. If an accountant asks for the payroll, the total is $531,000, which is the mean times seven.

3. Move the largest value

Change 240 to 2400. The mean jumps to 384.43 and the median stays at 50, because the middle position has the same value. Remove the top salary instead, and both the mean and the median are 48.50. Wikipedia's article on the median says it is not skewed by a small share of extreme values, so it represents the center better in that case.

Do not delete an extreme value only because it is extreme. An outlier may come from measurement error, but it can also point to something real in the data, such as a heavy-tailed distribution. Find out which before you act. The 240 here is a real salary in our story, so it belongs in the payroll.

4. A common misconception: right skew puts the mean above the median

A common rule of thumb says that right-skewed data have a mean above the median. Treat it as a tendency. Take these ten values: 0, 0, 0, 0, 10, 10, 10, 10, 10, 30. The value farthest from the middle is on the right, and the third central moment is positive, so the data are right skewed by the usual moment measure. Yet the mean is 8 and the median is 10. Wikipedia's article on skewness cites a 2005 journal article reporting that the textbook rule fails often, most commonly in discrete distributions.

Measures of skew can also disagree. The quartile measure that NIST calls Galton skewness is negative for these ten values, which points left.

So do not read the direction of skew from the mean and median alone. Plot the data, and say which measure of skew you mean.

5. Which to report

Your question or dataA reasonable choice
A total or a budgetMean, with the count
A middle case, with a long tail or outliersMedian
Roughly symmetric data with no clear outliersThe two tend to be close; follow your course or field
Unsure, or the two differ a lotBoth, plus a plot

The table is our summary and a starting point. NIST's handbook notes that for skewed distributions it is not obvious which measure of typical value is the more meaningful one.

6. Test yourself

Case 1. An eighth person is hired at 49 thousand. Find the new mean and median.

Answer to case 1

The total is 580, so the mean is 72.50. The two middle values are 49 and 50, so the median is 49.5.

Case 2. Instead, each of the original seven gets a raise of 5 thousand. What happens to each summary?

Answer to case 2

Both rise by 5. The mean becomes 80.86 and the median 55.

Case 3. A report says "average house price" and the area has a few mansions. What do you ask?

Answer to case 3

Ask whether "average" means the mean or the median, and which question the number is meant to answer.

For related ideas, see what is standard deviation and how to study for a statistics exam.

What the sources found, and their limits

Wikipedia, "Median" and "Skewness." The median under extreme values, the rule of thumb linking skew to the order of mean and median, and where that rule fails. Limits: reference articles under CC BY-SA 4.0; the failure report is their account of a journal article we did not rely on directly. Sources: Median and Skewness, read on 2026-11-25.

NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.1, Measures of Location. Compares mean, median and mode on normal, exponential, Cauchy and lognormal samples. It says that if the right tail is heavier than the left, the mean is greater than the median, and it does not define heavier there. Because the skew rule has exceptions, we word the link as a tendency. Source: itl.nist.gov measures of location, read on 2026-11-25.

Wikipedia, "Outlier." Causes of outliers, and why they should not be discarded automatically. Limits: a reference article under CC BY-SA 4.0. Source: Outlier, read on 2026-11-25.

NIST/SEMATECH e-Handbook, section 1.3.5.11, Measures of Skewness and Kurtosis. Defines the moment and Galton measures of skew. Source: itl.nist.gov skewness, read on 2026-11-25.

The salaries, the ten-value data set, the table and the self-test cases are ours.

How Professor Turing helps

Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start. It's an AI tutor, free to try.

Bring a data set or a reported average you are unsure about. Its first reply asks about your attempt, such as which summary you picked and why, before it teaches anything. You must be 18 or older, and guest conversations are deleted 7 days after the last activity.

FAQ

Why use the median for income? Income data can contain a few very large values. They move the mean, while the median depends on the middle of the ordered values. If your question is about a total, such as a payroll, the mean is the summary tied to it.

Should you report both? It can help, especially for skewed data. In our salary example, a mean of 75.86 beside a median of 50 prompts a reader to look for large values, and here it is the salary of 240. Say what each describes.

Start with what you're working on

Tell the tutor which data you are summarizing and let it ask you the questions.

Start learning No account needed

See also: how to study for a statistics exam · how to read a box plot · all study guides