Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Titanic Dataset Analysis

This project performs a comprehensive analysis of the Titanic dataset to understand the factors that influenced passenger survival.

Project Overview

The Titanic dataset contains information about 891 passengers who were on board the Titanic when it sank, including their demographics, ticket information, and survival outcomes. This analysis explores the data to identify key attributes that affected survival rates.

Dataset Characteristics

  • Records: 891 passengers
  • Data Types: Continuous numerical, discrete numerical, and categorical data
  • Target Variable: Survived (categorical)

Key Attributes

The dataset includes the following attributes:

  • PassengerId: Unique identifier for each passenger
  • Survived: Survival outcome (0 = No, 1 = Yes)
  • Pclass: Passenger class (1, 2, or 3)
  • Name: Passenger name
  • Sex: Passenger gender
  • Age: Passenger age
  • SibSp: Number of siblings/spouses aboard
  • Parch: Number of parents/children aboard
  • Ticket: Ticket number
  • Fare: Ticket fare price
  • Cabin: Cabin number
  • Embarked: Port of embarkation

Analysis Performed

  1. Data Exploration: Understanding dataset structure, data types, and basic statistics
  2. Data Visualization: Bar charts for all categorical columns to visualize distributions
  3. Feature Correlation: Correlation matrix and heatmap to identify relationships between numerical features
  4. Missing Value Analysis: Identification and handling of missing values in Age (177 missing) and Cabin (687 missing) columns
  5. Data Preprocessing: Outlier removal from Fare column using the IQR (Interquartile Range) method
  6. Feature Selection: Univariate feature selection using mutual information to identify the top 5 attributes affecting survival

Key Findings

The feature selection analysis identified the following attributes as most influential for survival prediction:

  • Survived (target variable)
  • Fare
  • Sex (male)
  • Pclass
  • SibSp
  • Age
  • Parch

Technologies Used

  • Python
  • Pandas (data manipulation)
  • Matplotlib (data visualization)
  • Seaborn (statistical visualization)
  • Scikit-learn (feature selection)

Requirements

See pyproject.toml for project dependencies.

About

This project performs a comprehensive analysis of the Titanic dataset to understand the factors that influenced passenger survival.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages