Showing posts with label geometric mean. Show all posts
Showing posts with label geometric mean. Show all posts

Wednesday, March 27, 2013

Geometric mean and compound interest


Let's say a report comes out that the growth of the Gross Domestic Product was 4.8% last quarter. Technically, quarterly reports give the annual rate of growth, what would happen if the same growth rate was seen for four consecutive quarters. How do we find the quarter to quarter growth. The simplest answer would be to divide, 4.8%/4 = 1.2%.  This is actually a little high.

1.2% quarterly growth means you take what you had and multiply by 101.2%, which is to say the 100% is what you had last quarter and the 1.2% is the amount of growth this quarter. Instead of adding 1.2% every quarter, the correct method would be to raise 101.2% to the fourth power.

1.012 × 1.012 × 1.012 × 1.012 = 1.0488709...

Rounded to the nearest tenth of a percent, this would be 4.9%. It's a small difference, but it is noticeable in the long run. The standard name for this is compound interest.

The correct method to find the quarter to quarter growth rate is to take the fourth root of 1.048, which is 1.011789855... The difference here is small and if we round to the nearest tenth of a percent, we would still get 1.2%. We have to round to one more place to see the rate is closer to 1.18%.

The differences get more noticeable as we use more numbers. Let's look at GDP data from two countries that were hit hard by last decade's financial crisis.


Here are Ireland's quarterly GDP numbers once things start going bad in 2008.

-0.4%, -0.9%, 0.4%, -7.4%, -6.2%, -4.8%, -6.3%, -4.5%, -2.7%, -1.4%, 1.0%, 0.2%, -0.9%, 2.9%, 1%, 2.8%, 2.7%, 0.2%, 0.9%, 0%

Long lists of numbers like this are hard to read and understand and even the chart doesn't tell the whole story.  If we add the numbers up and take the average, the Irish economy contracted about 1.17% a year for five years.  The correct method is to add 100% to each of these numbers take the fourth root, multiply those together and take the fifth root, since we are looking the five years from the start of 2008 to the beginning of 2013. Using this method, the annual contraction is about 1.22%.



Iceland was another country that took a big hit when the global economy fell. Both Iceland and Ireland were visited by Michael Lewis when he wrote the articles that became the book Boomerang. (He also visited Greece, Germany and California.)  Here are the Icelandic GDP numbers over the same time period.

4.8%, 2%, -0.8%, -0.7%, -5.9%, -6.1%, -6.5%, -8.6%, -6.6%, -6.2%, -3.2%, -0.1%, 3.9%, 2.1%, 3.5%, 2.1%, 4.2%, -1.2%, 2.2%, 1.4%

The numbers in Iceland show contraction as well.  Done the incorrect way of taking averages, Iceland's economy has contracted at a rate of 0.985%. Doing the geometric mean instead, the annual contraction is 1.07%.

Notice that the correct contraction rates are bigger using geometric means, but a larger contraction actually means a smaller number. This is in line with yesterday's post that geometric means will be less than arithmetic means. In Ireland, it's 98.83% using average and 98.78% using geometric mean. In Iceland, it's 99.015% using average and 98.93% using geometric mean.

Paul Krugman uses Iceland and Ireland as examples to prove austerity doesn't work.  After five years, we see only small differences between GDP contraction, so neither can be seen as a miracle or a disaster by this metric.


 The major difference is in the unemployment rate. Before things fell apart, the Irish unemployment rate was 4.7%. It has climbed to about 15% and has changed very little. The last data I could find reported in a quick search was 14.2% last November.


Iceland unemployment rate was a much lower 2.4% when the crash hit and climbed to 7.9% at its worst in February 2011. Since then it has fallen and is reported at 5.3% as of last November.

Ireland chose austerity and the people are still paying for it. Iceland forgave a lot but not all of the debt incurred by people who took on mortgages they could not afford. More than that, bank officials and corrupt politicians were aggressively prosecuted in Iceland, several of them now languishing in jail. The Icelandic economy is not all the way back to normal, but it is showing signs of improvement for working people that the Irish method cannot yet show.

Note: when taking averages of unemployment rates, the arithmetic mean is perfectly acceptable. There is no need to factor in any compound interest in these rates.

Tuesday, March 26, 2013

The arithmetic and geometric means


You very well might remember the method for taking an average from your schooling, no matter how long ago that was.  If you have a list of numbers and we call the length of the list n, the average is the sum of the numbers divided by n.

The other name for average in math is arithmetic mean. When used as an adjective, it is pronounced a-rith-MET-ic instead of a-RITH-met-ic. In math, a "mean" is a number that lies somewhere in between the highest and lowest number on a list.

Let us look at the arithmetic mean in relation to another mean, the geometric mean. The simplest means to take are when we only have two numbers on our list. For the average, a and b can be any two numbers but the geometric mean is most useful when both the numbers are positive.

We already know that the average of a and b is (a + b)/2 or ½(a + b). The geometric mean of two numbers is the square root of their product, which I will write here as sqrt(ab). One way to think of the geometric mean is to have a rectangle with sides a and b. A square whose sides are the geometric mean has the same area as the rectangle.


Still dealing with positive numbers, if a = b, then the arithmetic mean is equal to the geometric mean. If they are not equal, then the arithmetic mean will be greater than the geometric mean. There are several ways to prove this. This diagram is one of them.

We first put two line segments of lengths a and b next to each other so the total length is a + b. The average is the midpoint of the long line segment. If we draw a half circle with the average as the radius from the midpoint and draw a perpendicular from the point where the a segment and b segment meet, we can make a right triangle where the hypotenuse length is the average (a + b)/2.

The horizontal leg of the right triangle is a - (a +  b)/2 = (a - b)/2. Since it's a right triangle we know the some of the squares of the legs equals the square of the hypotenuse, and with a little algebraic manipulation we get this.

[(a + b)/2]² =  [(a - b)/2]² + leg²     (write the squares out)

(a² + 2ab + b)²/4 = (a² - 2ab + b)²/4 + leg² (subtract the a² and b² out from both sides)

2ab/4 = - 2ab/4 + leg² (add 2ab/4 to both sides and simplify 4ab/4)

ab =  leg² (square root of both sides)

sqrt(ab) =  leg

The leg of a right triangle must be less than the hypotenuse and that completes our proof in the case where we have two numbers on our list. It is also true when there are more than two numbers on the list, but the proofs become less visual.

Tomorrow, an application of the geometric mean.