Kaplan-Meier Analysis — Nonparametric Survival Estimation

Statistics
Introduced by
Edward L. Kaplan and Paul Meier
Year
1958
Type
Nonparametric survival estimator
Family
Clinical / epidemiology

What does it do?

Kaplan-Meier (KM) analysis is a nonparametric method for estimating the survival function from time-to-event data.

Kaplan and Meier introduced it in their 1958 paper, and it produces the step-function survival curve that shows the estimated probability of remaining event-free beyond each observed event time. The estimator accounts for censored observations, meaning participants who left the study or had not experienced the event by the end of follow-up, and it is widely used in clinical and epidemiological research.

The intuition behind the method

Consider a group of patients followed after treatment to see how long they survive. Some die during follow-up (observed events), while others are still event-free when the study ends or they leave it (censored). Averaging only the observed times ignores the censored patients and can be misleading. The Kaplan-Meier estimator instead multiplies a series of conditional probabilities, each giving the chance of surviving one event time given survival up to that point. The resulting curve drops only at times when an event occurs. A censored observation leaves the risk set without counting as an event, so its information is used up to the moment it exits.

History

Kaplan-Meier analysis originates from the 1958 paper by Edward L. Kaplan and Paul Meier in the Journal of the American Statistical Association, which described nonparametric estimation from incomplete observations. The product-limit estimator in that paper is the basis of the method described on this page.

When to use it

Use Kaplan-Meier analysis when the outcome is the time to one well-defined event (such as death, relapse, discharge, or treatment failure) and follow-up times differ across participants. It is a common first step in survival analysis and applies to both randomised trials and observational cohort studies. It is well suited to descriptive display and unadjusted group comparison. The estimator itself makes no assumption about the hazard; the proportional hazards assumption matters when the log-rank test or a Cox model is used to compare groups. Move to Cox regression when you need to adjust for several covariates at once. Do not use the standard KM estimator when a person can experience more than one event of the same kind, because it considers only the first event. Do not use it when competing events, such as death from another cause before the event of interest, are present, since the estimator then overstates the probability of the event of interest; competing-risks analysis is appropriate in that case. KM is also unsuitable when censoring is likely to be informative, when continuous covariate adjustment is required, or when the outcome is binary rather than time-to-event.

Limitations and considerations

  • Cannot adjust for several confounders at once; Cox proportional hazards regression is needed for covariate-adjusted estimates.
  • Assumes non-informative censoring; estimates are biased if censoring is related to prognosis.
  • Does not handle recurrent events or competing risks without extension to more specialised methods.
  • The log-rank test has reduced power when the hazard ratio changes over time, for example when curves cross or converge.
  • Estimates become unstable at long follow-up times when few participants remain at risk.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Completely nonparametric, so it makes no assumption about the shape of the survival distribution.
  • Correctly incorporates censored observations, so all available follow-up time contributes to the estimate.
  • Produces an interpretable step-function curve that can be read directly against the time axis.
  • Median survival with a confidence interval can be read directly from the curve as a summary statistic.
  • Widely understood across clinical, epidemiological, and regulatory audiences.

Applications

  • Comparing overall survival between treatment arms in oncology randomised controlled trials.
  • Estimating time to hospital readmission after cardiac surgery in cardiovascular cohort studies.
  • Reporting progression-free survival in regulatory submissions for new oncology drugs.
  • Analysing time to treatment discontinuation or adverse event onset in pharmacovigilance studies.
  • Estimating graft survival in transplant registries and organ rejection studies.
  • Describing time to recurrence after surgical resection in colorectal or breast cancer cohorts.

How it works

How it works

1

Specify the event of interest (for example, death, disease recurrence, or hospital readmission), the time origin (for example, randomisation or diagnosis date), and the censoring rules. Each participant contributes a survival time and an event indicator (1 = event occurred, 0 = censored). The estimator assumes that censoring is non-informative, meaning censored participants do not systematically differ in prognosis from those who remain at risk.

2

Sort all observed times in increasing order. At each distinct event time t_i, record n_i, the number of participants still at risk just before t_i, and d_i, the number of events occurring at t_i. Several events at the same time are all counted in d_i within one factor of the product. Censored observations between event times reduce the risk set n_i for later steps but are not counted as events. By the usual convention, a participant censored at a time that coincides with an event time is counted in n_i at that time, because the event is taken to occur before the censoring, and is removed from the risk set only afterwards. Software defaults for tied event and censoring times should be checked and reported with the analysis.

3

Compute the survival estimate at each event time with the product-limit formula S(t) = product over all t_i <= t of (1 - d_i / n_i). The estimate starts at S(0) = 1, falls only at event times, and stays constant between them. Because the formula uses only the ordering of observed times, it makes no parametric assumption about the distribution of survival times.

Formula
S(t) = \prod_{t_i \le t} \left(1 - \frac{d_i}{n_i}\right)
4

Censored participants, such as those lost to follow-up, withdrawn, or still event-free at the study cutoff, count in n_i up to their censoring time and are then removed from the risk set without adding to d_i. If censoring is informative, for example because patients are censored after deteriorating, the risk set no longer represents the patients who would have experienced the event, and the KM estimate can be biased.

5

When two or more groups, such as treatment and control, are compared, a separate KM curve is estimated for each group and the curves are shown together. The log-rank test provides a significance test of the null hypothesis that the survival functions are equal. It is most powerful when the hazard ratio between groups is roughly constant over time, which is the proportional hazards assumption. Weighted variants such as Wilcoxon-Breslow give more weight to early differences and may be preferred when early separation is the main interest.

6

Show the KM curves with a numbers-at-risk table below the time axis. Report the median survival time, defined as the time at which S(t) crosses 0.5, with a 95% confidence interval (typically based on Greenwood's formula). If groups were compared, report the log-rank p-value together with the hazard ratio and its confidence interval from a Cox model. State the total sample size, the number of events, and the duration of follow-up.

Common pitfalls

  • Ignoring competing risks: treating competing events (such as death from another cause before relapse) as censored leads to overestimation of the cumulative incidence of the event of interest. Cause-specific hazard or Fine-Gray approaches are used instead.
  • Presenting curves without a numbers-at-risk table: late portions of the curve based on very few individuals are unreliable and misleading without this context.
  • Informative censoring: if patients are censored because they deteriorated or switched treatment, the remaining cohort is selectively composed. Sensitivity analyses or inverse-probability-of-censoring weighting should be considered.
  • Reporting only the log-rank p-value: the p-value conveys significance but not the size of the difference. Report a hazard ratio with its confidence interval from Cox regression alongside it.
  • Crossing survival curves with a single log-rank test: when curves cross, the log-rank test may be non-significant even though there is a real early or late difference. Restricted mean survival time or weighted log-rank tests give more information in that situation.

Frequently asked questions

What is the difference between the Kaplan-Meier curve and the cumulative hazard curve?

The KM curve shows S(t), the probability of remaining event-free beyond time t; it starts at 1 and decreases toward 0. The cumulative hazard is H(t) = -log S(t), which increases over time and represents the accumulated instantaneous risk. Both are representations of the same underlying data, and plotting the cumulative hazard can help in checking model assumptions.

When should I use the log-rank test vs. a Cox model to compare groups?

Use the log-rank test when you want a simple, nonparametric significance test comparing two or more unadjusted KM curves. Use Cox regression when you need to adjust for confounders, include continuous predictors, or obtain a hazard ratio as a summary effect size. Both approaches rely on the proportional hazards assumption; when it is violated, consider restricted mean survival time analysis.

How do I calculate the confidence interval for the median survival?

The median is the time at which S(t) falls to 0.5 or below. Its confidence interval is based on the pointwise confidence limits of S(t), which are estimated with Greenwood's formula for the variance of S(t). The limits of the interval are the times at which these pointwise limits cross the 0.5 probability line. Software usually computes the limits on a log or log-log transformed scale, so the interval can be asymmetric. Common statistical software computes this automatically.

Can I use Kaplan-Meier when I have competing risks?

Standard KM analysis treats competing events, such as death from another cause before the event of interest, as censored observations. This assumes censored individuals remain at risk for the event of interest, which leads to overestimation of cumulative incidence when competing events are common. When competing risks are present, use the cumulative incidence function from Fine-Gray regression or cause-specific hazard models instead of the KM estimator.

What sample size do I need for a reliable Kaplan-Meier estimate?

Reliability depends mainly on the number of observed events rather than on total sample size. Formal power calculations for the log-rank test should be based on the expected event rate, the expected median survival, and the desired power. At long follow-up times, when few participants remain at risk, the curve becomes unreliable. It should be truncated or shown with its confidence band so that the uncertainty is visible.

Related methods

Sources

  1. Kaplan, E. L., & Meier, P. (1958). Nonparametric estimation from incomplete observations. Journal of the American Statistical Association, 53(282), 457–481.

    Open DOI reference
  2. Kaplan–Meier estimator. Wikipedia.

    Open publication reference