• 3 months ago


Africa, a continent of unparalleled diversity and rich cultural tapestry, stands at the crossroads of development and challenges. Beyond its breathtaking landscapes and vibrant cultures lie intricate socioeconomic indicators that paint a nuanced picture of progress and struggle. In this comprehensive exploration, we delve into the dynamics of CO2 emissions, Gross National Income (GNI), Human Development Index (HDI), and life expectancy to unravel the story of Africa's past, understand its present and chart a course for a more sustainable future.

Data: the data used in this project was culled from Kaggle Global Socio-Economic & Environmental Indicators (kaggle.com). The datasets contained information relevant to all countries in the world. African countries were adapted and analyzed. 

Key columns definition:

  • ISO3: Three-letter country code (ISO 3166-1 alpha-3)
  • Country: Country name
  • hdicode: Identifier related to the Human Development Index (HDI)
  • region: Geographical region or grouping
  • hdi_rank_2021: HDI rank for the year 2021
  • life_expectancy_2021:  Life expectancy at birth for the year 2021
  • gni_per_capita_2021: GNI per capita for the year 2021
  • co2_production_2021: CO2 production for the year 2021

The datasets contained some null values, it is imperative to remove rows with such void. 



Our objective is clear - to dissect the intricate web of socioeconomic indicators, from environmental impact to economic fluctuations, human development, and the longevity of lives. Through a lens focused on Africa, we aim to discern patterns, uncover correlations, and shed light on the historical contexts that have shaped the continent's trajectory.

Descriptive Analysis for the year 2021

co2_prod_2021 gnipc_2021hdi_2021le_2021
count     49.000000     49.000000  48.000000 49.000000
mean       1.187450   5484.797875   0.560000 62.976435
std        1.921907   5628.968090   0.109032  5.790648
min        0.035370    731.786709   0.385000 52.525400
25% 0.145716   1908.241590    0.489750 59.652300
50% 0.355729   3344.311825   0.534500 61.662700
75%1.019209   6230.200199   0.621500 65.821000
max        7.62042025830.617750 0.802000 76.376700


Let’s explore each indicator over time

  1. CO2 Production

 From figure 1, it could be inferred that there was a significant spike in the tonnes of CO2 produced in Africa in 2004 and this even repeated itself ten (10) years after. Although, there are several possible factors that contributed to the increase in CO2 production in Africa in 2004 and 2014. The following activities can be held accountable for the spike:


  1. Figure 1: Annual Global CO2 Production 
  • Population growth and urbanization: Africa’s population grew by more than 50% from 2004 to 2014, reaching 1.1 billion people. More people meant more demand for electricity, transportation, and other services that rely on fossil fuels. Moreover, many people migrated from rural areas to urban centres, where the energy intensity and carbon footprint are higher.
  • Economic growth and industrialization: Many African countries experienced rapid economic growth and development in the 2000s and 2010s, which increased their energy demand and consumption. Most of their energy supply came from fossil fuels, such as coal, oil, and natural gas, which are major sources of CO2 emissions.
  • Land use change and deforestation: Africa has the largest area of savannas in the world, which are ecosystems that store large amounts of carbon in their soils and vegetation. However, some studies suggest that rising levels of CO2 in the atmosphere may favor the growth of trees over grasslands, altering the carbon balance and dynamics of the savannas. Additionally, some African countries have lost significant forest cover due to agriculture, logging, mining, and other human activities, releasing CO2 and reducing the natural carbon sinks.
  1. GNI (Gross National Income): The plot in figure 2 shows significant dips in years 1994, 2000, 2011 and 2020. Generally, the whole world suffered dips in 2020 due to the corona virus pandemic and lockdown. 

The Sub-Saharan Africa GNI declined in 1994, 2000 and 2011 for different reasons. The following observations were adapted from World bank’s review:

  • 1994: The GNI per capita dropped by 5.38% from 1993 to 1994. This was a year of political and economic turmoil in many African countries, such as the Rwandan genocide, the civil war in Liberia, the devaluation of the CFA franc, and the drought in southern Africa.
  • 2000: The GNI per capita decreased by 1.10% from 1999 to 2000. This was a period of low commodity prices, high debt burdens and the HIV/AIDS epidemic that affected many African countries.

Figure 2: Annual Gross National Income

  • 2011: The GNI per capita fell by 6.40% from 2010 to 20111. This was a year of global economic slowdown, political instability and social unrest in some African countries, such as the Arab Spring; the Libyan civil war; the famine in Somalia; and the post-election violence in Côte d’Ivoire.

These are some of the major factors that may have contributed to the decline of the GNI per capita of Sub-Saharan Africa in those years. 

  1. HDI (Human Development Index):

Though more than half of the Africa have a relatively low HDI there seems to be a steady growth in human development in Africa, from figure 3 it is evident that the only glitch was in 2020 due to the Corona Virus outbreak.


Figure 3: Distribution of HDI Categories



Figure 4: Annual Human Development Index

  1. Life Expectancy:
    • Enhanced access to essential health services, particularly for reproductive, maternal, newborn, and child health.

Africa has witnessed a notable increase of almost 10 years in healthy life expectancy from 2000 to 2019, surpassing gains seen in any other global region during the same period. Several contributing factors to this improvement include:

  • Advances in malaria control and broader availability of anti-retrovirals for HIV treatment.
  • Reduction in child mortality attributed to advancements in medical services, sanitation, and vaccination.

Figure 5: Annual Life Expectancy 

Despite these positive trends, the COVID-19 pandemic thrashed the health gains in some Africa countries (South Africa: -2.91%; Libya: -0.56%; Mauritania: -1.16%). Moreover, the increasing prevalence of noncommunicable diseases like hypertension, diabetes, and cancer presents a significant challenge to the healthcare systems in Africa.

Interconnected Analysis:

Correlation Matrix 

co2_prod_2021  gnipc_2021 hdi_2021 le_2021
co2_prod_2021  1.0000000.782626 0.672749 0.392235
gnipc_2021 0.782626 1.000000  0.866925  0.552211
hdi_2021  0.6727490.866925 1.000000  0.722035
le_2021    0.392235   0.552211 0.7220351.000000

Key: A correlation coefficient below 0.5 indicates a weak relationship, while a coefficient within the range of 0.5 to 0.7 signifies a moderate relationship. A coefficient exceeding 0.7 indicates a strong relationship.


Figure 6: Relationship between HDI and life expectancy in 2021


Carrying out a T-test to compare CO2 emissions between high and low HDI countries; 

T-statistic: 4.050722533019269, p-value: 0.00019436021664150557

The result indicates that there is a statistically significant difference in CO2 emissions between countries with high and low HDI values.


  • Political instability is one of the biggest problem of Africa, it is essential that an early warning system is put in place to address potential sources of instability before they escalate.
  • Shift from fossil fuel-based energy sources to renewable energy, such as solar, wind, and hydropower to reduce CO2 production
  • Promote sustainable and eco-friendly agricultural practices, including organic farming, agroforestry, and precision agriculture.
  • Encourage investments in sustainable projects through green finance initiatives.
  • Implementing measures that improve response capabilities thereby reducing the impact of future pandemics on public health and socio-economic well-being.


Increase in CO2 production has a high correlation with the rate at which human development index increases. Though, more than half of Africa are categorize has low HDI, it is commendable that there have been consistent growth over the years. Nonetheless, Africa should explore technology and improve health services to increase HDI and life expectancy.

Closing Thoughts:

There was a decade interval between the 2004 and 2014 CO2 spike, will this history repeat itself in 2024? How can we relatively prevent this??


Kaggle. (2023). “Comprehensive dataset on HDI, Life Expectancy, GNI per Capita, and CO2 Emissions”. Retrieved from Global Socio-Economic & Environmental Indicators (kaggle.com).

Statista. (2022). “Production-based carbon dioxide (CO2) emissions in Africa in 2021, by country” Retrieved fromAfrica: CO2 emissions by country 2021 | Statista

World bank. (2022). “GNI per capita, Atlas method (current US$) – Sub-Saharan Africa”. Retrieved from GNI per capita, Atlas method (current US$) - Sub-Saharan Africa | Data (worldbank.org)

World Health Organization. (2022). “Healthy life expectancy in Africa rises by almost ten years” Retrieved fromHealthy life expectancy in Africa rises by almost ten years | WHO | Regional Office for Africa


Appendix I: Top ten CO2 producing countries in Africa


Appendix II: Data view