Statistical Analysis of Childbed Fever
Investigating the Impact of Handwashing on Childbed Fever Mortality Rates Technologies: Data Analysis, Statistical Testing, Time Series Analysis, Data Visualization
Overview
This project investigates the impact of handwashing on reducing death rates due to childbed fever based on historical data from Dr. Ignaz Semmelweis. The analysis provides insights into how hand hygiene practices significantly improved health outcomes in maternity wards.
- Historical Context: Dr. Ignaz Semmelweis hypothesized that handwashing could prevent infections in maternity wards. This project analyzes his original data to validate his hypothesis.
- Objective: To demonstrate the effectiveness of handwashing in reducing mortality rates from childbed fever.
Dataset
- Source: Historical data collected by Dr. Semmelweis.
- Key Columns:
-
date
: The date of the record. -
births
: The number of births in the clinic. -
deaths
: The number of deaths in the clinic. -
clinic
: The name of the clinic.
-
Methodology
- Data Cleaning: Addressed missing values and converted data types for accurate analysis.
- Data Visualization: Utilized histograms, KDE plots, and line charts to visualize data distributions and trends.
- Statistical Analysis: Performed t-tests to compare death rates before and after implementing handwashing.
- Time Series Analysis: Analyzed different periods in the data using rolling averages to highlight trends.
Histograms and KDE Plots

- Histograms: Visualized death rate distributions before and after handwashing.
- KDE Plots: Used kernel density estimates to smooth distributions and highlight differences.

- Rolling Averages: Calculated 6-month rolling averages of death rates before mandatory handwashing.
- Trend Analysis: Highlighted changes in death rates over time with handwashing implementation.
Results
The analysis shows a significant reduction in death rates after introducing handwashing:
- Average death rate before handwashing: 9.92%
- Average death rate after handwashing: 3.88%
- t-test p-value: 0.0000002985, indicating a highly significant difference.
Conclusion
The analysis provides strong evidence supporting Dr. Semmelweis’s hypothesis that handwashing significantly reduces death rates due to childbed fever. This finding underscores the importance of hygiene practices in medical settings.