Joseph Gagnon has written a blog post at the Peterson Institute about the Phillips curve in the United States.
Some economists have observed that the employment gap turned positive this year, but inflation has not increased. Gagnon argues that we should not be too quick to infer from this that the Phillips curve relationship has broken down, as high employment may take a while to raise prices. And he adds that this relationship is weaker in low inflation environments due to hesitancies to lower prices (i.e., nominal rigidities).
He kindly provides data and codes at the bottom of his codes, but let’s try to reproduce his figure using only public data from FRED.
In R, first install some packages:
Load the packages:
Now get some series on core (no food, no energy) personal consumption expenditures and on the unemployment rate from FRED.
To access data from FRED, you need to register an API key and insert below.
These are monthly series, so aggregate them to quarterly values:
Download quarterly CBO estimates for the natural rate of unemployment from FRED and calculate the employment gap as current employment rate minus natural rate.
Make a plot:
We see that the employment gap was negative for a long time after the financial crisis but has recently turned positive. That’s the bit of data that Gagnon and others are arguing about.
Now we create the variables that Gagnon uses. We lag the employment gap by four quarters and calculate the inflation rate as the year-on-year change in the price level:
Take the moving average of the last three years and detrend the inflation rate to get the “change in inflation”:
Last, we check in which periods inflation (four quarters before) was above three percent. And we truncate the data to the same sample as in Gagnon’s analysis.
Now we can reproduce the scatterplots:
We see indeed that there’s a relationship, but it’s more pronounced in the high inflation regime. And the most recent datapoint “2017 Q3” shows that – a year ago – the employment gap was still slighty negative with -0.16 and the change in inflation in 2017 Q3 was also negative with -0.20.