Thursday, June 19, 2014

Energy and Economic Growth: The Animated GIF

It seems that everyone loves the animation of energy use per capita and GDP per capita that I am showing as part of my presentations on Energy and Economic Growth: The Stylized Facts. So, at James Hamilton's suggestion and with Zsuzsanna's help I have made an animated GIF of this slide sequence:

The graph is for the 99 countries that have data in both the Penn World Table (7.0) and the IEA Energy Balances. The line is the best fit log-log regression computed by Excel. As you can see the relationship between these two variables has been very stable over the last forty years globally.


  1. There is not really any code. I just made a separate graph in Excel for each year and saved them as jpeg files. Then we used GIMP to sew them together as an animated GIF.