Kaplan-Meier Estimators Use Step Functions to Model Censored Survival Data
In the real world, clinical trials and customer retention studies rarely track every subject to completion. The Kaplan-Meier estimator solves this by calculating survival probabilities through a step function that incorporates censored data without biasing the results.
Share this story
In short
- The Kaplan-Meier estimator calculates survival probabilities over time using incomplete or 'censored' data.
- The survival curve is a step function that only drops when an actual event is observed.
- Tick marks on the curve represent censored subjects who left the study without experiencing the event.
The short version is this: when you are tracking how long it takes for an event to happen—whether that is a patient surviving cancer or a customer canceling a subscription—you will almost never have complete data for everyone. The Kaplan-Meier estimator is the mathematical engine that allows researchers to calculate accurate survival probabilities anyway, using a step function that gracefully incorporates incomplete data without biasing the final result.[1][2]
To understand why this is necessary, consider the core problem in data analysis: reality rarely conforms to a neat, bounded observation window. In a clinical trial, researchers want to know the median time until an event occurs. But what happens when the study ends before all patients have experienced the event? Or when a patient moves away and drops out of the trial entirely?[2][4]
This phenomenon is known as "censoring," specifically right-censoring. It means the exact time of the event is unknown, but the researcher knows the subject survived at least up to a certain point. A naive approach would simply discard these incomplete records, but doing so introduces massive bias, artificially lowering the estimated survival time because only the earliest failures are counted.[1]
To solve this, Edward Kaplan and Paul Meier independently developed similar non-parametric methods in the 1950s. The editor of the Journal of the American Statistical Association convinced them to merge their work, resulting in a seminal 1958 paper that has since been cited over 34,000 times. Their solution, the Kaplan-Meier estimator, became the gold standard for survival analysis.[1][5]
The mechanics of the Kaplan-Meier estimator are elegant in their simplicity. Rather than trying to fit the data to a pre-defined distribution curve (like a bell curve or a Weibull distribution), it calculates the probability of survival empirically at each specific time an event occurs.[1][4]
It does this by breaking time down into intervals defined by the events themselves. For any given interval, the algorithm calculates the conditional probability of surviving that specific period, given that the subject had already survived up to the start of it. The overall survival probability at any time is simply the product of all these conditional probabilities multiplied together.[1][4]
Visually, this creates the iconic Kaplan-Meier curve: a step function that starts at 100% (or 1.0) on the y-axis and steps downward over time on the x-axis. The curve only drops when an actual event (like a death or a subscription cancellation) is observed.[2][6]
The genius of the method lies in how it handles censored data. When a subject is censored—say, a patient withdraws from the study at month six—the curve does not drop. Instead, that patient is simply removed from the denominator (the "number at risk") for all subsequent calculations.[4][5]
On the chart, these censored observations are typically marked with vertical tick marks or crosses on the flat parts of the step function. A common misinterpretation is assuming that a tick mark represents a drop in survival; in reality, it represents a subject who survived up to that point but whose subsequent fate is unknown.[4][5]
Because censored subjects shrink the "number at risk," each subsequent event causes a proportionally larger drop in the survival curve. If 100 people are at risk, one event drops the curve by 1%. But if censoring has reduced the risk set to just 10 people, a single event will drop the curve by 10%.[4][6]
This dynamic makes the "tail" of a Kaplan-Meier curve highly volatile. As the number at risk dwindles toward the end of the observation period, the confidence intervals widen dramatically. A curve that looks stable for the first two years might show massive, erratic steps in year three simply because only a handful of subjects remain.[1][4]
For the Kaplan-Meier estimator to be valid, it relies on a few critical assumptions. The most important is "non-informative censoring." This means the reason a subject was censored must be entirely independent of their likelihood of experiencing the event.[4][6]
If patients are dropping out of a clinical trial because the drug is making them too sick to continue, the censoring is informative. The algorithm will blindly assume those patients had the same future survival prospects as the healthy patients who stayed, leading to a falsely optimistic survival curve.[3][4]
Another limitation of the Kaplan-Meier method is that it is univariate. It can easily compare the survival curves of two distinct groups (e.g., Treatment A vs. Treatment B) using a log-rank test, but it cannot easily adjust for multiple continuous variables like age, weight, or baseline blood pressure.[3][4]
When researchers need to account for multiple confounding variables, they turn to the Cox Proportional Hazards model, introduced by Sir David Cox in 1972. While Kaplan-Meier is descriptive and visual, Cox regression is inferential and multivariate.[3][4]
The Cox model estimates the "hazard ratio"—the relative risk of the event occurring in one group compared to another, adjusted for covariates. However, it relies on the strict "proportional hazards" assumption: that the ratio of risks between the two groups remains constant over time.[3][6]
If a surgical intervention carries a high immediate risk of mortality but offers excellent long-term survival, while a medical treatment has low immediate risk but poor long-term efficacy, their hazard ratio is not constant. In such cases, the Cox model's single summary number can be deeply misleading, and the visual evidence of crossing Kaplan-Meier curves is required to understand the true dynamic.[2][5]
Today, survival analysis has expanded far beyond its medical origins. Reliability engineers use it to predict when mechanical components will fail, while data scientists in the tech sector use it to model user engagement, customer lifetime value, and subscription churn. By embracing the reality of incomplete data rather than discarding it, the Kaplan-Meier estimator remains one of the most robust and widely used statistical tools in modern data analysis.[1][5]
Jargon, explained
- Right Censoring
- When a subject leaves a study before experiencing the event of interest, meaning their exact event time is unknown but they survived at least up to their departure.
- Hazard Ratio
- A measure of the relative risk of an event occurring in one group compared to another over a specific period of time.
- Number at Risk
- The total count of subjects who have neither experienced the event nor been censored up to a specific point in time.
- Step Function
- A mathematical function that remains constant for a period before instantly jumping to a new value, creating a stair-step visual pattern.
- Non-informative Censoring
- The critical assumption that the reason a subject drops out of a study is completely unrelated to their likelihood of experiencing the event.
Competing readings
Biostatisticians & Clinical Trialists
Focus on rigorous assumptions and non-informative censoring.
For medical researchers, the Kaplan-Meier curve is the ultimate arbiter of a treatment's efficacy over time. However, their primary concern is always the validity of the censoring mechanism. If a trial has a high dropout rate, trialists must investigate whether the censoring is 'informative'—for instance, if patients are abandoning a drug because of intolerable side effects. If informative censoring is present, the Kaplan-Meier estimate will artificially inflate the survival probability, invalidating the trial's conclusions.
Business Data Analysts
Focus on customer retention, churn, and lifetime value.
In the corporate sector, 'survival' translates to customer retention, and 'death' is subscription churn. Data analysts favor the Kaplan-Meier estimator because it allows them to calculate customer lifetime value without waiting for every single user in a cohort to cancel their account. By treating active subscribers as right-censored data, businesses can accurately project long-term retention curves and revenue run-rates based on just a few months of early behavioral data.
Machine Learning Engineers
Focus on predictive modeling and algorithmic integration.
While traditional statisticians rely on Kaplan-Meier and Cox models for inference, machine learning engineers increasingly use them as baseline benchmarks for complex neural survival models. Modern AI approaches, such as Random Survival Forests and DeepSurv, attempt to relax the strict proportional hazards assumptions of the Cox model while maintaining the Kaplan-Meier estimator's ability to handle right-censored training data gracefully.
- Clinical Researchers
- Value the Kaplan-Meier curve for its transparent, non-parametric visualization of patient outcomes.
- Statistical Methodologists
- Emphasize the mathematical assumptions, particularly non-informative censoring and proportional hazards.
- Applied Data Scientists
- Utilize survival analysis for practical business applications like customer churn and predictive maintenance.
Perspectives this story doesn't cover
- Patients represented by the data points
- Regulatory agencies evaluating the statistical submissions
Sources
[1]WikipediaStatistical MethodologistsKaplan–Meier estimator
Read on Wikipedia →
[2]WikipediaStatistical MethodologistsSurvival analysis
Read on Wikipedia →
[3]WikipediaStatistical MethodologistsProportional hazards model
Read on Wikipedia →
[4]National Institutes of HealthClinical ResearchersSurvival analysis: Kaplan-Meier analysis and Cox proportional hazards regression model
Read on National Institutes of Health →
[5]JMPApplied Data ScientistsWhat is the Kaplan-Meier estimator?
Read on JMP →
[6]BMJClinical ResearchersSurvival analysis
Read on BMJ →
[7]Factlen Editorial TeamStatistical MethodologistsSynthesis by Factlen editorial team
Read on Factlen Editorial Team →
More in Data & Analysis
See all →Data Visualization
The Square Root Transformation: Why Bubble Chart Radii Must Scale to the Square Root of the Data Value
7 sources
Data Visualization
Why Line Chart Aspect Ratios Distort Volatility and How Banking to 45 Degrees Works
7 sources
Data Geometry
The Geometric Flaw of Radar Charts: How Axis Ordering Distorts Area and Misleads Multi-Metric Comparisons
5 sources
Data Visualization
Sankey Diagrams Use Proportional Link Widths to Track Mass and Energy Conservation
7 sources
Comments
Every angle. Every day.
Get Data & Analysis stories with full source coverage and perspective breakdowns, free every day.




