Skip to content

ahshah322/World-Happiness-Report-2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

🌍 World Happiness Report 2025 — Data Analysis & Visualization

📊 Overview

This project explores the World Happiness Report 2025 dataset to understand how social, economic, and personal factors contribute to happiness across nations.
Using Python libraries like pandas, numpy, matplotlib, and seaborn, we visualize relationships between GDP, social support, health, freedom, generosity, and corruption perception.


⚙️ Technologies Used

  • Python 3
  • pandas, numpy
  • matplotlib, seaborn
  • Google Colab

📁 Dataset

The dataset used is the official World Happiness Report 2025 (CSV format) containing:

  • Country name
  • Regional indicator
  • Ladder score (Happiness Score)
  • Log GDP per capita
  • Social support
  • Healthy life expectancy
  • Freedom to make life choices
  • Generosity
  • Perceptions of corruption

🔍 Key Analyses & Visualizations

  1. GDP vs. Happiness — explores how economic prosperity affects happiness.
  2. Regional GDP Contribution — shows GDP share by region (pie chart).
  3. Correlation Heatmap — displays relationships among happiness factors.
  4. Perception of Corruption — compares corruption perceptions across regions.
  5. Life Expectancy Comparison — contrasts top and bottom 10 happiest countries.
  6. Freedom vs. Happiness — highlights the role of freedom in well-being.
  7. Most & Least Corrupt Countries — identifies global corruption extremes.
  8. Corruption vs. Happiness — visualizes their inverse relationship.

📈 Sample Visualizations

  • Happiness Score vs GDP per Capita
  • Correlation Heatmap of Key Factors
  • Life Expectancy of Top vs Bottom 10 Countries
  • Top 10 Most & Least Corrupt Countries
image image image image image

▶️ How to Run the Project

  1. Open the notebook in Google Colab: Open In Colab
  2. Mount your Google Drive (if using drive path).
  3. Install required libraries:
    pip install pandas numpy matplotlib seaborn
  4. Run all cells to reproduce the results and visualizations.

🧠 Insights

  • Higher GDP, social support, and freedom strongly correlate with greater happiness.
  • Corruption perception shows a negative correlation — nations with lower corruption enjoy higher happiness.
  • Healthy life expectancy is a major determinant separating top and bottom-ranked countries.

📄 License

This project is open source and available under the MIT License.


👨‍💻 Author

Ali Husnain Shah

Gmail GitHub LinkedIn

About

Data analysis and visualization of the World Happiness Report 2025 using Python (pandas, seaborn, matplotlib). Explores how GDP, health, freedom, generosity, and corruption perception influence global happiness.

Topics

Resources

Stars

Watchers

Forks

Contributors