Research First: Beating Kaggle's Titanic with History Books
Most Kaggle Titanic tutorials open with
import pandas as pdand immediately start running.describe(). I did something different: I read about the actual disaster first.The result was better feature engineering, more informed imputation strategies, and a clearer picture of what was noise versus signal. The model barely mattered. The features did all the work.
Why Research Before Code
The Titanic dataset has 891 rows and 11 features. You could get ~77% accuracy by predicting “all women survive, all men die.” Getting past 77% requires understanding why people survived beyond gender. That understanding comes from the history, not the data.
Who Was Aboard the Titanic? Clustering Passengers (and Testing Whether It Helps Prediction)
Everyone who has ever touched a Kaggle dataset has tried to predict who survived the Titanic. It’s the “Hello World” of machine learning: load the data, tune a model, submit a CSV, feel clever. I wanted to ask a different question.
Not “who survived?” but Seinfeld’s age-old question of “who are these people?”
Prediction treats the passengers as rows in a matrix. Clustering treats them as human beings who fall into natural groups: the wealthy elite, young workers, immigrant families, people traveling alone. Those groups fall out of the data on their own, without anyone labeling them. Then you overlay survival on top and the story gets a lot more human than any accuracy score.