This repository hosts an in-depth Exploratory Data Analysis (EDA) project focusing on the Life Expectancy (WHO) dataset. The goal is to comprehensively analyze various socio-economic and health factors influencing life expectancy across different countries and years. Through statistical methods and rich visualizations, this project aims to uncover patterns, trends, and relationships within the dataset.
The dataset used in this project is the "Life Expectancy (WHO)" dataset, which contains health and economic factors for 193 countries from 2000-2015.
- Source: Kaggle - Life Expectancy (WHO)
- File:
Life Expectancy Data.csv(This file should be placed in the root directory of the cloned repository.)
The Jupyter notebook Life_Expectancy_EDA.ipynb performs the following key analyses:
- Data Loading & Cleaning: Initial inspection, handling of column names (stripping whitespace), and imputation of missing numerical values using the mean.
- Descriptive Statistics: Calculation of measures of central tendency (mean, median) and variability (standard deviation, quartiles, IQR) for all numerical features.
- Distribution Analysis: Visual exploration of the distribution of all numerical features using histograms, Kernel Density Estimate (KDE) plots, box-whisker plots, and violin plots to identify skewness, outliers, and overall shape.
- Covariance & Correlation: Quantification and visualization of linear relationships between all numerical features using a correlation matrix heatmap. Specific attention is given to the relationship between 'Life expectancy' and 'GDP'.
- Time-Series Trends: Analysis of average life expectancy over the years.
To run this EDA project locally, follow these steps:
Ensure you have Python (3.7+) and pip installed.
- Clone the repository:
git clone [https://github.com/CRMawande/Life-Expectancy-EDA.git](https://github.com/CRMawande/Life-Expectancy-EDA.git) cd Life-Expectancy-EDA - Install the required Python packages:
pip install -r requirements.txt
- Download the dataset:
Download the
Life Expectancy Data.csvfile from the Kaggle dataset page and place it directly into theLife-Expectancy-EDAdirectory (the root of the cloned repository).
- Launch Jupyter Notebook:
jupyter notebook
- Your web browser will open with the Jupyter interface. Navigate to and open
Life_Expectancy_EDA.ipynb. - Run all cells in the notebook to reproduce the analysis and visualizations.
- Preliminary findings indicate the distribution of
Life expectancyis somewhat negatively skewed. - Strong correlations exist between
Life expectancyand factors likeSchooling,Income composition of resources, andAdult Mortality. - Features like
infant deaths,under-five deaths,Measles, andHIV/AIDSoften show highly skewed distributions with significant outliers. - The project provides a visual understanding of how various health and economic indicators interact to influence life expectancy trends.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or suggestions, please feel free to reach out.
- GitHub: CRMawande