The EDA itself wasn't hard but I spent too long on the correlation piece.
Start by outlining a structured EDA plan: data loading and cleaning, then compute the required statistics (survival rate by sex, average age per class, correlation between age and survival). Create clear visualizations (bar charts, box plots, heatmap) with proper labels and titles, and conclude with a brief interpretation of the findings, highlighting any surprising patterns or data quality issues.
Pro tip: Always check for missing values in 'Age' and 'Cabin' before computing statistics, and explicitly state how you handle them (e.g., imputation or exclusion) because it affects the results and shows rigor. Also, consider that correlation between age and survival might be non-linear, so supplement with visualizations like survival rate by age bins.
Load the dataset and inspect its structure, data types, and missing values. Identify key columns: Survived, Sex, Age, Pclass.
Handle missing values (e.g., impute Age with median or mean, drop or impute Cabin) and ensure data types are correct. Document your decisions.
Calculate survival rate by sex (groupby Sex, mean of Survived), average age per passenger class (groupby Pclass, mean of Age), and correlation between Age and Survived (point-biserial correlation).
Generate labeled plots: bar chart for survival rate by sex, box plot or bar chart for average age per class, and a heatmap or scatter plot for age vs. survival. Ensure all axes, titles, and legends are clear.
Summarize the results: e.g., females had higher survival rates, first-class passengers were older on average, and age may have a weak correlation with survival. Discuss potential reasons and limitations.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.