Social interactions and economic outcomes

Materials for class on Thursday, September 5, 2019



Download the slides from today’s class.

First slide

Complete file

Here’s a completed version of what we did in class, with lots of examples of calculating compound growth rates, shifting CPI indexes to different years, and adjusting for inflation (scroll to the bottom of the worksheet to see the compounding interest examples):

Fun with math and Excel

Here’s what we’ll do:

Download this file:

Also, according to the US Census, the median home price in 1990 was $125,000. In 2018, it was $329,600.

Nominal to real

Converting nominal values (the numbers written down at the time) to real values (the numbers in today’s / another year’s dollars):

\[ \text{Real value} = \frac{\text{Nominal value}}{\text{Price index / 100}} \]

Shifting CPI

Shifting the price index to a different year:

\[ \text{Price index}_{\text{new year}} = \frac{\text{Price index}_{\text{current year}}}{\text{Price index}_{\text{new year}}} \times 100 \]

Inflation rate

Luke screaming no

The inflation rate is the percent change in CPI between two periods. The formula for percent change is fairly simple—just remember NOO!

\[ \text{% change} = \frac{\text{New} - \text{Old}}{\text{Old}} \]


\[ \text{% change} = \frac{\text{Current} - \text{Previous}}{\text{Previous}} \]

Pay attention to the time periods in data from FRED.Or anywhere, really.

Datasets like GDP are reported quarterly, while the CPI is monthly. If you need to calculate the annual change (or annual inflation), make sure you either (1) use the same month or quarter as your current and previous times (i.e. January 2016 and January 2017), or (2) add all the percent changes within the year (i.e. add the rates from January 2016, April 2016, July 2017, and October 2017).

Compounding inflation

The compound average inflation rate is the percent that if the CPI had grown at that rate, compounded, from the start year to the end year, the same CPI would occur in the end year. To calculate this, use the formula for compounding interest, where \(A\) is the CPI or price at the end of time period we’re concerned about, \(P\) the CPI or price at the beginning of the time period we’re concerned about, \(n\) is the number of times the rate is compounded each year, \(t\) is the number of years, and \(r\) is the rate that you want to solve for:

\[ A = P (1 + \frac{r}{n})^{nt} \]

If we assume interest is compounded once a year, \(n\) is 1 and can disappear. This simplifies to:

\[ \text{CPI}_{\text{new}} = \text{CPI}_{\text{old}}(1 + r)^{t} \]

We can rearrange the formula so that \(r\) is on the righthand side by dividing, exponentiating, logging, and subtracting:

\[ r = exp(\frac{ln(\frac{\text{CPI}_{\text{new}}}{\text{CPI}_{\text{old}}})}{t}) - 1 \]

Alternatively, instead of assuming annually compounding interest, we can also assume exponential growth (or continually compounding interest), which uses the following formula (again where \(A\), \(P\), \(r\), and \(t\) are the prices in the last year, prices in the first year, the rate, and the number of years:

\[ A = Pe^{rt} \]


\[ \text{CPI}_{\text{new}} = \text{CPI}_{\text{old}}e^{rt} \]

We can again rearrange the formula so that \(r\) is on the righthand side:

\[ r = \frac{ln(\frac{\text{CPI}_{\text{new}}}{\text{CPI}_{\text{old}}})}{t} \]

Public goods game results

This game is based on Charles A. Holt and Susan K. Laury “Classroom Games: Voluntary Provision of a Public Good,” Journal of Economic Perspectives 11, nos. 4, Fall (1997): 209–15, doi:10.1257/jep.11.4.209.

Contributions to the public pool decreased fairly rapidly after the first round when you noticed how much free-riding had occurred. Shifting rules later on didn’t do much to change the equilibrium of the game. Changing the value of a kept red card to $2 in round 5 didn’t really change the average contribution, and changing the value of a public red card to $2 in round 8 made the public pool explode in value.

Clearest and muddiest things

Go to this form and answer these three questions:

  1. What was the muddiest thing from class today? What are you still wondering about?
  2. What was the clearest thing from class today?
  3. What was the most exciting thing you learned?

I’ll compile the questions and send out answers after class.