- Introduced by
- Edward L. Kaplan and Paul Meier
- Year
- 1958
- Type
- Nonparametric estimator
What does it do?
The Kaplan-Meier estimator is a nonparametric method for estimating the survival function S(t), the probability that an individual survives beyond time t, from data that include censored observations.
Edward L. Kaplan and Paul Meier introduced it in their 1958 paper in the Journal of the American Statistical Association. It makes no assumption about the form of the survival distribution and is a standard first step in describing time-to-event data.
The intuition behind the method
Imagine tracking a cohort of patients after surgery. Some die during the study (observed events), but others are lost to follow-up or are still alive at the study's end — these are censored. The Kaplan-Meier method works by updating the estimated survival probability only at each moment an event actually occurs. At each such moment it asks: of the people still being followed, what fraction died? It multiplies those conditional survival probabilities together as time progresses, producing a descending staircase curve. Censored observations contribute to the count of people at risk up to the moment they leave the study, so their partial information is not wasted.
History
Kaplan and Meier published the product-limit estimator in the Journal of the American Statistical Association in 1958. The paper presented it as an alternative to actuarial estimates, which also multiply factors but over time intervals formed by grouping observations, so that individual observed times contribute directly. Greenwood's variance formula predates the 1958 paper and is used as the standard variance estimate for the curve. The log-rank test (Mantel, 1966) is the usual companion test for comparing Kaplan-Meier curves, and the Cox model (1972) extended the framework to covariate adjustment.
When to use it
Use the Kaplan-Meier estimator when the outcome is the time until a single event (death, relapse, failure) and some observations are right-censored, meaning the event had not occurred when the subject left the study. It is suited to describing survival in one or more groups without assuming a particular distribution. Its validity rests on several conditions: censoring must be non-informative, so that the reason a subject leaves the study is unrelated to their prognosis (Kaplan and Meier note that this assumption deserves careful scrutiny in practice); survival probabilities must not differ according to calendar time of recruitment, which is often checked with staggered-entry plots; and event times must be measured precisely. When subjects enter observation at different times (delayed entry), the risk set must count only subjects already under observation at each time, and the basic estimator needs to be adjusted accordingly. Do not use the estimator alone when you need to adjust for covariates or estimate hazard ratios; the Cox proportional-hazards model is the usual choice for that, and time-varying covariates or competing risks call for more specialised models.
Limitations and considerations
- Purely descriptive: it cannot adjust for covariates or estimate hazard ratios, so comparisons between groups are unadjusted.
- The pointwise intervals based on the linear formula above can extend outside [0, 1] near the extremes of the curve.
- Precision falls in the tail of the curve, where few subjects remain at risk, so late-time estimates rest on small n_i and wide intervals.
- Validity depends on non-informative censoring; if subjects leave the study because of their condition, the survival estimate is biased.
- Time-varying covariates and competing risks cannot be handled directly and require extensions to the basic estimator.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Makes no assumption about the form of the survival distribution: the estimate is the distribution, unrestricted in form, that maximises the likelihood of the observed data.
- Uses the partial information from censored subjects, who remain in the risk set up to the time they leave the study rather than being discarded.
- When no losses occur before a given time, the estimate reduces to the observed proportion of survivors, so it generalises the simple binomial estimate.
- The step-function curve shows where events cluster in time, and the median survival can be read directly where the curve reaches 0.5.
Applications
- Estimating and reporting overall survival and progression-free survival in oncology clinical trials.
- Comparing time-to-relapse curves between treatment arms in psychiatry and cardiology studies.
- Engineering reliability analysis — time to mechanical failure of components under operational stress.
- Estimating customer churn curves and subscription retention in business analytics.
- Epidemiological cohort studies reporting time to disease onset or time to mortality from a defined baseline.
- Organ transplant registries tracking graft survival over years of follow-up.
How it works
How it works
All distinct event times are arranged in ascending order t(1) < t(2) < … < t(k). Censored observations that fall between two event times do not create a step in the curve but do reduce the risk set for subsequent steps.
Formula
t_{(1)} < t_{(2)} < \cdots < t_{(k)} \text{ — ordered distinct event times}At each event time t(i), the risk set n_i counts every individual still under observation (alive and uncensored) just before that moment. d_i is the number who experience the event at exactly t(i). The ratio d_i / n_i is the estimated conditional probability of the event occurring at that instant.
Formula
n_i = \text{number at risk just before } t_{(i)}; \quad d_i = \text{number of events at } t_{(i)}The Kaplan-Meier estimate at time t is the product-limit formula: the product of all conditional survival probabilities (1 − d_i/n_i) at every event time up to and including t. The estimate equals 1 before the first event time and is a right-continuous step function that drops only at observed event times. If the largest observation is censored, the estimate is undefined beyond that time.
Formula
\hat{S}(t) = \prod_{t_{(i)} \le t} \left(1 - \frac{d_i}{n_i}\right)The variance of Ŝ(t) is estimated by summing d_i / [n_i(n_i − d_i)] over all event times up to t and multiplying the sum by Ŝ(t)². This expression is known as Greenwood's formula and is the standard basis for pointwise confidence intervals around the curve. It is presented in survival-analysis texts and handbooks rather than in the 1958 paper itself.
Formula
\widehat{\operatorname{Var}}\!\left[\hat{S}(t)\right] = \hat{S}(t)^2 \sum_{t_{(i)} \le t} \frac{d_i}{n_i(n_i - d_i)}Pointwise confidence intervals are formed as Ŝ(t) ± z_{α/2} times the square root of Greenwood's variance, as given in the formula above. Because this linear interval can extend below 0 or above 1 when Ŝ(t) is near either bound, intervals are often computed on a transformed scale, such as log(−log Ŝ(t)), which keeps the limits within [0, 1]. The transformed interval is not given in this page's formulas.
Formula
\hat{S}(t) \pm z_{\alpha/2}\,\sqrt{\widehat{\operatorname{Var}}\!\left[\hat{S}(t)\right]}Common pitfalls
- Comparing curves by eye rather than with a formal test such as the log-rank test.
- Reading or extrapolating the curve beyond the last observed event time, where the estimate rests on very few subjects and the confidence band is wide. If the largest observation is censored, the curve is undefined beyond it.
- Ignoring the number at risk: a smooth-looking curve may rest on few individuals at later times, so the risk table should be shown beneath the plot.
- Treating informative censoring as non-informative; when subjects are censored because they are deteriorating, the survival estimate is typically biased upward.
- Reporting the median survival without its confidence interval, or the curve without its confidence band.
- Reporting a median when the curve never falls to 0.5; in that case the median is not estimable and should be reported as not reached.
Frequently asked questions
What is censoring and why does it matter?
A censored observation is one where the event has not yet occurred by the time the subject leaves the study — because the study ended, the subject was lost to follow-up, or they withdrew. Ignoring censored subjects (or treating them as events) biases the estimate. Kaplan-Meier handles censoring correctly by including each censored subject in the risk set up to the moment they are censored and then removing them, so they contribute information for the period they were observed.
How do I compare survival curves between two groups?
Plot the two KM curves separately and test for a difference using the log-rank test, which is the standard nonparametric companion to the KM estimator. The log-rank test weights each event time equally and is most powerful when the hazards are proportional. If proportional hazards do not hold (curves cross), the weighted Fleming-Harrington test may be more appropriate.
When should I use Cox regression instead of Kaplan-Meier?
Use Kaplan-Meier for unadjusted description and visualization of survival in one or more groups. Use Cox proportional-hazards regression when you need to adjust for covariates, estimate hazard ratios, or model continuous predictors. In practice, KM curves and the log-rank test are used first for descriptive and univariate analysis, followed by Cox regression for multivariable inference.
What is the median survival and how is it read from the curve?
The median survival time is the time t at which Ŝ(t) first drops to or below 0.5 — that is, the time by which half the subjects have experienced the event. It is read by drawing a horizontal line at S = 0.5 across the KM curve and finding where it intersects the step function. Its confidence interval is obtained from the intersection of that horizontal line with the upper and lower confidence bands of the curve. If the curve never falls to 0.5 (for example because of heavy censoring), the median is not estimable and should be reported as not reached.
Related methods
Sources
Kaplan, E. L., & Meier, P. (1958). Nonparametric estimation from incomplete observations. Journal of the American Statistical Association, 53(282), 457–481.
Open DOI referenceCollett, D. (2015). Modelling Survival Data in Medical Research (3rd ed.). CRC Press.
ISBN: 978-1439856789Kleinbaum, D. G., & Klein, M. (2012). Survival Analysis: A Self-Learning Text (3rd ed.). Springer.
ISBN: 978-1441966452Handbook of Financial Econometrics, Mathematics, Statistics, and Machine Learning (4 volumes) (2020), p. ?