Using classic machine learning models to understand driving factors of happiness globally
- Analyze the World Happiness Report to identify factors driving happiness
- Ultimately, provide actionable insights for policymakers to improve well-being globally
Check ./prerequisites for more
1. Data Handling (./data for more)
- Data Preprocessing
- Feature Engineering
2. Predictive Methods (./src for more)
- Traditional Decision Tree
- Logistic Regression
- K-Nearest Neighbors
- Lasso Regression
- Random Forest (Ensemble Method)
3. Nested Cross Validation (./src for more)
Check ./src for more
Check ./data for more
For in-depth analysis of the outcome, go to ./src
Average KNN Accuracy: 0.9593889325990034
Average Decision Tree Accuracy: 0.938290060319958
Average Lasso Accuracy: 0.9504656311556591
Average Random Forest Accuracy: 0.9610149488591659
Average Logistic Regression Accuracy: 0.9528979805927091
==> Random Forest is the best
- Predictive analysis shows GDP, Family, Health, and Freedom as strong contributors (in that order) to happiness
- No single factor is sufficient to bring about happiness. In countries with a high happiness ranking, multiple factors (e.g., those listed above) work together in strong combination.
- Countries can use happiness metrics as a blueprint for relevant policies that would improving well-being create sustainable development and global well-being
- Improved Global Stability: Happier nations are often healthier, more productive, and more stable politically and economically.
- Social Equity: Policies that enhance happiness often reduce inequality, fostering more inclusive societies.
- Inspiration for Developing Nations: The index serves as a framework for nations striving to improve the quality of life despite economic limitations.