By analyzing econometric data from Gapminder, this project aims to explore the relationship between a countriesā wealth, inequality, and human flourishing. To do this I used bivariate data exploration and look at the trends of countries in each quintile over time.
The data for this project comes primarily from Gapminder, which collects data from various sources worldwide, enabling a comprehensive understanding of global economic trends. From Gapminder, I downloaded csvās on every nationsā Real GDP, Gini Coefficient, Happiness, Murder Rate, Freedom Index (7 being the least free, 1 being the most free), and CO2 Emissions from up to 200 years ago.
The six different data sets were joined on the year and country columns. There were many missing values which eventually led me to trimming the time span over which the relevant analysis covered.
To better explore the trends of countries that are the most rich versus the most poor, I created categories for each country based on which quintile they resided in on average over the past 200 years. For example, each country was assigned a āGDP quintileā based on whether it had been amongst the 80-100th, 60-80th, 40-60th, etcā¦ percentile of GDP for countries over the past 200 years. I then would aggregate each quintiles scores and look at the quintiles trends over time.
The EDA phase involved scatter plots, line plots for each quintile, bar charts for each quintile, and correlation heatmaps between each of the econometric indicators. Here is a quick sample of the exploration of the relationship between GDP and the wellfare metrics of happiness, murder rate, and freedom (lower is better):
There appears to be a fairly robust correlation with increased GDP and increased happiness, although it is notable that above a GDP of $50,000 this correlation appears to weaken. It is also notable that many of the happiness scores lie above 30 and below 80. This seems to imply some type of subjective self-evaluation cutoffs that people often donāt rate themselves beyond.
Here one can observe that the freedom index of countries in each quintile of GDP have remained fairly constant over time with the biggest increases in average freedom coming from the 0-20th and 60-80th quintiles. It also would appear that there has been some slight loss in average freedom since 2008 across all quintiles.
This graph seems to strongly imply that more egalitarian countries are associated with a lower murder rate, however it is difficult to make this conclusion due to the lack of data from countries in the higher quintiles of inequality.
The strongest correlation between individual countries econometrics is happiness and gdp with a r = 0.74. Other stand out metrics are a strong positive correlation of CO2 and GDP (r=0.7), a weak positive correlation between murder rate and inequality (r=0.42), and inverse correlation between freedom and happiness (r=-0.53).
The projectās findings were exploratory in nature as no tests of statistical significance were conducted. However there were four key correlations observations from the above visualizations and the analysis performed in the notebook beyond what is presented here:
Thank you for your interest in Eternal Growth, Immortal Inequality. For any further inquiries or insights, please feel free to reach out through this GitHub repository or at scelarek@gmail.com.