Machine Learning
Titanic Survival Prediction
A classic end-to-end classification study on the public Kaggle Titanic dataset (891 records) — feature engineering, multi-algorithm comparison and honest evaluation, reaching 83.2% accuracy.
Demonstration2023
All projects

Problem
The Titanic dataset packs the core challenges of applied ML into one place: heavy missingness, class imbalance and signal hidden in names, tickets and family structure.
Objectives
- Predict survival from passenger characteristics.
- Engineer features from messy, incomplete fields.
- Compare algorithms and report results transparently.
My role
Full workflow: wrangling, feature engineering, modelling and comparison.
Methodology
- 01Imputed Age, Fare and Embarked and engineered a FamilySize feature.
- 02Encoded categoricals and log-transformed skewed fares.
- 03Compared Random Forest, Logistic Regression and Decision Tree with tuning.
Outcome
Random Forest led at 83.2% accuracy (vs. ~80.2% for the linear and tree baselines). Passenger class and gender were the strongest predictors — the model reflecting the social realities of 1912.
Challenges
Significant missing data (77% of Cabin values) and resisting overfitting on a small dataset.
Lessons learned
On small, messy data, disciplined feature engineering and honest validation matter more than model choice.