Have you ever traveled to another country and felt like people there smile more, feel better and enjoy life better too? If so, then probably we can connect those factors and make an assumption that people there are happier on average than in the U.S. During the covid 8% more of the total population in the U.S. reported feeling more dissatisfied with their lifes according to CNN article.
But what factors exactly makes one country more happier than another (and why does that setiment change)?
To answer this question and identify main contributors to happiness in different countries, dataset that containts factors contributing to happiness across countries for 2019 is provided below. The dataser contains 156 countries and 9 columns with factors which are described below.
import pandas as pd
df = pd.read_csv('2019.csv')
df.head()
Overall rank | Country or region | Score | GDP per capita | Social support | Healthy life expectancy | Freedom to make life choices | Generosity | Perceptions of corruption | |
---|---|---|---|---|---|---|---|---|---|
0 | 1 | Finland | 7.769 | 1.340 | 1.587 | 0.986 | 0.596 | 0.153 | 0.393 |
1 | 2 | Denmark | 7.600 | 1.383 | 1.573 | 0.996 | 0.592 | 0.252 | 0.410 |
2 | 3 | Norway | 7.554 | 1.488 | 1.582 | 1.028 | 0.603 | 0.271 | 0.341 |
3 | 4 | Iceland | 7.494 | 1.380 | 1.624 | 1.026 | 0.591 | 0.354 | 0.118 |
4 | 5 | Netherlands | 7.488 | 1.396 | 1.522 | 0.999 | 0.557 | 0.322 | 0.298 |
We will cluster the countries into sets of countries that have better rating, medium rating, worse rating. Doing so will allow us to discover what factors out of the eight are the most important for the overall total happiness level of the firm.