← Wiki Index / Public Health & Global Health / Kaplan–Meier Estimator
🏥 Public Health & Global Health

Kaplan–Meier Estimator

The Kaplan–Meier estimator (product-limit estimator) is a non-parametric maximum-likelihood statistic used in survival analysis to estimate the time-to-event survival function from incomplete, right-censored longitudinal data.

Kaplan–Meier estimator (also known as the product-limit estimator) is the standard non-parametric statistical method in biostatistics, clinical trials, and longitudinal epidemiology for estimating the survival function S(t)—the probability that an individual survives beyond elapsed time t without experiencing a defined failure event—in the presence of incomplete, right-censored observations. Formulated independently in the 1950s by Edward L. Kaplan and Paul Meier and published jointly in the Journal of the American Statistical Association in 1958 after journal editor John Tukey persuaded them to combine their manuscripts, the product-limit estimator solved a long-standing analytical problem in medical follow-up studies and prospective cohort studies: how to utilize every day of person-time contributed by patients who withdraw early, are lost to follow-up, or remain event-free when the study ends, without discarding incomplete observations or assuming a parametric distribution for survival times.

Mathematical Formulation of the Product-Limit Estimator

Survival Function and Conditional Probability Chain Rule

Let T denote a non-negative random variable representing the elapsed time from a well-defined origin (t = 0, such as randomization in a clinical trial, surgical resection, or cohort enrollment mapped along a Lexis diagram) until a binary event of interest occurs (death, cancer recurrence, or infection). The true population survival function is S(t) = Pr(T > t). Suppose distinct observed failure events in a sample occur at ordered times t1 < t2 < ··· < tk. For each ordered event time ti:

  • Let ni denote the number at risk just prior to time ti (all individuals who have neither experienced the event nor been right-censored before ti).
  • Let di denote the number of events (deaths or failures) occurring at time ti.
  • Let ci denote the number of observations right-censored in the half-open interval [ti, ti+1), so that the risk set at the next failure time updates recursively via ni+1 = ni − di − ci.

By the law of conditional probability, surviving past ti requires surviving past ti−1 and then surviving through the instant ti. The empirical conditional probability of failing at ti is di / ni, and the conditional probability of surviving through ti is 1 − (di / ni). Multiplying these conditional probabilities across all observed event times ti ≤ t yields the Kaplan–Meier product-limit estimator:

Ŝ(t) = ∏i : ti ≤ t ( 1 − di / ni )

Graphically, Ŝ(t) is a right-continuous, monotonically non-increasing step function that starts at Ŝ(0) = 1.0, stays flat between event times, drops vertically by factor (1 − di / ni) at each observed failure time ti, and marks right-censored subjects with vertical tick marks (+ or |) along the horizontal treads where they reduce ni+1 without causing Ŝ(t) to drop.

Step-by-Step Numerical Calculation Table

Event Interval (ti, months)Number at Risk (ni)Observed Events (di)Right-Censored in [ti, ti+1) (ci)Conditional Survival (1 − di / ni)Cumulative Kaplan–Meier Survival Ŝ(ti)
Baseline (t = 0)100051.00001.0000 (100.0%)
Month 3 (t1 = 3)9551090 / 95 = 0.94741.0000 × 0.9474 = 0.9474 (94.7%)
Month 7 (t2 = 7)8081272 / 80 = 0.90000.9474 × 0.9000 = 0.8526 (85.3%)
Month 12 (t3 = 12)6061454 / 60 = 0.90000.8526 × 0.9000 = 0.7674 (76.7%)
Month 18 (t4 = 18)40103030 / 40 = 0.75000.7674 × 0.7500 = 0.5755 (57.6%)

Variance Estimation, Confidence Intervals, and Median Survival

Greenwood's Formula and Log–Log Transformation

Applying the delta method to ln Ŝ(t) = ∑ ln(1 − di / ni) yields Greenwood's formula (originally derived by Major Greenwood in 1926 for actuarial life tables) for the asymptotic variance of the Kaplan–Meier estimator:

Var[ Ŝ(t) ] ≈ [ Ŝ(t) ]2 ∑i : ti ≤ t [ di / ( ni ( ni − di ) ) ]

Because naive linear confidence intervals Ŝ(t) ± 1.96 × SE[Ŝ(t)] can exceed 1.0 near t = 0 or fall below 0.0 in the right tail, biostatisticians construct confidence bands on the complementary log–log scale, g(S) = ln[ −ln Ŝ(t) ], which maps (0, 1) onto (−∞, +∞) and guarantees that back-transformed 95% confidence limits remain inside [0, 1]. The non-parametric median survival time is read directly as the smallest time t0.50 at which the step function crosses Ŝ(t) ≤ 0.50.

Hypothesis Testing and Core Validity Assumptions

The Mantel–Cox Log-Rank Test and Non-Informative Censoring

To test the null hypothesis H0 : S1(t) = S2(t) across two or more treatment arms, investigators construct a 2 × 2 contingency table at every distinct failure time ti and compute the expected number of events E1i = di (n1i / ni) under H0. Summing observed minus expected events across all k event times gives the Mantel–Cox log-rank statistic:

χ2log-rank = [ ∑i=1k ( O1i − E1i ) ]2 / ∑i=1k V1i    ∼    χ2(df=1)

where V1i is the hypergeometric variance at time ti. The log-rank test is mathematically equivalent to the score test of a univariate proportional hazards model and attains maximum statistical power when hazards in the two groups are proportional over time.

Unbiased Kaplan–Meier estimation requires independent (non-informative) right-censoring: at any time t, individuals who are censored must have the same conditional probability distribution of future failure as individuals who remain under observation in the risk set ni.

Frequently Asked Questions

How does the Kaplan–Meier estimator relate to the Nelson–Aalen cumulative hazard estimator?

The Nelson–Aalen estimator non-parametrically estimates the cumulative hazard function Ĥ(t) = ∑ti ≤ t (di / ni). Because the theoretical survival and cumulative hazard functions are linked by S(t) = exp[−H(t)] and the first-order Taylor expansion of exp(−di / ni) is 1 − di / ni, the Kaplan–Meier estimator is the product-limit first-order approximation to the Breslow–Fleming–Harrington survival estimator exp[−Ĥ(t)].

Why does a Kaplan–Meier curve overestimate cumulative incidence in the presence of competing risks?

When patients can experience a competing risk that precludes the primary event (for example, dying of myocardial infarction before experiencing local cancer recurrence), treating competing-event deaths as ordinary right-censoring violates non-informative censoring because dead patients can never experience recurrence. Standard 1 − Ŝ(t) then overestimates true event probability, requiring the Aalen–Johansen cumulative incidence function (CIF) instead.

References

  1. Greenwood, M. (1926). "The natural duration of cancer." Reports on Public Health and Medical Subjects, No. 33, 1–26. Her Majesty's Stationery Office.
  2. Kaplan, E. L., & Meier, P. (1958). "Nonparametric estimation from incomplete observations." Journal of the American Statistical Association, 53(282), 457–481. https://doi.org/10.1080/01621459.1958.10501452
  3. Mantel, N. (1966). "Evaluation of survival data and two new rank order statistics arising in its consideration." Cancer Chemotherapy Reports, 50(3), 163–170. https://pubmed.ncbi.nlm.nih.gov/5910392/
  4. Peto, R., & Peto, J. (1972). "Asymptotically efficient rank invariant test procedures." Journal of the Royal Statistical Society: Series A, 135(2), 185–207. https://doi.org/10.2307/2344317
  5. Kalbfleisch, J. D., & Prentice, R. L. (2002). The Statistical Analysis of Failure Time Data (2nd ed.). John Wiley & Sons. https://doi.org/10.1002/9781118032985
🧬 Support Open Science
Explore interactive science games on LowKey Games or browse scientific apparel & accessories in the CRV Science Shop.
💡 Spot an inaccuracy or have primary literature to expand this article?
Submit a citation or revision note using your shared CRV Science / LowKey Games profile ID.
Suggest Revision