Skip to content

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
Titanic Survival Prediction

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

  1. 01Imputed Age, Fare and Embarked and engineered a FamilySize feature.
  2. 02Encoded categoricals and log-transformed skewed fares.
  3. 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.