Kaplan–Meier Survival Curve

hard
Unit 23 · Causal Inference0/0 to milestone

How long do customers stay? You can't just average subscription lengths, because customers who are still subscribed haven't churned yet (they're censored). The Kaplan–Meier estimator handles this correctly.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Kaplan–Meier Survival Curve · TechGradify