Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 2.21 KB

README.md

File metadata and controls

50 lines (35 loc) · 2.21 KB

Titanic Dataset Analysis

Overview

This project explores the infamous Titanic dataset to uncover insights into the tragic sinking of the Titanic and predict survival outcomes of its passengers. Using Python and various data science libraries, the analysis encompasses data cleaning, exploratory data analysis (EDA), feature engineering, and predictive modeling.

Dataset

The dataset contains passenger information from the Titanic, including demographic data, ticket details, and survival status. Key columns include:

  • Survived: Survival (0 = No, 1 = Yes)
  • Pclass: Ticket class
  • Name
  • Sex
  • Age
  • SibSp: Number of siblings/spouses aboard
  • Parch: Number of parents/children aboard
  • Ticket
  • Fare
  • Cabin
  • Embarked: Port of embarkation

Files

  • Titanic-Dataset-Analysis.ipynb: Jupyter notebook containing the full analysis, from data preprocessing to model training and evaluation.
  • train.csv: Dataset used for the train.
  • test.csv: Dataset used for the test.

Tools and Libraries

  • Python: Programming language used for the analysis.
  • Pandas: Data manipulation and analysis.
  • NumPy: Numerical computing.
  • Matplotlib & Seaborn: Data visualization.
  • Scikit-learn: Machine learning library used for preprocessing data and model training.

Key Findings and Insights

  • Survival Rate Analysis: Initial exploratory data analysis provided insights into survival rates based on gender, class, and age.
  • Feature Importance: Feature engineering revealed that certain features, such as gender and passenger class, significantly impacted survival chances.
  • Model Performance: Model training and evaluation of accuracy.

How to Run

Ensure Python and the required packages are installed. You can install the dependencies by uncommenting the first code cell of the notebook. Open the Titanic-Dataset-Analysis.ipynb notebook in a Jupyter environment to view and run the analysis.

Conclusion

This project highlights the power of data science in uncovering hidden patterns and making predictions. The analysis of the Titanic dataset not only provides historical insights but also demonstrates various data science techniques, from data cleaning and EDA to predictive modeling.