Titanic Survival Analysis#
๐ข RMS Titanic: A Data Science Case Study
Exploring survival patterns through comprehensive machine learning analysis
Project Overview#
The RMS Titanic disaster offers a tragic but data-rich case study in survival analysis. On April 15, 1912, the โunsinkableโ ship struck an iceberg and sank, resulting in the deaths of over 1,500 passengers and crew. The disaster has been extensively documented, providing a comprehensive dataset that allows us to explore patterns in survival.
This project demonstrates a complete machine learning workflow, from initial data exploration through model development to final interpretation. Weโll investigate which factors most strongly predicted survival and compare multiple classification approaches.
Project Structure#
This analysis is organized into four interconnected notebooks:
๐ 1. Data Exploration
Initial profiling, univariate and bivariate analysis, missing data patterns
Key Questions#
๐ Which demographic factors were most predictive of survival?
๐ How did class, gender, and age interact in determining survival outcomes?
๐ Which machine learning model best captures the underlying patterns?
๐ What can we learn about the โwomen and children firstโ evacuation policy from the data?
Dataset#
The dataset contains information on 891 passengers, including:
Age, Sex, Embarked port
Passenger class (Pclass), Fare
Siblings/spouses, Parents/children
Survival (0 = No, 1 = Yes)
Technical Approach#
Weโll employ a rigorous methodology:
Automated profiling and custom visualizations
Multiple imputation for missing age values
Logistic regression, tree-based methods, ensemble techniques
Feature importance, SHAP values, partial dependence plots
Stratified cross-validation with multiple evaluation metrics
Expected Outcomes#
By the end of this analysis, weโll have:
Ready to explore?