Part 1 ended with twenty-four students and a gap of 12 between two averages. Before we can ask whether that gap is real, we need to be careful about the word "average", because there are several, they disagree, and the choice between them is the first place a write-up can mislead without anyone lying. This part is the arithmetic of summarising many numbers into one. The two parts after it cover what a single number leaves out: how spread out the numbers are, and the special case of a rate, like "16 of 18 students passed".

Two middles

Here are the twelve marks from the students with the guide, sorted: 49, 55, 58, 62, 66, 71, 79, 84, 86, 88, 91, 95.

The mean is what most people call the average: add them up and divide by how many. The sum is 884, there are 12, so the mean is 73.7.

The median is the middle value once they are sorted. With twelve numbers there is no single middle, so it is halfway between the sixth and seventh: 71 and 79, giving 75. Half the students scored below 75 and half above.

020406080100 exam mark six students below the median six above halfway between 71 and 79 4995 median 75 mean 73.7 (884 ÷ 12) AAAWgmp1bWIAAAAeanVtZGMycGEAEQAQgAAAqgA4m3EDYzJwYQAAABZcanVtYgAAAEdqdW1kYzJtYQARABCAAACqADibcQN1cm46YzJwYTozYzEzOTJkMy1hNGE4LTQyZDEtODc3Zi0zY2FlZjA1MTNlYzgAAAADl2p1bWIAAAApanVtZGMyYXMAEQAQgAAAqgA4m3EDYzJwYS5hc3NlcnRpb25zAAAAALxqdW1iAAAARGp1bWRjYm9yABEAEIAAAKoAOJtxE2MycGEuaW5ncmVkaWVudC52MwAAAAAYYzJzaJ783Lwh9VI0IA9bLCRTWVIAAABwY2JvcqNpZGM6Zm9ybWF0bWltYWdlL3N2Zyt4bWxqaW5zdGFuY2VJRHgseG1wOmlpZDowNTI2ZmM4NC1lMjgxLTQ2YmUtODdlYi1iNDI0N2Q2ZTExMTNscmVsYXRpb25zaGlwaHBhcmVudE9mAAAB4mp1bWIAAABBanVtZGNib3IAEQAQgAAAqgA4m3ETYzJwYS5hY3Rpb25zLnYyAAAAABhjMnNodsLU07wD/yCHeF/9FHCXzAAAAZljYm9yomdhY3Rpb25zgqJmYWN0aW9ua2MycGEub3BlbmVkanBhcmFtZXRlcnOha2luZ3JlZGllbnRzgaJjdXJseC1zZWxmI2p1bWJm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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPZYQHhOpoxBJkKu5BkX6Iz0GslQAUQE30wPRaxbzLOeNU4M9eX4ZnW1ApxChk89M6CnXH5k7szrsfSMvYEb1+nXOIo=
The median splits the students into two equal groups and only looks at the two marks in the middle. The mean uses every mark, and sits where the line of dots would balance.

Here they nearly agree, 73.7 and 75, and when they agree it does not much matter which you report. The interesting case is when they do not.

The big spender

Now something with a longer tail. Marks out of 100 cannot stray far, but money can. The teacher also asked twelve families what they had spent on private tutoring over the year, and here are the answers in pounds, invented to look like the real distribution of such things: 181, 204, 238, 257, 269, 291, 312, 348, 402, 517, 784, 3,120.

Eleven of them sit between £181 and £784. The twelfth is a family that hired a tutor twice a week for the whole year and spent £3,120. This happens. Ask around any class and there is usually one.

All twelve families 01,0002,0003,000 the big spender, £3,120 median 302 mean 577 The first £900, zoomed in 0200400600800 median 302 trimmed mean 362 geometric mean 382 mean 577 the big spender is far off this scale → Who supplied the £6,923 total one family: 45% the other eleven: 55% AAAWgmp1bWIAAAAeanVtZGMycGEAEQAQgAAAqgA4m3EDYzJwYQAAABZcanVtYgAAAEdqdW1kYzJtYQARABCAAACqADibcQN1cm46YzJwYTpmNjE1YmE5NC1jNTg4LTQyNTQtODliYy1jM2FiY2NkYzQxNzQAAAADl2p1bWIAAAApanVtZGMyYXMAEQAQgAAAqgA4m3EDYzJwYS5hc3NlcnRpb25zAAAAALxqdW1iAAAARGp1bWRjYm9yABEAEIAAAKoAOJtxE2MycGEuaW5ncmVkaWVudC52MwAAAAAYYzJzaPfbAbNOH7U2of2pEEvbur4AAABwY2JvcqNpZGM6Zm9ybWF0bWltYWdlL3N2Zyt4bWxqaW5zdGFuY2VJRHgseG1wOmlpZDowNGNiZTdiNS0yMzVhLTRlNDMtODNkYy1iZmNhMDE1Y2QyYjBscmVsYXRpb25zaGlwaHBhcmVudE9mAAAB4mp1bWIAAABBanVtZGNib3IAEQAQgAAAqgA4m3ETYzJwYS5hY3Rpb25zLnYyAAAAABhjMnNoYfXQa+Wkvr6RIO7le5y0hgAAAZljYm9yomdhY3Rpb25zgqJmYWN0aW9ua2MycGEub3BlbmVkanBhcmFtZXRlcnOha2luZ3JlZGllbnRzgaJjdXJseC1zZWxmI2p1bWJmPWMycGEuYXNzZXJ0aW9ucy9jMnBhLmluZ3JlZGllbnQudjNkaGFzaFggW5X3DHN3UvVxxO432mO1C0Es8xNII3Uyu6XrzYP+ZfWkZmFjdGlvbngdY29tLmFudGhyb3BpYy5jbGF1ZGUucHJvdmlkZWRqcGFyYW1ldGVyc6F4H2NvbS5hbnRocm9waWMub3JpZ2luLWNvbmZpZGVuY2VndW5rbm93bmtkZXNjcmlwdGlvbnhmQ2xhdWRlIHByb3ZpZGVk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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPZYQIy5mNRwuvhtFNp/HqGmNgz2TFfTpmeWVNsx3lLZW3d9vzHTc1r0ZGpMsfwiulK0bUfwmpVgyU9XxYyDSrE2Cls=
One family in twelve supplies 45 per cent of the total and moves the mean by about £230, to a point that ten of the twelve families fall short of. The median barely notices. Which one you report is a decision, and a good write-up says which it chose and why.

The four summaries marked on the middle panel are worth taking one at a time.

Summary Value (pounds) What it is telling you
Mean 577 The total spend divided by twelve. Dragged up by the one big spender, which alone is 45 per cent of the total
Median 302 The middle family. Ten of the twelve spent less than the mean, which is a sign the mean is not "typical" of anything
Trimmed mean (drop the lowest and highest, average the rest) 362 The mean with the extremes removed. Closer to the median, but the amount of trimming is a choice you have to declare
Geometric mean (average of the logarithms, then undo the log) 382 The mean on a multiplicative scale. A family that spends twice as much moves it as far as one that spends half as much

The mean says "a family spends about £577 a year on tutoring". The median says "a typical family spends about £300, and occasionally one spends a fortune". Both are true. Only the second is any use to a parent wondering what tutoring usually costs, and only the first is any use to someone adding up what the twelve families spent between them, because the total is twelve times the mean.

This is why anything with a long tail is usually summarised with the median. The geometric mean in the last row of the table is the other tool for long tails, and it brings with it a different way of comparing two groups: as a multiplier, not a difference. Both get a section of their own after the demo.

Try it: the middle-finder

Drag any of the twelve bills along the line and watch the three middles. Drag the big spender back into the pack, or drag an ordinary family out to the far right, and see which summary cares.

Try dragging the big spender all the way to £3,500 and then all the way down to £200. The mean travels across a quarter of the axis. The median barely notices, because the median only cares that the family is on one side of the middle, not how far. That insensitivity is called robustness, and it is the reason the median is the default for anything with a long tail: costs, waiting times, house prices, and the time a student spends on one question.

Two other means worth knowing

A weighted mean counts some items more than others. An exam paper is a weighted mean in disguise: a question worth 5 marks has five times the pull of one worth 1, so the total out of 100 is each question's result multiplied by its weight, then added up. When a write-up says "weighted mean", that is all it means. The trap is that the weights are a judgement, and a different examiner would set them differently, which is why the mark scheme is written before the exam and not after the papers have been read.

The geometric mean is the other one. It takes more explaining, so it has the next section to itself.

The geometric mean, one step at a time

The last row of the tutoring table gave a geometric mean of £382 and explained it in a bracket. It needs more than a bracket, because it is the idea behind every "compared on a log scale" you will meet in a results section.

The ordinary mean answers this question: if every family had spent the same amount, what amount would give the same total? Add the twelve bills, share the sum out equally, and you get £577.

The geometric mean asks the same question with multiplication in place of addition. What single number, multiplied by itself twelve times, gives the same product as the twelve bills multiplied together?

That sounds like an odd thing to want. It stops sounding odd as soon as the numbers are multipliers.

Start with two numbers. A family's tutoring bill is £200. It doubles one year, to £400, and halves the next, back to £200. The two yearly changes are ×2 and ×0.5. Their ordinary mean is 1.25, which claims the bill grew by a quarter each year. A £200 bill that grew by a quarter twice would be £312, and the real bill is £200. The geometric mean multiplies the two changes, 2 × 0.5 = 1, and takes the square root, which is 1. No change, which is what happened.

Then three. A tutor raises her hourly rate by 10 per cent, then 20 per cent, then 50 per cent. As multipliers those are 1.1, 1.2 and 1.5. Multiply them and you get 1.98, so her rate has nearly doubled. The cube root of 1.98 is 1.256. That is the geometric mean, and it says the rate rose by the equivalent of 25.6 per cent a year: apply 25.6 per cent three times and you land on 1.98 exactly. The ordinary mean of the three rises is 26.7 per cent, and three rises of 26.7 per cent would give 2.03, a rate she never charged.

So the recipe for any set of numbers is short.

  1. Multiply them all together.
  2. Take the root that matches how many there are: the square root for two numbers, the cube root for three, the twelfth root for twelve.

For the twelve tutoring bills the product is a 31-digit number, roughly 9,760,000,000,000,000,000,000,000,000,000. Its twelfth root is 382.

Nobody does it that way, because products of many numbers become unmanageable. The practical route goes through logarithms, and it gives the identical answer.

A logarithm is a count of multiplications. The logarithm (to base 10) of a number is how many times you multiply 10 together to reach it. The log of 100 is 2, the log of 1,000 is 3, and a number between them, like 382, has a log between 2 and 3. The useful property is that logs turn multiplying into adding. So instead of multiplying twelve numbers and taking a twelfth root, you add twelve logs and divide by twelve, which is an ordinary mean.

  1. Take the logarithm of each number.
  2. Take the ordinary mean of the logarithms.
  3. Undo the logarithm: raise 10 to the power of that mean.
Tutoring bill (pounds) Its logarithm
181 2.258
204 2.310
238 2.377
257 2.410
269 2.430
291 2.464
312 2.494
348 2.542
402 2.604
517 2.713
784 2.894
3,120 3.494
Sum of the logs 30.989
Mean of the logs (30.989 ÷ 12) 2.582
Undo the log (10 to the power 2.582) 382

Look at the right-hand column and you can see why the geometric mean is not thrown by the big spender. In pounds, that family is £2,800 beyond the middle of the pack, more than everyone else's bill put together. In logarithms they are at 3.49 while the others run from 2.26 to 2.89. Still the largest, but no longer in a different world.

1002005001,0002,0005,000 pounds spent on tutoring, on a logarithmic scale: equal distances are equal multiples the big spender median 302 geometric mean 382 mean 577
The same twelve bills as the earlier figure, redrawn on a logarithmic axis, where the step from 100 to 200 is as long as the step from 1,000 to 2,000. The geometric mean is simply the ordinary mean of the dots' positions on this axis.

On that axis, distance means "how many times as much". The big spender is about eight times the geometric mean. A family who spent an eighth of it, around £47, would pull the geometric mean down exactly as hard as the big spender pulls it up. The ordinary mean has no such balance: it counts pounds, and £3,120 is a great many pounds.

Three things to know before using one.

  • It needs every value to be above zero. One family who spent nothing makes the product zero, and zero has no logarithm.
  • It is never larger than the ordinary mean. The two are equal only when every value is the same, and the further apart they are, the longer the tail. Here it is £382 against £577.
  • It is not for totals. Twelve times the geometric mean is not what the families spent between them. If you need the total, you need the ordinary mean.

It is the right average for anything that grows, shrinks or differs by multiplying: growth rates, price changes, speed-ups, and quantities like costs and times that range over many multiples. The middle-finder demo above shows it as the fourth line, so you can drag a bill and watch how little it moves.

Comparing by a multiplier

So far the geometric mean has described one group at a time. Its more common job in a results section is to compare two groups, and the teacher's study has an example of that.

Marks were not the only thing she recorded. Each student also logged how many minutes they revised in the fortnight before the exam. Here are the logs for the twenty-four students, sorted.

Minutes of revision Geometric mean
Without the guide 230, 240, 245, 250, 255, 262, 265, 270, 275, 290, 300, 310 265
With the guide 530, 540, 575, 590, 612, 615, 640, 655, 690, 700, 720, 810 635

Students with the guide revised for much longer, because the guide sets practice questions. The question is how to say how much longer, and there are two answers. The figure draws the same twenty-four students twice, once for each.

An ordinary axis: equal distances are equal numbers of minutes 0100200300400500600700800900 without: 265 with: 635 a difference: + 370 minutes A logarithmic axis: equal distances are equal multiples 1002003005007001,000 without: 265 with: 635 a multiplier: × 2.4 minutes of revision in the fortnight (each dot is one student, the lines mark each group's geometric mean)
The same students on two rulers. On the ordinary axis the gap between the groups is a number of minutes. On the logarithmic axis, the one from the previous section, the gap is a multiple.

As a difference, the guide added 370 minutes: 635 − 265. As a multiplier, students with the guide revised for 2.4 times as long: 635 ÷ 265.

For these twenty-four students both statements are true. The reason write-ups prefer the multiplier shows up when you carry the result to other students. Effects on times and costs tend to scale with where a person started. A guide that sets practice questions does not add a fixed block of minutes to everyone. It stretches whatever revision habit a student already had.

Take three imaginary students with different habits, and suppose the guide multiplies each one's revision time by 2.4.

Ordinary axis: three arrows, three different lengths 100 to 240: + 140 minutes265 to 635: + 370 minutes500 to 1,200: + 700 minutes 02004006008001,0001,200 Logarithmic axis: three arrows, one length 100 to 240: × 2.4265 to 635: × 2.4500 to 1,200: × 2.4 1002005001,000 minutes of revision: the dot is without the guide, the arrowhead is with it
If an effect works by multiplying, its size in minutes depends on who you measure. On the logarithmic axis it is the same step for everyone.
A student who would have revised for With the guide, at ×2.4 As a difference As a multiplier
100 minutes 240 minutes +140 ×2.4
265 minutes 635 minutes +370 ×2.4
500 minutes 1,200 minutes +700 ×2.4

There is no single "difference" to report here. It is 140 minutes for one student and 700 for another. The multiplier is the same in every row, so it is the number that describes the guide and not the particular students who happened to be in the study.

The calculation is the geometric mean recipe run on each group, with one shortcut. The mean of the logs is 2.803 with the guide and 2.423 without. Subtract and the gap is 0.380. Undo the log, 10 to the power 0.380, and you get 2.40. Subtracting logarithms is the same as dividing the original numbers, so a difference on the log scale and a ratio of geometric means are one calculation with two names.

That is all a write-up means when it says an outcome was "compared on a log scale", or reports "the average multiplier". The twelve-school trial, the third year of the teacher's study, made exactly this comparison. One of its six predictions, the one Part 5 lists as P3, was that students with the guide would revise for longer. It was tested on the logarithmic axis, and across all 480 students the multiplier came out at about 2.2.

The medians tell the same story for the twenty-four students: 627 minutes with the guide against 263 without, 2.38 times as long. A ratio of medians and a ratio of geometric means usually land close together, and both are honest for long-tailed quantities. A difference in ordinary means is the one to be wary of, because a single keen reviser can own it.

In Python

SciPy has the middles built in, including the trimmed and geometric means. The last lines do the geometric mean by hand and the comparison by a multiplier.

import numpy as np
from scipy import stats

marks = np.array([49, 55, 58, 62, 66, 71, 79, 84, 86, 88, 91, 95])   # with the guide, sorted
bills = np.array([181, 204, 238, 257, 269, 291, 312, 348, 402, 517, 784, 3120])  # pounds spent on tutoring

print(f"marks: mean {marks.mean():.1f}, median {np.median(marks):.1f}")
print(f"bills: mean {bills.mean():.0f}, median {np.median(bills):.0f}, "
      f"trimmed {stats.trim_mean(bills, 1/12):.0f}, geometric {stats.gmean(bills):.0f}")

# The geometric mean two ways: the 12th root of the product, and the mean of the logs undone
print(f"geometric by hand: root of the product {np.prod(bills.astype(float))**(1/12):.0f}, mean of the logs undone {10**np.log10(bills).mean():.0f}")

# Comparing by a multiplier: minutes of revision, with the guide and without
mins_with    = np.array([612, 540, 720, 655, 590, 810, 575, 640, 700, 530, 615, 690])
mins_without = np.array([250, 300, 262, 240, 275, 310, 255, 290, 230, 270, 265, 245])
gap = np.log10(mins_with).mean() - np.log10(mins_without).mean()
print(f"minutes: geometric means {stats.gmean(mins_with):.0f} and {stats.gmean(mins_without):.0f}, ratio x{stats.gmean(mins_with)/stats.gmean(mins_without):.2f}, "
      f"gap on the log scale {gap:.3f}, undone x{10**gap:.2f}")

which prints:

marks: mean 73.7, median 75.0
bills: mean 577, median 302, trimmed 362, geometric 382
geometric by hand: root of the product 382, mean of the logs undone 382
minutes: geometric means 635 and 265, ratio x2.40, gap on the log scale 0.380, undone x2.40

Where this leaves us

There are several averages, and the choice between them is a claim. The mean is the total shared out equally, the median is the typical case, and when they disagree the data have a tail, which is the moment to report both and say why. For quantities that multiply, the geometric mean is the right middle, and the gap between two groups is a multiplier and not a difference.

A middle on its own is still half a summary. Two classes can share a mean and be nothing alike, and a write-up that reports only the middle cannot tell them apart. The next part is about the other half.


Next: How Spread Out: the range, the quartiles and the box plot, the standard deviation worked by hand, the bell curve and its 68 and 95 per cent rule, and the standard error that the standard deviation is most often confused with.