Friday, April 21st, 2006

When to use the geometric mean?

Filed under: — Daniel Lemire @ 14:34

This is better documented elsewhere, but I could not find a quick reference on the web as to when you’d want to use the geometric mean instead of the arithmetic (usual) mean.

  • Suppose that I’m 30% richer than last year, but last year I was 20% richer than the year before… what is the average growth? Well, my current wealth is 1.3 * 1.2 * w if w is my wealth two years ago. I can expect that if t is the average growth factor over the last two years, then my current wealth is t * t * w. Setting t = 1.25 is the wrong answer. In such a case, choosing t = sqrt(1.3 * 1.2) solves the problem.
  • Another case where the geometric mean makes sense is when you are stuck averaging numbers that are not comparable like the time necessary to build a data cube, versus the average query time. Indeed, if a and b are two numbers and a is much smaller than b, then (2a +b)/2 is about the same as (a+b)/2. One component of your system is significantly worse and yet, you get the same average performance? That’s wrong. Computing sqrt (2ab) seems to make much more sense.

No Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

Warning: When entering a long comment, please ensure that you make copy of your text prior to submitting it. If the server should fail or if you hit a bug, you might lose your work. I am not responsible for your lost effort.

To spammers: I carefully review every single post and make sure that spam gets deleted. You are wasting your time if you are manually entering spam using this form. Read my terms of use to see what I consider to be abusive.

Example: I + II + IX= XII. Yes, you have to enter a roman numeral. (Answer must be in upper case.)

« Blog's main page

30 queries. 1.159 seconds. Valid XHTML

Powered by WordPress

Subscribe to this blog in a reader or by Email.