# Africa Population Trend and Health Analysis - Assignment 2
## Predictive Modeling and Hypothesis Testing
This project builds upon Assignment 1's exploratory data analysis to test hypotheses about African demographic transitions using supervised machine learning.
---
## 📁 Project Structure
```
Africa-Population-Trend-and-Health-Analysis-UN-dataset-/
│
├── src/ # Python modules (OOP implementation)
│ ├── __init__.py
│ ├── data_processor.py # DataProcessor class - data loading & cleaning
│ ├── feature_engineer.py # FeatureEngineer class - feature creation
│ ├── model_trainer.py # ModelTrainer class - training & tuning
│ └── model_evaluator.py # ModelEvaluator class - evaluation & comparison
│
├── notebooks/
│ └── main_analysis.ipynb # Main workflow notebook with all analyses
│
├── results/ # Auto-generated outputs
│ ├── figures/ # Model comparison & feature importance plots
│ ├── tables/ # Performance metrics CSV files
│ └── predictions/ # Model predictions for each hypothesis
│
├── df_africa_cleaned.xls # Dataset (UN DESA population & health data)
│
└── README.md # This file
```
---
## 🎯 Project Overview
### Research Questions
This assignment tests **three hypotheses** about African demographic transitions (2010-2024):
1. **H1:** Does fertility rate predict maternal mortality? (Regression)
2. **H2:** Does life expectancy predict population growth rate? (Regression)
3. **H3:** Does under-five mortality predict life expectancy? (Regression)
### Dataset
- **Source:** UN DESA Population Division
- **Scope:** 54 African countries, 2010-2024 (annual observations)
- **Key Indicators:**
- Life expectancy at birth (both sexes)
- Total fertility rate
- Under-five mortality rate
- Maternal mortality ratio
- Population annual growth rate
---
## 🚀 Getting Started
### Prerequisites
Required …