Skip to content

TheEconomist/the-economist-gdp-per-hour-estimates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GDP per hour worked

This repo contains the data and code of our analysis of GDP and productivity. The resulting article can be found here. To replicate the analysis, please run 'scripts/01-data-setup.R' and 'scripts/02-charts.R' in that order.

It also contains the data and code behind our ranking of the world's richest countries, which can be found here. To replicate this analysis, please run the two aforementioned scripts, then 'scripts/03-estimate-gdp-per-hour-for-all-countries.R'.

We exclude Ireland from our analysis and data due to issues with its GDP figures explained here.

For any questions about this work, please email: sondresolstad@economist.com

Our latest data can be downloaded here.

Methodology: Estimating GDP per hour worked

For OECD countries, we followed guidance from OECD statisticians on how to use their data to calculate total hours worked.

The relevant OECD data was not available for all countries. When missing, we first turned to the Penn World Table. If this source had data available for a country from 2015 or later, we used the most recent value. (We first checked that this was permissible using our OECD data: with the exception of a temporary dip during the early stages of the covid-19 pandemic, values were stable in this interval.)

If no such data was available from either source, we estimated it. We here relied on gradient boosted trees as our modelling approach, and used data on countries' demography and economics (including known oil reserves) to train our models. These estimates are uncertain, as we acknowledge, and especially so for poor countries. While our method held up well in cross-validation, our estimates for the very poorest countries, for instance, could be systematically off, and should be approached with care (this would however not greatly affect their rankings).

GDP PPP per hour worked was then calculated by dividing countries' total GDP PPP by their hours worked. GDP adjusted for hours worked (and costs) were calculated by adjusting GDP PPP in a given country by the ratio of their estimated hours worked per person to the average for the world as a whole (i.e. mean of all countries, weighted by population).

Those interested can replicate and inspect our calibration plots, other tests, and view all the code here.

Notes

This work shows the latest data available, which at the time of publication, were estimates of 2022 values made in 2023. This means that economic change during 2023 are not captured in the data. Our data also only shows country averages, and does not consider the distribution of income within countries. In some countries high savings rates or other factors may make GDP estimates less reliable as a guide to living standards. Finally, we rely on GDP estimates which are themselves uncertain, and, research suggests, may be especially unreliable for authoritarian countries.

Data sources

OECD, World Bank, UN, Penn World Table

Suggested citation

The Economist and Solstad, Sondre (corresponding author), 2023. "All work and no play", The Economist, October 4th issue, 2023.

About

Code and data for Graphic detail on GDP and productivity

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages