Logs and percents

  1. Natural logs
  2. Using logs to calculate annualized growth rates
  3. Logs and exponential growth
  4. Logs and level differences

Meme

Natural logs

You should be familiar with how logs work. You’ll recall that logs have a base (e.g. “log base 10”). In economics we almost always work with logs that have a base of e, the mathematical constant that is approximately 2.718. The natural log of something is the log using base e. This is often denoted using ln, as opposed to loge. In this study guide, every time you see a reference to “log”, I mean “natural log”, and I’ll use ln at all times to refer to taking the natural log of something.

If we say that that the natural log of z is equal to x,

lnz=x

then this means that

z=ex.

There are several properties of natural logs that we will use over and over again, and you need to know these well.

  • ln1=0
  • lne=1
  • ln0
  • ln(1+z)z when z is small (e.g. z<.1).
  • lnxz=lnx+lnz
  • lnx/z=lnxlnz
  • lnxα=αlnx
  • dlnx/dx=1/x, or the derivative of lnx with respect to x is 1/x.

This is some more mathematical material you have to be comfortable with to work through the study guide. If this doesn’t ring a bell, look to do some math review before this course.

Using logs to calculate annualized growth rates

Logs are handy because they allow us to turn multiplication and division problems into addition and subtraction problems. This can be really useful in calculating annualized growth rates, where if you recall from the prior section involved a pretty annoying formula,

gY,ts=(YsYt)1/(st)1.

Let’s manipulate this using logs. First, add one to both sides so we have

1+gY,ts=(YsYt)1/(st)

and then take the log of both sides

ln(1+gY,ts)=ln[(YsYt)1/(st)].

Now we need to apply several of our rules about natural logs. Start with the right-hand side. First, we can bring down the exponent. Second, we can turn the division into a subtraction.

ln(1+gY,ts)=1st(lnYslnYt).

Then, since the annualized growth rates we work with tend to be small, we can convert the left-hand side into gY,ts, and we have

gY,ts1st(lnYslnYt).

This says that the annualized growth rate is approximately equal to the difference in the log of GDP in the two end points, divided by the number of years.

Confirm this using the numbers from the table in the prior section. We has Yt=100 and Ys=109. This gives us

gY,ts16(4.6914.605)=.01433

or very close to 1.45%. If you used more decimal places in the natural logs of 100 and 109, you’d get an even closer approximation.

We can use logs to calculate annualized growth rates using the formula

gY,ts1st(lnYslnYt).

Logs and exponential growth

The above sections used logs as a way of calculating something a growth rate (which is like a percent change) from given data on the level of some variable (like GDP). We can also go the other way, and if you are given a growth rate you can work out the level of some variable.

Here’s an example. Let’s say we are talking about population over time, denoted by Lt. You know the initial population at time zero is L0, and you know that it has a constant growth rate of gL (maybe like 1% or 2%). What’s the size of the population at any given time t?

Well, start from period 0. This would then imply that population in period 1 was

L1=(1+gL)L0.

From period 1 to period 2 it would be that L2=(1+gL)L1, and so on. But if we know how to write L2 this way, and it depends on L1, and L1 depends on L0, then we can write

L2=(1+gL)2L0.

L2 is just the base level of population, L0, with the growth rate applied twice. This holds in general, and therefore

Lt=(1+gL)tL0.

The value of population in any period t just depends on the growth rate gL, the number of periods t, and the initial value, L0. We don’t need to write down the value in every period to find the value in period t. If you have the growth rate and initial value, you can find the value in any subsequent period.

If you take logs of this, you get the handy solution that

lnLt=tln(1+gL)+lnL0.

Apply our favorite trick to logs of 1+gL, and you get

lnLtlnL0+gLt.

The log of Lt depends on the log of initial population plus an adjustment which is just the growth rate gL times the number of periods. We’ll get to this next section, but note that this is a lot like an equation for a line, where t is the x variable. This just says that given the growth rate and initial level of a variable, you can find the log value of that variable in some period t.

This holds just fine with discrete years. We could also talk about exponential growth where the units of time get arbitrarily small. This would mean we take time to be continuous. The equivalent way to state the continuous time version is to say

L(t)=egLtL(0)

which says that the population at moment t can be solved for by knowing initial population size and the growth rate. Both Lt=(1+gL)tL0 and L(t)=egLtL(0) say roughly the same thing. The first just assumes that time moves in discrete chunks (e.g. years) while the second assumes that time moves continuously.

Note that if you take the log of this continuous time version you get

lnL(t)=lnL(0)+gLt

which is identical to what you get with the discrete time version. Once we know the growth rate and initial level, we can find the log value of a variable at any point in the future.

Our assumption of constant growth in population thus gives us a way of pinning down the size of population in any period of time t we want to think about. We’ll use equations like these in our models to describe how certain variables act over time.

If we know the growth rate of a variable X, gX, we can calculate the log of that variable at time t using:

lnX(t)=lnX(0)+gXt

Logs and level differences

A last way to use logs is related to using logs to find percentage growth. Here instead we’re interested in how logs related to ratios of variables, like the ratio of GDP per capita in the US to that in China. Let’s say that GDP per capita in the US is 60, but in China is only 15. Then the ratio is 60/15 = 4. Or US GDP per capita is 4 times higher than in China.

What we’ll often encounter in this class is that things like GDP per capita are shown in a graph or figure in log terms. That is, a figure might show that log GDP per capita is 4.094 (the natural log of 60), while the log GDP per capita in China is 2.708 (the natural log of 15). You’ll see in the next section of the Study Guide why a lot of figures will work with logs. When you take a look at the data in the growth facts section, almost everything is plotted in terms of logs. For now, take it as a given.

If you know the log GDP per capita in both, can you find the ratio? Sure. But let’s do that in a little more math-y way. If yUS is GDP per capita in the US, and yCH is GDP per capita in China, then yUS/yCH is the ratio we want (and we know is equal to 4). Using the properties of logs and exponentials, we can write

elnyUSlnyCH=yUSyCH.

This looks complicated, but it is just an application of the various rules about logs. You can work out on the right that this reduces to the ratio. But notice that on the right we have the difference in logs. This just tells us how to translate the difference in logs into the ratio.

Plug in what we know.

e4.0942.708=e1.386=3.9994.

The only reason the answer isn’t exactly right is because we only used three decimal places for the logs. But once we know the difference in log values, we know the ratio.


Table of contents