Problem
Retention and churn questions are survival questions: for each user we know how long they were observed and whether the event (churn, death) happened. Exposure lengths differ between users, so a plain logistic regression on "churned yes/no" treats a user watched for a week like one watched for a year. The Kaplan-Meier estimator handles this, but it is a step function and gives no forecast past the last observed time point.
Example from the article: survival data from a head-and-neck cancer study with two treatment arms, A and B, where the hazard and survival curves of the arms are compared.
Solution in brief
Cut time into intervals, count the number at risk and the number of events in each, and model the events as binomial given the at-risk count. A logistic regression with a flexible (spline) time term gives the discrete hazard per interval, and the cumulative product of one minus the hazard is the survival curve. The curve can be extended by assuming how the hazard continues.
Questions this case answers
- How to estimate the probability of staying in a state over time when units are observed for different durations and the empirical step-function estimate is too noisy or cannot extrapolate
- How to model the per-period event rate as a flexible function of elapsed time and compare it between two groups
- How to estimate a retention or churn curve when users are observed for different lengths of time?
- How to model the churn hazard as a smooth function of tenure instead of a step function?
Tools and methods
- Kaplan-Meier estimator — nonparametric baseline for the survival curve.
- Logistic regression (binomial GLM) — models the discrete hazard per interval.
- Splines / basis expansion of time — lets the hazard vary flexibly with exposure time.
Google or a one-time email code. No password.