Sitemap
Classroom

Classroom by Alchemy Publications is a Medium publication focused on actionable knowledge sharing. Learn from real experiences in creativity, technology, and design on a new writing community where every story teaches something new.

Member-only story

Survival Analysis for Data Scientists

20 min readOct 31, 2026

--

Diogo Ribeiro is a mathematician, researcher and lecturer at the Faculdade de Media Artes e Design, Universidade Técnica do Porto.

Part 1 estimated a single retention curve and Part 2 compared two. A real customer table has many characteristics at once: where the customer came from, how large they are, what they signed up for. Each split of the table into groups leaves fewer customers per group, and a team that wants to know how churn depends on five characteristics cannot draw a retention curve for every combination of them.

This part introduces the model that is used for this more than any other, the Cox proportional hazards model. It describes how characteristics multiply the hazard, and it can be estimated without saying anything about the shape of the hazard itself. The application is a marketing decision: the most the business should pay for a new customer from each lead segment. Along the way, the model’s central assumption fails for one variable, and the failure is visible in the…

--

--

Diogo Ribeiro
Diogo Ribeiro

Written by Diogo Ribeiro

Diogo Ribeiro is a Lead Data Scientist, mathematician, professor and researcher at Faculdade de Media Artes e Design, Universidade Técnica do Porto.

Classroom
Classroom

Published in Classroom

Classroom by Alchemy Publications is a Medium publication focused on actionable knowledge sharing. Learn from real experiences in creativity, technology, and design on a new writing community where every story teaches something new.