Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Titanic Survival Prediction Project 🚒

Overview

This project leverages machine learning techniques to predict the survival of passengers aboard the RMS Titanic, based on various attributes like age, gender, class, and fare. Using Python and key libraries such as NumPy, Pandas, Matplotlib, Seaborn, Scikit-learn, and XGBoost, the study performs a comprehensive analysis to identify significant factors influencing survival rates. The project also compares the performance of three machine learning models: Logistic Regression, Random Forest, and XGBoost, evaluating their accuracy, precision, and recall.


Features

  • πŸ“Š Data Analysis: Performed exploratory data analysis (EDA) to understand patterns and correlations in the dataset.
  • πŸ› οΈ Data Preprocessing: Handled missing values, removed irrelevant fields, and encoded categorical variables for better model performance.
  • βš™οΈ Model Implementation: Built models using Logistic Regression, Random Forest, and XGBoost.
  • πŸ“ˆ Performance Metrics: Evaluated the models based on accuracy, precision, and recall.
  • πŸ” Insights: Identified significant factors affecting survival, such as gender, class, and age.

Technologies Used

  • Python
  • Libraries: NumPy, Pandas, Matplotlib, Seaborn, Scikit-learn, XGBoost
  • Data Source: Kaggle

Results

The project concludes with a comparative analysis of the models used. The results are summarized below:

Model Accuracy Precision Recall
Logistic Regression 76.24% 75.80% 76.24%
Random Forest 75.40% 74.50% 74.80%
XGBoost 77.78% 78.10% 75.00%

Insights

  • 🚺 Gender: Females had a significantly higher survival rate compared to males.
  • 🎫 Class: Passengers in first class were more likely to survive due to better access to lifeboats.
  • πŸ§’ Age: Children were prioritized for evacuation, increasing their survival rate.

Future Enhancements

  • πŸ”„ Use more robust techniques for handling missing data.
  • 🀝 Combine models (e.g., Random Forest for feature selection and XGBoost for final predictions).
  • πŸ“Š Apply neural networks for handling larger datasets.

About

Titanic Disaster using machine learning is a project in which i have predicted that will the passenger survives the titanic disaster or not using Random Forests, XGBoost and Logistic regression. I have also did some exploratory analysis such as "Females were given more priority in terms of safety compared to men".

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages