Kaplan-Meier Estimator
Estimate time-to-event outcomes and survival probabilities using the Kaplan-Meier estimator.
Kaplan-Meier Estimator
Concept Overview
The Kaplan-Meier (KM) estimator is a non-parametric statistic used to estimate the survival function from lifetime data. It is primarily used in survival analysis to measure the fraction of subjects living for a certain amount of time after treatment or observation begins. Crucially, the KM estimator is designed to correctly handle right-censored data, where subjects leave the study or the study ends before an event occurs.
Mathematical Definition
Let t1 < t2 < t3 < ... < tk be the times when at least one event occurred. At each time ti, let di be the number of events (e.g., deaths) and ni be the number of subjects at risk just prior to time ti. The Kaplan-Meier estimator for the survival probability S(t) is defined as the product limit:
The estimate is a step function with jumps at the observed event times. When no events occur between two times, the survival probability remains constant. Subjects who are censored are dropped from the "at risk" pool (ni) for subsequent calculations, but their survival up to the point of censoring contributes to the earlier probabilities.
Key Concepts
Censoring
Right-censoring occurs when a subject's true event time is unknown but is known to be strictly greater than a certain time. This happens if a subject drops out of a clinical trial or if the trial ends before they experience the event. The strength of the Kaplan-Meier estimator is its ability to utilize the partial information from censored subjects without biasing the results downward (which would happen if they were treated as having had the event) or upward (if they were completely excluded).
Confidence Intervals
Because the KM estimator is a statistic computed from a sample, it has variance. The variance of the estimated survival probability is typically approximated using Greenwood's formula:
This variance allows researchers to construct confidence intervals around the survival curve, often using a log-log transformation to ensure bounds remain between 0 and 1.
Historical Context
The estimator was developed by Edward L. Kaplan and Paul Meier, who independently submitted similar manuscripts to the Journal of the American Statistical Association. The editor persuaded them to combine their work, leading to their seminal 1958 paper "Nonparametric Estimation from Incomplete Observations". It has since become one of the most highly cited papers in the history of statistics and medicine, forming the foundation of modern survival analysis.
Real-world Applications
- Medicine and Oncology: Comparing the efficacy of new cancer treatments against standard therapies by plotting survival curves of patient cohorts.
- Engineering: Reliability engineering uses it to estimate the time-to-failure of mechanical parts or electronics (often called reliability instead of survival).
- Customer Retention: In business, it's used to analyze customer churn over time, estimating how long a user will remain subscribed to a service.
- Sociology: Analyzing the duration of events such as marriages, unemployment spells, or the time until a convict reoffends (recidivism).
Related Concepts
- Survival Analysis — the broader field encompassing Kaplan-Meier, Cox Proportional Hazards, and parametric models.
- Exponential Distribution — a parametric model for survival times with a constant hazard rate, often used as a baseline for comparing empirical KM curves.
- Hypothesis Testing — log-rank tests are commonly used to statistically compare two or more Kaplan-Meier survival curves.
Experience it interactively
Adjust parameters, observe in real time, and build deep intuition with Riano’s interactive Kaplan-Meier Estimator module.
Try Kaplan-Meier Estimator on Riano →