Skip to content

Unveil the Titanic's secrets with this code! πŸ•΅οΈβ€β™‚οΈ It uses logistic regression to predict passenger survival, exploring data, training models, and interpreting features. πŸ“ŠπŸ”¬

Notifications You must be signed in to change notification settings

Elanchezhian2712/Titanic-Survival-Prediction-Analysis-Task-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Titanic-Survival-Prediction-Analysis-Task-2

Description: This code analyzes the Titanic dataset using logistic regression to predict passenger survival. It covers data preprocessing, exploratory data analysis, model training and evaluation, as well as feature interpretation. The goal is to identify influential survival factors and assess model performance.

Sections:

Exploratory Data Analysis:

  1. Visualize survival patterns and demographics.
  2. Missing data heatmap for identifying gaps.
  3. Survival visualization by gender and passenger class.

Data Cleaning:

  1. Impute missing ages based on passenger class averages.
  2. Drop Cabin column and rows with missing Embarked data.
  3. Convert categorical features to numerical dummy variables.

Building a Logistic Regression Model:

  1. Split data for training and testing.
  2. Scale feature data for consistency.
  3. Train, predict, and evaluate a logistic regression model.

Coefficient Analysis:

  1. Identify top feature coefficients and interpretation.

ROC Curve and AUC:

  1. Calculate and visualize the ROC curve and AUC score.

The analysis provides insights into survival determinants and assesses the model's predictive ability.

Outcome:

8mb.video-xpj-ua4kL1W8.mp4

About

Unveil the Titanic's secrets with this code! πŸ•΅οΈβ€β™‚οΈ It uses logistic regression to predict passenger survival, exploring data, training models, and interpreting features. πŸ“ŠπŸ”¬

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published