Friday, May 19, 2017

Principal component analysis of state unemployment rates

One of my hobbies on this blog is to apply various principal component analyses (PCA) to economic data. For example, here's some jobs data by industry (more here). I am not saying this is original research (many economics papers have used PCA, but a quick Googling did not turn up this particular version).

Anyway, this is based on seasonally adjusted FRED data (e.g. here for WA) and I put the code up in the dynamic equilibrium repository. Here is all of the data along with the US unemployment rate (gray):

It's a basic Karhunen–Lo√®ve decomposition (Mathematica function here). Blue is the principal component (first principal component), and the rest of the components aren't as relevant. To a pretty good approximation, the business cycle in employment is a national phenomenon:

There's an overall normalization factor based on the fact that we have 50 states. We can see the first (blue) and second (yellow) components alongside the national unemployment rate (gray, right scale): 

Basically the principal component is the national business cycle. The second component is interesting as it suggests differences in different states based on the two big recessions of the past 40 years (1980s and the Great Recession) that go in opposite directions. The best description of this component is that it represents that some states did much worse in the 1980s and some states did a bit better in the 2000s (see the first graph of this post).

As happened before, the principal component is pretty well modeled by the dynamic equilibrium model (just like the national data):

The transitions (recession centers) are at 1981.0, 1991.0, 2001.7, 2008.8 and a positive shock at 2014.2. These are consistent with the national data transitions (1981.1, 1991.1, 2001.7, 2008.8 and 2014.4).

No comments:

Post a Comment

Comments are welcome. Please see the Moderation and comment policy.

Also, try to avoid the use of dollar signs as they interfere with my setup of mathjax. I left it set up that way because I think this is funny for an economics blog. You can use € or £ instead.

Note: Only a member of this blog may post a comment.