This project presents an end-to-end exploratory data analysis (EDA) of the 2014–2016 Ebola outbreak using Python.
The analysis focuses on cleaning, validating, restructuring, analyzing, and visualizing epidemiological data reported across affected countries.
The objective is to transform raw reporting data into a clean and reproducible analytical dataset and extract meaningful insights about:
- the evolution of Ebola cases over time,
- cumulative cases and deaths,
- differences between affected countries,
- Case Fatality Ratio (CFR),
- missing values and reporting inconsistencies.
The main objectives of this project are to:
- Explore and understand the structure of the raw dataset.
- Clean and standardize epidemiological data.
- Validate duplicates and reporting-series consistency.
- Reshape data from long to wide format.
- Identify and treat missing values.
- Analyze cumulative Ebola cases and deaths.
- Calculate the Case Fatality Ratio (CFR).
- Compare the epidemiological profiles of affected countries.
- Produce clear and interpretable data visualizations.
The dataset contains Ebola epidemiological reporting data covering the period:
29 August 2014 – 23 March 2016
The original dataset contains:
- 17,585 observations
- 4 variables
Main variables:
| Variable | Description |
|---|---|
Indicator |
Epidemiological indicator |
Country |
Country or reporting series |
Date |
Reporting date |
value |
Reported numerical value |
The analysis focuses primarily on two indicators:
- Cumulative number of confirmed, probable and suspected Ebola cases
- Cumulative number of confirmed, probable and suspected Ebola deaths
The dataset is based on World Health Organization (WHO) reporting and was distributed through the Humanitarian Data Exchange (HDX).
- Python
- Pandas
- NumPy
- Matplotlib
- Seaborn
- Data Cleaning
- Data Validation
- Exploratory Data Analysis (EDA)
- Missing Value Analysis
- Data Transformation
- Long-to-Wide Reshaping
- GroupBy Operations
- Data Aggregation
- Time-Series Exploration
- Case Fatality Ratio Calculation
- Data Visualization
- Epidemiological Data Analysis
The project follows a structured analytical workflow:
The raw dataset is imported and inspected to understand its dimensions, variables, data types, and reporting structure.
Text fields are standardized and reporting dates are converted to a consistent datetime format.
The dataset is checked for:
- missing values,
- exact duplicates,
- country/date/indicator collisions,
- distinct reporting series.
Special attention is given to reporting series such as:
Liberia/Liberia 2Guinea/Guinea 2
The analysis focuses on cumulative Ebola cases and cumulative Ebola deaths.
The evolution of cumulative cases is examined over time, particularly for:
- Guinea
- Liberia
- Sierra Leone
Secondary reporting series are analyzed separately.
The dataset is transformed from long format to wide format using Pandas pivot operations.
After reshaping, 8 missing case values are identified.
The surrounding observations are examined before applying bounded linear interpolation within each country's reporting series.
The final Case Fatality Ratio is calculated as:
CFR (%) = (Final Deaths / Final Cases) × 100
Countries are compared using:
- time-series plots,
- horizontal bar charts,
- grouped bar charts,
- normalized heatmaps.
The Ebola outbreak was highly concentrated in three main reporting series:
- Sierra Leone
- Liberia
- Guinea
At the latest observation:
| Country | Cumulative Cases | Cumulative Deaths |
|---|---|---|
| Sierra Leone | 14,122 | 3,955 |
| Liberia | 10,666 | 4,806 |
| Guinea | 3,804 | 2,536 |
Sierra Leone recorded the highest cumulative number of cases, while Liberia recorded the highest cumulative number of deaths among the three main countries.
Among the three main reporting series:
| Country | Final CFR |
|---|---|
| Guinea | ~66.7% |
| Liberia | ~45.1% |
| Sierra Leone | ~28.0% |
Guinea therefore shows the highest final CFR among the three major reporting series.
High CFR percentages observed in some smaller reporting series should be interpreted cautiously because they are based on very small numbers of cases.
The analysis also identified important data-quality considerations:
- multiple reporting series exist for some countries;
- retrospective corrections occur in cumulative reporting;
- 8 missing case observations appeared after reshaping;
- missing observations were analyzed in their temporal context before imputation.
The notebook includes several visual analyses:
- Evolution of cumulative Ebola cases over time
- Analysis of secondary reporting series
- Case Fatality Ratio by country
- Final cumulative cases and deaths
- Comparison of Guinea, Liberia, and Sierra Leone
- Normalized epidemiological heatmap
These visualizations help reveal differences in epidemic magnitude, mortality, and reporting patterns.
Ebola-outbreak-data-analysis/
│
├── data/
│ └── ebola_data_db_format.csv
│
├── ebola_outbreak_analysis.ipynb
│
└── README.md