Skip to content

sphesihlemhlongo/Life-Expectancy-and-Health-Spending

Repository files navigation

🌍 Life Expectancy vs Health Spending 🏥

Python Version Jupyter

How long we live vs. how much we spend — a tale told in code and scatterplots.


📘 Project Overview

This notebook-based data science project explores the relationship between life expectancy and health spending per capita across different countries. By visualizing this connection, we aim to answer one simple, yet powerful question:

💡 Does spending more on healthcare actually help people live longer?

With clean data, beautiful plots, and a bit of statistical magic, we peel back the layers behind public health outcomes.


🌱 Significance of the Project

Health is wealth — but is wealth health?

This project sits at the intersection of economics and epidemiology. Its insights can:

  • 🎯 Inform policy makers on global health investment outcomes
  • 🌐 Encourage equitable spending based on health returns
  • 📊 Serve as a teaching tool for budding data scientists
  • 💬 Spark conversations around efficiency vs. expenditure

From classroom to conference room, this notebook has value.


🚀 Getting Started

Ready to explore? Here’s your quickstart guide.

🔁 Step 1: Clone the Repository

git clone https://github.com/your-username/life-expectancy-health-spending.git
cd life-expectancy-health-spending

🧪 Step 2: Create & Activate a Virtual Environment

For Unix/macOS users:

python3 -m venv venv
source venv/bin/activate

For Windows users:

python -m venv venv
venv\Scripts\activate

📦 Step 3: Install Dependencies

pip install -r requirements.txt

🧠 Step 4: Launch the Notebook

jupyter notebook

Then open:

📂 Life Expectancy and Health Spending.ipynb

Written by Sphesihle Mhlongo

About

A model that predicts a nation's life expectancy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors