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.
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 className
Sex
Age
SibSp
: Number of siblings/spouses aboardParch
: Number of parents/children aboardTicket
Fare
Cabin
Embarked
: Port of embarkation
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.
- 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.
- 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.
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.
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.