- Introduced by
- Kaplan, E. L. & Meier, P.
- Year
- 1958
- Type
- Non-parametric survival estimator
What does it do?
The Kaplan-Meier estimator, introduced by Kaplan and Meier in 1958, is a non-parametric method that estimates the survival curve, the probability of remaining event-free over time, from right-censored time-to-event data.
It makes no assumption about the functional form of the survival distribution. The log-rank test is the companion procedure for comparing survival curves between groups.
The intuition behind the method
Often you want to know the probability that a subject survives (stays event-free) past a given time, but the study ends or some subjects drop out before their event occurs. Such observations are censored: you know the subject was event-free up to a point, but not what happened after. Kaplan-Meier estimates the survival probability over time while keeping these censored subjects in the analysis, instead of discarding them or treating their last known time as an event.
History
Edward L. Kaplan and Paul Meier introduced the estimator in 1958 in a paper on nonparametric estimation from incomplete observations. The product form of the estimate gives it the name product-limit estimator. The same paper also discussed actuarial and reduced-sample estimates as alternatives.
When to use it
Kaplan-Meier is the right tool when you have time-to-event data with right-censoring and the censoring is non-informative, meaning subjects censored at a given time carry the same future risk as those still under observation. Use it to describe a single survival curve, or to compare curves across groups, in which case the log-rank test assesses whether the separation between curves is statistically meaningful. Do not use it when you need to adjust for covariates or quantify the effect of explanatory variables; Cox regression is the appropriate extension for that. Where competing events are present, the standard estimator is not appropriate for the event of interest, and a Fine-Gray model should be considered instead.
Limitations and considerations
- Cannot adjust for covariates; multivariable analysis requires Cox regression.
- Confidence intervals widen at the tails of the curve when few subjects remain at risk, so late-time estimates from small samples are imprecise.
- Relies on non-informative censoring. The original paper assumes lifetime is independent of potential loss time and notes that this assumption deserves careful scrutiny in practice; if censoring is related to prognosis, the estimates are biased.
- Treats competing events as censored, so with competing risks it overstates the probability of the event of interest.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Retains censored observations in the risk set up to their censoring time, so their partial information is used rather than discarded or treated as events.
- Makes no assumption about the functional form of the survival distribution, as stated in the original 1958 paper.
- The original paper shows that the estimate is the distribution, unrestricted as to form, that maximises the likelihood of the observations.
- Each drop in the step-function curve corresponds to an observed event time, so the curve can be read directly at any time point.
Applications
- Clinical survival analysis, such as estimating patient survival after a treatment.
- Time-to-event studies more generally, where the outcome is the time until an event occurs.
- Customer churn and reliability analysis, estimating how long customers stay or how long components last before failure.
How it works
How it works
The survival probability is built up as a running product over each distinct event time. At each time t_i with d_i events among n_i subjects still at risk just before it, the curve is multiplied by the conditional probability of surviving that step, (1 − d_i / n_i). The estimate equals 1 before the first event time and changes value only at observed event times, so the result is a step function that drops only when an event occurs. Subjects censored at or after t_i remain in the risk set n_i at t_i, and a subject censored before t_i is removed from it. If the largest observation is censored, the estimate is undefined beyond that time and should not be extrapolated; the estimate reaches 0 only when the last observation is an event.
Formula
\hat{S}(t) = \prod_{t_i \le t}\left(1 - \dfrac{d_i}{n_i}\right)The uncertainty of the estimated survival probability is quantified by the variance expression in the mechanics section, known as Greenwood's formula. It adds one term for each event time up to t, so every event contributes to the total. Each term grows as the number of subjects still at risk shrinks, which is why the uncertainty increases toward the tail of the curve. The standard error derived from this variance is used to draw confidence intervals around the curve. The simple linear interval, the estimate plus or minus z times the standard error, can extend outside the range 0 to 1 in the tails, so transformed intervals such as log-log intervals are often preferred.
Formula
\widehat{\mathrm{Var}}[\hat{S}(t)] = \hat{S}(t)^2 \sum_{t_i\le t}\dfrac{d_i}{n_i(n_i-d_i)}Common pitfalls
- Excluding censored observations, which introduces large bias; they must remain in the risk set until their censoring time.
- Extrapolating the curve beyond the last observed time. If the longest observation is censored, the estimate is undefined after it, and tail estimates based on very few subjects at risk are unreliable.
- Misreading the log-rank test as requiring strict proportional hazards. The test is valid without it, but its power is highest when hazards are roughly proportional, so check this (for example, with a log-log plot) before interpreting the comparison.
- Using standard Kaplan-Meier when competing risks are present; a Fine-Gray model is the alternative.
- Omitting the median survival, its 95% confidence interval, and the at-risk table from the report.
Frequently asked questions
What is censoring?
Censoring occurs when you do not observe the event for a subject within the study, for example because the study ends or the subject drops out. With right-censoring you know the subject was event-free up to a certain time but not beyond. Kaplan-Meier keeps these subjects in the risk set up to their censoring time rather than discarding them, which avoids the bias of treating censored times as events.
How does Kaplan-Meier differ from Cox regression?
Kaplan-Meier is a non-parametric estimator that describes and compares survival curves but cannot adjust for covariates. Cox regression models how explanatory variables affect the hazard, so it is used when you need multivariable adjustment or to quantify the effect of predictors. The two are complementary: Kaplan-Meier for description, Cox for modelling.
What is median survival time?
The median survival time is the time at which the estimated survival probability first falls to 0.5, the point by which half of the subjects are expected to have experienced the event. It is the standard summary of a Kaplan-Meier curve and should be reported with its 95% confidence interval.
How do I compare two survival curves?
Use the log-rank test, which compares the observed and expected number of events across groups over time. The test is valid without strict proportional hazards, but its power is greatest when hazards are roughly proportional, so the proportional-hazards assumption should be checked before interpreting a difference between curves.
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 referenceKleinbaum, 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), Gao & He chapter, Kaplan–Meier estimator section