Skip to content

This project explores global life expectancy trends using the Analyst Builder platform. It showcases interactive dashboards and visual analytics to uncover relationships between life expectancy and factors such as GDP, healthcare spending, and country development status.

Notifications You must be signed in to change notification settings

Jc-analyst/World_Life_Expectancy

Repository files navigation

SQL Data Formats Status License GitHub last commit

🌍 World Life Expectancy Analysis with SQL

This project explores global life expectancy trends using SQL. It is based on the Analyst Builder: MySQL for Data Analytics course and highlights data cleaning, exploration, and analysis using real-world indicators.

πŸ“¦ Dataset

  • CSV File: WorldLifeExpectancy.csv
  • JSON File: WorldLifeExpectancy.json
  • The dataset includes life expectancy, GDP, development status, BMI, and adult mortality across multiple countries over several years.

🧹 Data Preparation

The cleaning and transformation steps were completed using SQL and include:

  • Removing duplicates with CONCAT(Country, Year)
  • Handling missing values in Status, Life expectancy, and BMI
  • Filtering anomalies such as zero or negative values
  • Ensuring data types and constraints for analysis

🧠 Analysis

Key queries were performed in the script:

  • World_Life_Expectacy_Script.sql

Insights include:

  • Trends in life expectancy by country and development status
  • Correlations with GDP, BMI, and adult mortality
  • Outlier detection and year-over-year improvements

πŸ“€ Output

  • Cleaned and analyzed results exported as:
    World_life_expectancy_output.csv

This file includes top countries by life expectancy, yearly trends, and categorical summaries.

πŸ“ Repository Structure

β”œβ”€β”€ data/ β”‚ β”œβ”€β”€ WorldLifeExpectancy.csv β”‚ └── WorldLifeExpectancy.json
β”œβ”€β”€ scripts/ β”‚ └── World_Life_Expectacy_Script.sql β”œβ”€β”€ output/ β”‚ └── World_life_expectancy_output.csv └── README.md

πŸ› οΈ Tools Used

  • MySQL / SQL Workbench
  • Git & GitHub
  • Data from Analyst Builder course

πŸ“Œ Key Takeaways

  • Life expectancy rises with economic development and healthcare investment.
  • Developing countries show greater volatility in trends.
  • Adult mortality and BMI are strong life expectancy indicators.

Project created for educational and portfolio purposes.
Feel free to fork or star ⭐ the repo if you find it useful!

About

This project explores global life expectancy trends using the Analyst Builder platform. It showcases interactive dashboards and visual analytics to uncover relationships between life expectancy and factors such as GDP, healthcare spending, and country development status.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published