Correlations Among Numeric Features

End-to-End Machine Learning: Titanic Survival Prediction

1 min read

Published Nov 18 2025, updated Aug 17 2026


10
0
0
0

KerasMachine LearningMatplotlibNumPyPandasPythonscikit-learnSciPySeabornTensorFlow

We compute correlations to understand linear relationships:


numeric_cols = ["survived", "pclass", "age", "sibsp", "parch", "fare"]sns.heatmap(titanic[numeric_cols].corr(), annot=True, cmap="coolwarm")plt.title("Correlation Matrix")plt.show()

correlation matrix

Key observations:

  • Higher class (lower pclass number) correlates with survival.
  • Higher fares correlate with survival.
  • Age has a weak negative correlation.

These correlations help form hypotheses for statistical testing and modelling.

© 2025 SimpleSteps.guide
AboutFAQPoliciesContact
End-to-End Machine Learning: Titanic Survival Prediction | Correlations Among Numeric Features | SimpleSteps.guide