Exploratory Data Analysis: Haberman Survival

EDA of the Haberman cancer survival dataset: cleaning, descriptive statistics, visualization, and Kaplan-Meier; reproducible examples and best practices. Q2BSTUDIO.

sábado, 16 de agosto de 2025 • 2 min read • Q2BSTUDIO Team

Artificial-Intelligence-

Exploratory Data Analysis EDA on the Haberman cancer survival dataset: this article explains how to approach a complete exploratory analysis to understand patterns, identify relevant variables, and prepare data for predictive models. The Haberman dataset contains records of patients who underwent breast cancer surgery, with typical variables such as age, year of operation, number of positive axillary nodes, and 5-year survival status. A rigorous EDA helps uncover relationships between age and survival, identify outliers, and verify data quality.

Essential steps: data cleaning and verification to detect missing values or inconsistencies; descriptive statistics such as mean, median, standard deviation; univariate visualizations with histograms and boxplots for age and number of nodes; bivariate analysis with scatterplots and contingency tables between survival status and other variables; correlation analysis and exploration of interactions. For survival problems, it is advisable to complement with Kaplan-Meier curves and log-rank tests when the time and censoring variables are present.

Best practices: normalize and scale variables if distance-based models will be used; transform skewed variables; create derived variables that capture relevant clinical information; use stratified sampling if classes are imbalanced; document EDA assumptions and results to ensure reproducibility.

Recommended tools: Python with pandas, seaborn, and matplotlib for visualization; scikit-learn for preprocessing and models; lifelines for survival analysis. To see an example notebook with code and replicable steps, visit the following link

https://github.com/ash322ash422/tut_ml/blob/e4b9c7abf1df9a80c1a6a7ed2ccf03e4f34b1302/tut_misc_EDA/tut_EDA-haberman-cancer-survival.ipynb

At Q2BSTUDIO, we are specialists in transforming analyses like this into productive solutions. We offer custom software services and tailored applications that integrate data pipelines, dashboards, and artificial intelligence models ready for production. Our team combines expertise in artificial intelligence, cybersecurity, and AWS and Azure cloud services to deploy secure and scalable solutions.

Featured Q2BSTUDIO services: custom software development, implementation of artificial intelligence and AI solutions for businesses, creation of AI agents for automation, business intelligence services and dashboards with Power BI, cloud migration and architecture on AWS and Azure, and cybersecurity audits to protect sensitive data. We integrate predictive models with CI/CD pipelines, monitoring, and security controls to ensure compliance and performance.

If you are looking to turn an EDA into a final product, at Q2BSTUDIO we can help define requirements, build interpretable models, develop APIs and custom applications, secure the infrastructure, and generate visual reports with Power BI to facilitate decision-making. Contact us for a consultation and a project tailored to your needs in business intelligence, artificial intelligence, and cybersecurity.

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.