Averages

We have calculated two different average speeds. Often when people say ‘average’ they mean one particular type. Think about other averages you have met - do either of these two calculations remind you of averages you already know?

For equal distance spent at each speed

\[\textrm{average speed} = \dfrac{2}{\dfrac{1}{46}+\dfrac{1}{62}},\]

and for equal time spent at each speed

\[\textrm{average speed} = \dfrac{46+62}{2}.\]

When people say ‘the average’ they are usually saying ‘the mean’. You know there is more than one type of average, but informally using ‘the average’ is often acceptable.

However it might surprise you that even saying ‘the mean’ is not enough, as there is also more than one type of mean. The mean you are most familiar with is actually called the ‘arithmetic mean’.

\[\text{arithmetic mean of $x_1$, ..., $x_n$ is } \dfrac{1}{n}(x_1 + x_2 + \dotsb + x_n).\]

You may have spotted that when finding the average for equal times, we arrived at \[\dfrac{46+62}{2},\] which is the arithmetic mean of \(46\) and \(62\).

What is probably less familiar is the scenario of equal distance which led to \[\dfrac{2}{\dfrac{1}{46}+\dfrac{1}{62}},\] which is the harmonic mean of \(46\) and \(62\).

There are three means known as Pythagorean means, which are the arithmetic mean, the harmonic mean and the geometric mean. For positive numbers \(x_1\), …, \(x_n\), these are given by \[\begin{align*} \text{arithmetic mean} &= \dfrac{x_1 + x_2 + ... + x_n}{n}\\ \text{harmonic mean} &= \dfrac{n}{\dfrac{1}{x_1}+\dfrac{1}{x_2} + ...+ \dfrac{1}{x_n}}\\ \text{geometric mean} &= \sqrt[n]{\vphantom{()}x_1x_2...x_n}. \end{align*}\]

Let us make our driving examples more general. We already know that the distance does not affect the means when we are driving for an equal time or an equal distance.

If we make the speeds \(u\) and \(v\), what is the average speed when driving an equal time at each speed?

\[u = \dfrac{d_1}{t} \textrm{ and } v = \dfrac{d_2}{t},\]

so the average speed would be

\[\dfrac{d_1+d_2}{2t} = \dfrac{ut+vt}{2t} = \dfrac{u+v}{2},\]

which is our arithmetic mean of \(u\) and \(v\).

If our speeds remain \(u\) and \(v\), what is the average speed when each is driven for an equal distance?

This time

\[u = \dfrac{d}{t_1} \textrm{ and } v= \dfrac{d}{t_2},\]

so the average speed would be

\[\dfrac{2d}{t_1+t_2}=\dfrac{2d}{\dfrac{d}{u}+\dfrac{d}{v}} = \dfrac{2}{\dfrac{1}{u}+\dfrac{1}{v}},\]

which is the harmonic mean of \(u\) and \(v\), and can also be written in the form

\[\dfrac{2uv}{u+v}.\]

Will one of the averages always be bigger than the other?

In which of the situations do you spend the longest time at the faster speed?

graphs of the two situations on the same axes showing equal time gives you a faster average speed

We can see from the graph that travelling for an equal length of time at both speeds means that you spend longer travelling at the higher speed than when you travel an equal distance at both speeds. Therefore you will cover the distance in a quicker time and have a greater average speed.

We can also prove this algebraically. If we subtract the harmonic mean (equal distance), away from the arithmetic mean (equal time), we get

\[\dfrac{u+v}{2}-\dfrac{2uv}{u+v} = \dfrac{u^2+v^2+2uv-4uv}{2(u+v)}.\]

If we then simplify the numerator we have

\[\dfrac{u^2-2uv+v^2}{2(u+v)},\]

which can be factorised to

\[\dfrac{(u-v)^2}{2(u+v)}.\]

The numerator will never be negative as it is squared, and the denominator will always be positive as \(u\) and \(v\) are always positive. Therefore

\[\dfrac{(u-v)^2}{2(u+v)}≥0.\]

So the average speed when driving for equal time will always be greater than or equal to the average speed when driving for equal distances.

The result in the question above generalises to more than two speeds. In fact the harmonic mean is always less than or equal to the geometric mean, which is always less than or equal to the arithmetic mean for the same set of positive numbers.

The part of this result that is used the most often only involves the arithmetic and geometric means.

\[\dfrac{1}{n}(x_1 + x_2 + ... + x_n) ≥ \sqrt[n]{\vphantom{()}x_1x_2...x_n}\]

This is more commonly known as the AM-GM inequality, and appears more regularly than you might think. You might like to try this review question or this one that it appears in.

Let us now think about a type of question you may well have seen before.

If the (arithmetic) mean height of a class of 30 pupils is \(1.24\)m, and the mean height of a class of \(20\) pupils is \(1.42\)m, what is the mean height of all the pupils?

What is the total height of all \(50\) pupils?

We cannot just take the mean of \(1.24\) and \(1.42\) as they are unequally weighted.

One way is to work out the total height of each class.

The class with \(30\) pupils has a total height of \(30 \times 1.24 = 37.2\)m.

The class with \(20\) pupils has a total height of \(20 \times 1.42 = 28.4\)m.

So the average height of all \(50\) pupils is

\[\dfrac{30 \times 1.24+ 20 \times 1.42}{50} = 1.312\textrm{m}\]

A different way of thinking about it is the proportion each class contributes to the average. The class with \(30\) pupils accounts for \(\frac{3}{5}\) of the total and so we could write the calculation

\[\text{average height} = \dfrac{3}{5}\times1.24+\dfrac{2}{5}\times1.42.\]

This is what we call a weighted arithmetic mean, as the two different heights are contributing unequal amounts to the mean.

Now let us consider a car travelling at a speed \(u\) for a time \(t_1\) and then travelling at speed \(v\) for time \(t_2\). What is its average speed?

We have

\[u = \dfrac{d_1}{t_1} \textrm{ and } v = \dfrac{d_2}{t_2},\]

so the average speed is given by

\[\dfrac{d_1+d_2}{t_1+t_2}.\]

If we rearrange the formulae for \(u\) and \(v\) to get them in terms of \(d_1\) and \(d_2\) then we can substitute these into the formala for average speed to get

\[\dfrac{ut_1+vt_2}{t_1+t_2},\]

which can be written as

\[\dfrac{t_1}{t_1+t_2}\times u + \dfrac{t_2}{t_1+t_2}\times v,\]

which is a weighted arithmetic mean, where we are taking the proportion of time that has been travelled at each speed into account.

From this general case we can return to our special case of equal times.

If you make \(t_1 = t_2\), can you show the formula simplifies to the arithmetic mean?

If you start again, you can rearrange the formulae for \(u\) and \(v\) to get them in terms of \(t_1\) and \(t_2\), and so get a formula for average speed in terms of \(u\), \(v\), \(d_1\) and \(d_2\) that is a weighted harmonic mean. Can you return to our special case of equal distances from your formula?