🟣 🌍 Global Development Analysis: GDP and Life Expectation
🟣 Objetivo
The objective of this analysis is to explore relationships between economic development (GDP) and life expectation across different regions, identifying patterns and potential insights.
🟣 Carga de datos
Se utiliza el dataset público de la página https://raw.githubusercontent.com/resbaz/r-novice-gapminder-files/master/data/gapminder-FiveYearData.csv
🟣 Limpieza de datos
<class 'pandas.core.frame.DataFrame'> RangeIndex: 1704 entries, 0 to 1703 Data columns (total 6 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 country 1704 non-null object 1 year 1704 non-null int64 2 pop 1704 non-null float64 3 continent 1704 non-null object 4 lifeExp 1704 non-null float64 5 gdpPercap 1704 non-null float64 dtypes: float64(3), int64(1), object(2) memory usage: 80.0+ KB Shape: (1704, 6) Missing values: country 0 year 0 pop 0 continent 0 lifeExp 0 gdpPercap 0 dtype: int64 Years covered: 1952–2007 Countries: 142 Rows removed: 0
Data was cleaned by removing missing values to ensure consistency.
🟣 Exploración inicial (EDA)
🟣 Visualizaciones
↗ There is a positive correlation between GDP and life expectancy
🟣 Insights
=== KEY INSIGHTS === Highest median GDP per capita: Oceania Highest median life expectancy: Oceania Europe vs. Africa life expectancy gap: 24.4 years Pearson correlation (r = 0.584): strong positive relationship
🟣 Conclusion
This analysis shows a clear relationship between economic development and life expectancy. Higher GDP per capita is generally associated with better living conditions and longer life expectancy, highlighting global inequalities between regions.