This project delves into analyzing the survival data of passengers from the Titanic disaster. The process encompasses scraping data from titanic_survivor.html
and titanic_victim.html
, succeeded by multivariate analysis to investigate the diverse factors influencing survival rates. The inspiration and some code snippets are attributed to @Dana Yang from Cornell University.
titanic_survivor.html
: HTML file containing information about survivors of the Titanic disaster.titanic_victim.html
: HTML file containing information about victims of the Titanic disaster.
- Scrape data from the provided HTML files.
- Clean and preprocess the data for analysis.
- Conduct multivariate analysis to explore factors influencing survival rates.
- Generate insights and visualize findings.
-
Data Collection: Data is collected by scraping HTML files using R.
-
Data Cleaning: The scraped data undergoes cleaning and preprocessing to eliminate inconsistencies and missing values.
-
Analysis: Multivariate analysis techniques are employed to explore the relationships between different factors and survival rates.
-
Visualization: Findings are presented visually through plots and charts to aid interpretation.
-
To begin:
scrape_titanic_survivor.R
to scrape Titanic survivor data.scrape_titanic_victim_and_combine.R
to scrape Titanic victim data and combine it with survivor data.relationship_between_variables.R
to explore relationships between pairs of two variables.
- Passengers with higher passenger class have better chances of survival.
- Women and children are more likely to survive compared to men.
- Passengers traveling with family members have higher survival rates.
- The analysis revealed a significant correlation between passenger class and survival rates.
- Women and children indeed had higher survival rates compared to men.
- Passengers traveling with family members showed slightly higher survival rates.
For future modeling and prediction tasks related to the Titanic dataset, you may refer to the following resource: Titanic: Machine Learning from Disaster - Kaggle Notebook. This notebook provides a comprehensive approach to modeling and predicting survival outcomes using machine learning techniques on the Kaggle Titanic dataset. It can serve as a valuable reference for building predictive models and further analysis.
The Titanic Survivor Analysis project provides valuable insights into the factors influencing survival rates during the Titanic disaster. The findings contribute to a better understanding of historical events and human behavior in crisis situations.