Showing posts with label Harmonic Mean. Show all posts
Showing posts with label Harmonic Mean. Show all posts

Monday, July 14, 2008

Harmony

I’m going to analyse a little bit of the nature of the harmonic mean, but first, let us consider where in nature does this type of averaging take place. In order to do so, let us consider a very simple PSLE question:

“I want to go to the beach from my house, and I travel there at an average speed of 30 km/hr. Going home, I travel back to my house at an average speed of 20 km/hr. What then is my overall average speed?”

Interesting enough, 95% of everyone I’ve asked (to be fair, I asked them to give me an intuitive answer without working) gives the answer 25 km/hr, the average of 30 and 20. But remember, this is the arithmetic mean – is it truly the answer? Well let’s do some algebra to find out:


Doesn’t the last statement look familiar? Let’s contrast what we have with the harmonic mean:


Yes! You have just used the harmonic mean to calculate the overall average speed! And the normal arithmetic mean will not work in this case.

Well apart from the fact that algebra obviously must work, is there a physical reason as to why we used the harmonic mean? There is! Recall I mentioned that the harmonic mean is a special mean that weighs the magnitude of the two numbers we’re averaging? Haha, yes, but how exactly does it weigh? I’ll give you an example; let’s say I have the following harmonic mean:


And I say



And of course, what does this mean? It means that we can then neglect the presence of the second x value in the denominator:



Therefore we see the harmonic mean actually weighs out both numbers and gives a number that sort of “favours” (technically favour isn’t the word but never mind) the smaller of the two numbers!

With this concept in mind, we go on to note that harmonic means typically occur in time-based problems. The above PSLE question was one good example. Another example is the concept of reduced mass in a diatomic molecule, where we say the reduced mass is given by the harmonic mean:

So what happens if say, the second mass (i.e. one of the atoms in the diatomic molecule) is super huge and massive? Then we can neglect the first mass in the denominator and say that:


So what does this physically mean? It means that most of the time, mass 1 is doing the vibrating of the molecule – this makes sense, because lighter atoms move faster, and thus mass 1 should be doing most of the vibrating of the diatomic molecule.

In relation to the PSLE question, the harmonic mean favours the smaller number, and thus gives us a value of 24 km/hr, which is closer to 20 km/hr. Notice that the person travelled to the beach at 30 km/hr and then back at 20 km/hr – so I ask you, which speed is used for a longer time? That’s right, the 20 km/hr speed is being used for a longer time! And this is the crux! The harmonic mean actually deals with the number that has the greatest time concentration (time concentration isn't exactly the right term here, but oh well)!

For instance, in a diatomic molecule, the smaller mass is moving most of the time, and thus the harmonic mean favours it. In the PSLE question, you spent more time moving at 20 km/hr, so the harmonic mean favours it. In another physical situation where you have rotating masses, the reduced mass favours the smaller one, because the smaller mass is moving most of the time, and the larger one is effectively stationary.

Therefore, the harmonic mean actually weighs the two quantities in accordance with how much time has been associated with each of the quantities. Oh well, this has been a weak, incomplete and unmathematical justification of the true nature of the harmonic mean, but it’ll do – I’m super tired from work, heh.

How Mean Are They?

Recall that in an earlier post, I pointed out that there were four different kinds of means that commonly pop up in physical situations, and to recap your memory, they are:


The Arithmetic Mean

The Geometric Mean

The Harmonic Mean

The Power Mean

Oh and before anything, I shall just assume both numbers are positive, so it simplifies my working. :)

And of course, I’ll now endeavour to show the relative magnitudes of the above means I’ve stated, and I’ll start with the power mean (I’ll consider a specific one, the quadratic mean) and geometric mean first, since these two are easiest to compare:



Another easy pair is the arithmetic mean and the geometric mean:


The next easy pair should then be the arithmetic mean and the quadratic power mean:


Notice that I’ve used the same inequality over and over again, namely:


Is that amazing, or what? Let’s now recap:


So this leaves us with the harmonic mean, which can be a rather nasty affair, but with some tricks again, we’ll see:


There you have it: by proving that the geometric mean is greater than the harmonic mean, we no longer have to prove the other pairs of means, because the geometric mean was the least in our previous analysis. And therefore, we can now say:


So why have I determined the order of the magnitudes of the different means? Well, it's to show you that there is no such thing as "one mean is more mean than the other"; their magnitudes can still differ considerably from one another! Therefore, we can't really say one mean is better than the other, but rather, we have to look at the situation, and what the situation calls for, before we choose the appropriate mean to use.

Another conclusion can be drawn if you look at their mathematical structure: if you look at the geometric mean, one may think it's not giving equal weightage to both numbers; but what if you think about the powers? Multiplying two numbers together means you're adding their powers together, and taking the square root halves their powers added, and thus the geometric mean effectively gives you the mean of the powers of the two numbers.

How about the harmonic mean? It's interesting, because the product of the two numbers is weighed by the sum of the two numbers - it is as if this mean weighs the two numbers according to how big they are, or how small they are! I'll speak more on this in a later post.

And all of these things are nice to chew upon. Heh. :)

Sunday, July 13, 2008

Meanie!

You know, there’s the usual arithmetic mean (pops up nearly everywhere!):



And of course, there’s the geometric mean (appears in the calculation of the end point pH for a titration):


The harmonic mean sometimes pops up in physical solutions (appears in the calculation of reduced mass and average speeds):


And finally, there is the power mean (appears in the calculation of root mean square speed in the kinetic theory of gases):

I'll deal more with these different types of means in later posts, so keep a lookout for them!