New Tool Radar

AI Research & Fact-Checking

How to Check Whether an AI Should Have Used the Median Instead of the Mean

When one value in a set is far from the rest, check whether the AI's average is the mean dragged up by that outlier, and use the median instead.

Schematic diagram: an AI answer says the typical value is 32.5, while the median is 15.5 and the 120 is an outlier; the verdict is Misleading.

Six library branches gained 12, 14, 15, 16, 18 and 120 new members in a week. The mean is 32.5, but five of the six branches gained fewer than 20, so 32.5 describes no branch at all. The median, 15.5, is the typical branch. An AI that reports the mean as “typical” has let one outlier do the talking.

Khan Academy makes the same point with salaries: nine graduates earn 35, 50, 50, 50, 56, 60, 60, 75 and 250 thousand, the mean is about 76.2 and the median is 56. The median is much more robust with a skewed data set, because making the outlier bigger does not change the median at all.

Use the practice member counts

The counts below are synthetic. They are about a fictional library’s branches, and they were not produced by any AI tool. They are the only source for the exercise.

Practice counts — Northfield Library branches, new members in a week:

  • Set A: 12, 14, 15, 16, 18, 120.
  • Set B: 20, 22, 24, 26, 200.
  • Set C: 12, 14, 15, 16, 18.

Practice AI answer: "A typical branch gained 32.5 members in Set A, 58.4 in Set B, and 15 in Set C."

Check each typical value against the mean and the median

Expected result. We checked the Khan Academy page on mean and standard deviation versus median and IQR. We did not run an AI tool on the practice counts. The checked list below is what to expect if the figures are correct; run the same check yourself on the practice material above.

Set AI says is typical Mean Median Verdict
A: 12, 14, 15, 16, 18, 120 32.5 32.5 (195 / 6) 15.5 Misleading — the 120 drags the mean up
B: 20, 22, 24, 26, 200 58.4 58.4 (292 / 5) 24 Misleading — the 200 drags the mean up
C: 12, 14, 15, 16, 18 15 15.0 (75 / 5) 15 Correct — no outlier, mean and median agree

Sort first, then look for the outlier

In Set A the sorted values are 12, 14, 15, 16, 18, 120. Five of the six sit between 12 and 18, and one sits at 120. The mean adds all six and divides by six, so the 120 contributes 20 to the mean all by itself. The median is the middle of the sorted list, so the 120 cannot pull it anywhere.

To check one yourself, sort the values, find the middle one (or the average of the middle two), and compare it with the mean. If they are far apart, look for the value that is far from the rest. If there is no such value, as in Set C, the mean is a fair typical value.

What to do with each verdict

  • Correct: keep the typical value, and keep the full sorted list with it so the next reader can see the outlier.
  • Misleading: replace the mean with the median as the typical value, and say why: name the outlier and its value.
  • No list given: do not trust the average. Ask for the values first; an average without its values cannot be checked.

Limits

  • This guide checks which average is the fair typical value. It does not check whether the values themselves are right; those need checking against their own source.
  • The median is the better typical value when the data is skewed by an outlier. When the data is roughly symmetric with no outlier, the mean is fine, and it uses every value.
  • Neither average tells you the spread. Two sets can share a median and still be very different; check the range as well if the spread matters.
  • No AI tool was run for this guide. The practice counts and answer are synthetic.

Sources

See all