Titanic survival prediction: a systematic benchmark of ten classification algorithms with overfitting analysis
Abstract
This study presents a systematic benchmark of ten classification algorithms for predicting Titanic passenger survival using the Kaggle dataset (891 records). Algorithms evaluated include logistic regression, support vector machine (SVM), decision trees, random forest, gradient boosting, AdaBoost, bagging, Naive Bayes, K-nearest-neighbor (KNN), and linear discriminant analysis (LDA). Preprocessing addresses missing values via median and mode imputation, while feature engineering extracts titles, ticket prefixes, and family size. Distance-based methods (SVM, KNN) are evaluated with feature scaling to ensure fair comparison. Hyperparameter tuning reduces overfitting from 15.64% to 4.81%, and ten-fold cross-validation confirms result robustness. Optimized random forest achieves the highest test accuracy (81.56%), while AdaBoost maintains the smallest generalization gap (1.30%). Statistical tests confirm no significant difference among top models (p > 0.05). Feature importance analysis identifies gender, fare, and family size as dominant survival predictors, consistent with historical evacuation accounts. These findings demonstrate applicability to contemporary disaster response planning.
Keywords
Classification algorithms; Feature engineering; Machine learning; Random forest; Survival prediction; Titanic dataset
DOI: http://doi.org/10.11591/ijeecs.v44.i1.pp221-226
Refbacks
- There are currently no refbacks.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Indonesian Journal of Electrical Engineering and Computer Science (IJEECS)
p-ISSN: 2502-4752, e-ISSN: 2502-4760
This journal is published by the Institute of Advanced Engineering and Science (IAES).