Kaplan–Meier estimator
Intermediate
What you need first. Nothing else on this path comes first. This page is part of Statistical inference.
In survival analysis, the Kaplan–Meier estimator is a nonparametric estimate of the survival function from right-censored data, formed by multiplying conditional survival fractions at observed event times. The Kaplan–Meier estimator, also called the product-limit estimator, is the standard nonparametric estimate of a survival function from right-censored time-to-event data. It estimates, at each time , the probability of remaining event-free beyond , using every subject for exactly as long as that subject was observed — no longer. A subject censored at 4 months contributes the information that they survived at least 4 months, and nothing about what happened afterwards. The estimator was introduced by Kaplan and Meier in 1958 as the distribution, unrestricted as to form, that maximises the likelihood of the incomplete observations [1] (pp. 457–458).
Kaplan–Meier estimator
| Fact | Value |
|---|---|
| Topic | Statistical inference |
| Listed on | Statistical inference |
Two naive proportions, and why both fail
James and colleagues motivate the estimator with the BrainCancer data, and the example is worked in full in survival-analysis: in a series of 88 patients, the proportion known to have survived past 20 months is , about , while restricting to the 71 patients not censored by 20 months gives , about . The first figure implicitly assumes every censored patient had the event before 20 months; the second discards the censored patients entirely. The Kaplan–Meier estimate is , higher than either naive figure, because it credits each censored patient with survival up to their censoring time and no further .[2]
Follow-up ends before the event
Let be the true event time — the time of death, relapse, failure, or whatever event is of interest — and let be the censoring time, the time at which observation would end for a reason other than the event, such as the end of the study or loss to follow-up. What is observed for each subject is , together with an indicator that records whether the event was observed ( when ) or the observation was censored ( when ) .[2] The target is the survival function , the probability of surviving beyond time .[2]
The difficulty is that a censored observation is not an event time and not a survival time: it is a lower bound on . Discarding censored subjects throws away the information that they survived at least until censoring, while treating a censoring time as if it were the event time understates survival. The Kaplan–Meier estimator avoids both errors by working with conditional probabilities among the subjects still at risk.
The product-limit construction
Order the distinct event times as . At event time , let be the number of subjects at risk just before — those whose observed time is at least , so they are known to be alive and under observation immediately before — and let be the number of events at . The set of subjects at risk at is the risk set. Survival beyond factorises, by the multiplication rule for conditional probabilities, into survival beyond and then survival from to given survival to . Estimating each conditional survival probability by the fraction of the risk set that survives the moment, , and multiplying gives the Kaplan–Meier estimator
with for .[2] Equivalently, : each event time multiplies the previous estimate by the fraction of those at risk who did not have the event. This is the product-limit formula of Kaplan and Meier .[1] It is also the nonparametric maximum likelihood estimator of : among all distributions, with no assumed shape, it is the one that maximises the likelihood of the observed data .[1]
Three features of the construction deserve attention. First, censoring never causes a step: a censored subject simply leaves the risk set, so later factors are computed over fewer subjects, and each later event therefore produces a larger drop. Second, ties are handled by counting all events at together in a single factor ; the formula does not split tied event times into separate factors. Third, when an event time and a censoring time coincide, the convention is to treat the deaths as occurring slightly before the losses at that time, so the censored subjects are still counted in for the events at and leave the risk set only afterwards .[1]
No shape is assumed for : the estimator is nonparametric, giving estimates of the reliability (survival) function from complete or censored data without assuming a particular distribution model such as Weibull or lognormal .[3] Exact event times are required; grouped data need the actuarial (life-table) approximation instead.
What the steps mean
is a step function: it is constant between event times and drops only at event times, by an amount that depends on how many subjects are still at risk. A drop of times the current level is large when the risk set is small, which is why Kaplan–Meier curves often look alarming in their right-hand tail, where few subjects remain. The curve is usually drawn with tick marks at censoring times; the ticks mark information exhausted, not events .[4]
The estimate at a time is a statement about the population from which the sample was drawn, not a description of the sample alone: estimates the probability that a member of that population survives beyond . That interpretation is exactly what the non-informative-censoring assumption buys, and it is what fails when the assumption fails (see Assumptions and limits below).
Because the estimator is a product of conditional probabilities, its sampling behaviour is governed by the risk sets, not by the total sample size alone. Two studies with the same number of subjects can have very different precision at late times if one of them has much heavier censoring.
Greenwood’s formula and confidence intervals
Precision depends on the event counts and the sizes of the risk sets. Greenwood’s formula estimates the variance of the Kaplan–Meier estimator as
a formula derived by Greenwood for life tables in 1926 and given in its Kaplan–Meier form by Kaplan and Meier [1] (pp. 465–466). The sum accumulates one term per event time up to ; each term increases as decreases with held fixed. The sum is nondecreasing, but the variance also contains the decreasing factor , so the variance itself need not increase over time. The estimated standard error is , where denotes the sum above. Kaplan and Meier stress that this is an asymptotic expression for the variance, so intervals built from it are approximate, not exact .[1]
A direct normal interval, , is easy to compute but can extend below 0 or above 1, which is impossible for a probability. The standard remedy is to build the interval on the log-log scale and transform back. Write , defined when . By the delta method, the standard error of is approximately , and the log-log transformation has variance .[5] An approximate interval for is therefore
where is the corresponding standard normal quantile ( for a 95% interval). Note the reversal: because is decreasing, the upper end of the -interval gives the lower end of the -interval. The resulting interval lies inside and is asymmetric, stretching further on the side towards which the estimate is less precisely determined. It is a pointwise interval — valid, approximately, at the single time — not a simultaneous band for the whole curve. Standard errors and confidence intervals for the estimated survival probabilities are found by Greenwood’s method .[4]
Greenwood’s formula needs at every event time included in the sum. If the last subject at risk has the event, so and drops to zero, the corresponding term is undefined; the variance estimate is then not defined at or beyond that time. This is one more reason to report Greenwood intervals only where the risk set is not degenerate.
Median survival and restricted mean
Two summaries are read off the curve more often than any single value . The median survival time is the smallest time at which — the time by which half the population is estimated to have had the event. It is a property of the curve, not of the observed event times: a median computed from the observed events alone, ignoring censoring, is biased. If the curve never falls to within follow-up, the median is not reached and should be reported as not estimable within follow-up, not extrapolated.
The mean survival time is the area under the survival curve, but the unrestricted mean is not estimable when follow-up ends before the curve reaches zero — which is the usual case. Kaplan and Meier instead define the mean life limited to a time : the mean of , estimated as the area under up to .[1] This is now usually called the restricted mean survival time, , estimated by over a supported follow-up window. It is the average event-free time over and can be estimated even when the median is not reached. The horizon must be stated alongside the number; an RMST without its is uninterpretable, and RMSTs with different horizons are not comparable.
Large-sample behaviour
Under their independent-lifetime and censoring assumptions, Kaplan and Meier state that the product-limit estimate is consistent: converges in probability to provided only that the number of items observable to grows without bound .[1] Consistency is therefore a statement about the risk set at , not about the initial sample size: a study can start with many subjects and still estimate late survival badly if almost all of them are censored early. The effective sample size — the size of an uncensored sample that would give the same variance — is nonincreasing in and falls as censoring accumulates [1] (pp. 467–468). In small samples, and especially in the tail, the Greenwood standard error and the log-log interval are approximations whose coverage can be poor; the log-log transformation improves the normal approximation but does not remove the small-sample problem [5] (slide 5).
No censoring, heavy censoring, and the end of follow-up
If there is no censoring, the product telescopes: every factor cancels with its neighbours except for the first denominator and the last numerator, and the estimator reduces to the usual empirical survival function, the observed proportion surviving beyond .[1] The Kaplan–Meier estimator is therefore a genuine generalisation of the empirical survivor function, not a different kind of object. Greenwood’s formula likewise reduces to the ordinary binomial variance in that case .[5]
Heavy censoring does the opposite. Each censoring shrinks the risk set without adding an event, so later factors are computed over fewer subjects, later drops are larger, and Greenwood’s sum accumulates larger terms. The curve becomes coarser and its intervals wider, and both effects accelerate in the tail. A curve whose risk set has fallen to a handful of subjects should not be read at face value at late times, however smooth it looks.
What happens after the last observation matters too. If the largest observed time is an event, the curve may drop to zero and stay there. If the largest observed time is a censoring, the estimate is undefined beyond it: the curve is conventionally drawn flat at its last value, but that flat line is a plotting convention, not an estimate. Kaplan and Meier state the point explicitly — beyond the greatest observed lifetime, when that lifetime is a loss, the estimate “can be regarded as lying between and” at that time, “but is not more closely defined” .[1] Nothing in the data distinguishes “everyone died the next day” from “everyone lived for years”, and the estimator does not pretend otherwise.
Statistical use
The Kaplan–Meier estimator is the default first step in a survival analysis: it describes one group’s survival over time, supplies the curve that the log-rank test compares between groups, and provides the nonparametric baseline against which model-based estimates are checked. It is used wherever the question is “what fraction survive, and for how long?”, from clinical trials to reliability testing to customer churn, and it is the right tool whenever the data are right-censored and no distributional shape is to be assumed.
Eight patients, five events at four distinct times
Eight patients are followed after treatment, with times in months and event, censored:
| Patient | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Time (months) | 2 | 3 | 4 | 6 | 6 | 7 | 9 | 12 |
| Event () / censored () | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 0 |
There is a tie at 6 months (two events) and censorings at 4, 7 and 12 months. The distinct event times are 2, 3, 6 and 9.
| Event time | At risk | Events | Factor | Greenwood term | |
|---|---|---|---|---|---|
| 2 | 8 | 1 | |||
| 3 | 7 | 1 | |||
| 6 | 5 | 2 | |||
| 9 | 2 | 1 |
At 6 months the risk set is 5, not 6: the patient censored at 4 months has left it. The two events at 6 months enter as a single factor , giving . The curve is flat at from 3 months up to (but not including) 6 months, so ; the censoring at 4 months changes no value of , only the risk set for later times. After 9 months the curve stays at until the last observation, a censoring at 12 months, beyond which it is undefined.
Greenwood standard error and 95% interval at 6 months. The Greenwood sum through 6 months is
Hence the estimated variance is , and the standard error is . For the log-log interval: , , and . With , the -interval is , which transforms back to
So a 95% log-log interval for is approximately . For comparison, the plain normal interval is : wider on the upper side and symmetric by construction, while the log-log interval is asymmetric about , as it should be for a quantity bounded between 0 and 1. Both are wide — with only 8 patients, a survival probability of is compatible with a wide range of true values — and both are approximate.
Median and restricted mean. The curve first falls to or below at 6 months (), so the median survival time is 6 months. The restricted mean to 9 months is the area under the curve to 9 months:
That is the average event-free time over the first 9 months, not an estimate of mean lifetime: the curve is still at at 9 months, so the unrestricted mean is not estimable from these data.
Your turn — Six further patients
Six further patients are followed, with times in months and event, censored:
| Patient | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Time (months) | 1 | 2 | 4 | 4 | 5 | 8 |
| Event () / censored () | 1 | 0 | 1 | 1 | 0 | 1 |
Compute the Kaplan–Meier estimate at 1, 4 and 8 months, the median survival time, and the Greenwood standard error and log-log 95% confidence interval for .
The distinct event times are 1, 4 and 8. At 1 month, and , so . The censoring at 2 months leaves a risk set of 4 at 4 months, where , so . The censoring at 5 months leaves a risk set of 1 at 8 months, where the last patient has the event, so .
The median survival time is 4 months, the first time at which falls to or below ().
Greenwood’s sum through 4 months is . The estimated variance is , so the standard error is approximately . For the log-log interval, , , and . The interval is approximately . The plain normal interval, , crosses below zero — one reason to prefer the log-log interval. Note also that Greenwood’s formula cannot be used at 8 months: there , so the term is undefined.
Common misconceptions
“The curve shows the proportion of the original sample still alive.” Only if there is no censoring. With censoring, is a product of conditional fractions over changing risk sets, not a count divided by the initial . In the worked example, three of eight patients have no recorded event by nine months, but only one is known to remain event-free then; the other two were censored earlier. Neither nor is the Kaplan–Meier estimate .
“A censored patient counts as a survivor (or as a death).” Neither. A censored patient contributes survival up to the censoring time and then leaves the risk set. Counting them as survivors understates risk; counting them as events overstates it; dropping them entirely discards the survival they are known to have had.
“The median is the average survival time.” The median is the time at which the curve crosses ; the mean is the area under the curve, and it is not estimable at all when follow-up ends with the curve above zero. With skewed survival times the two can differ greatly, and the median may not exist while a restricted mean does.
“If the curve never reaches zero, survival is good.” A curve that ends high may simply reflect heavy censoring or short follow-up. The height of the curve at the end of follow-up, the size of the risk set there, and the width of the interval all have to be read together.
“Comparing pointwise intervals is the same as comparing survival curves.” A pointwise interval quantifies uncertainty at a single time. A comparison over follow-up requires a procedure designed for that question, such as the log-rank test. A test at one prespecified time and a test across follow-up address different hypotheses.
“The flat tail after the last observation is an estimate.” It is a plotting convention. Beyond the largest observed time, if that time is a censoring, the estimator is undefined, and extrapolating the flat line is unjustified.
Assumptions and limits
For an ordinary unadjusted Kaplan–Meier curve, assume independent subjects with a common event-time distribution and censoring independent of the event time within the population or stratum being estimated. Independence only after conditioning on covariates does not by itself justify a pooled unadjusted curve. Kaplan and Meier assume the lifetime to be independent of the potential loss time, and warn that “in practice this assumption deserves careful scrutiny” [1] (pp. 457–458). James and colleagues make the same point: the censoring mechanism must be independent, in the sense that, conditional on the features, the event time carries no information about the censoring time, and whether that holds “is not possible to determine from the data itself” .[2] Bland and Altman list it as the first of three assumptions behind the method: at any time, patients who are censored must have the same survival prospects as those who continue to be followed .[4] If sicker patients drop out early, the curve overestimates survival; if healthier patients are the ones lost, it underestimates it. Administrative censoring at a fixed end of study is the least worrying case; dropout related to prognosis is the most worrying, and no calculation on the observed data can detect it.
Two further assumptions are easily overlooked. The survival probabilities must be the same for subjects recruited early and late in the study — a condition that fails if the case mix or ancillary treatment changes over a long recruitment period — and the event must genuinely occur at the recorded time, which requires a different observation model when events are only detected at periodic examinations (interval censoring) .[4]
The estimator’s limits are the limits of a single-sample description. It does not adjust for covariates, so it cannot separate a treatment effect from a difference in case mix; it does not compare groups, so a visual gap between two curves is not a test (that is the log-rank test’s job); it says nothing beyond the last observation; and with competing events it answers the wrong question if competing events are treated as censoring — see competing-risks. Its intervals are pointwise and approximate, and in small samples or heavy censoring they can be wide enough to be uninformative, which is itself a finding worth reporting.
Connections
- Survival function — the target that the Kaplan–Meier estimator estimates.
- Hazard rate — the instantaneous event rate; the Kaplan–Meier curve and the Nelson–Aalen cumulative hazard estimate are two views of the same risk-set information, related by approximately.
- Censoring statistics — the censoring mechanisms (right, left, interval) that make the estimator necessary, and the non-informative-censoring assumption it relies on.
- Survival analysis — the broader setting: the product-limit formula is the nonparametric core of survival analysis, and the worked examples there use the same risk-set arithmetic.
- Log-rank test — the test that compares two or more Kaplan–Meier curves, built from the same event-time tables.
- Competing risks — the setting where treating a competing event as censoring, and reading as the probability of the event of interest, overstates the risk; the cumulative incidence function is needed instead.
Check yourself
- Four patients are followed, with times in months and event, censored: , , and . What are and ?
At 3 months, and , so . The patient censored at 5 months has left the risk set, so the risk set at 6 months is 2, with , giving . At 9 months the only remaining patient has the event, so .
- In the worked example, the log-log 95% interval for is approximately , while the plain normal interval is approximately . Why is the log-log interval asymmetric about , and why is it preferred?
The log-log interval is built on the transformed scale and then transformed back with the decreasing function , so equal steps on the -scale become unequal steps on the survival scale. It is preferred because it always lies inside : a plain normal interval can extend below 0 or above 1, which is impossible for a probability. In this example both intervals stay inside , but the log-log interval is the one whose asymmetry reflects the bounded scale.
- A study reports a Kaplan–Meier curve that stays above for the whole follow-up period, with only 3 patients still at risk at the end. What can be said about the median survival time, and what should be reported instead?
The median is not estimated within observed follow-up: it is not reached, because the curve never falls to , and it should be reported as not estimable rather than extrapolated. Report instead the estimated survival at a stated horizon with its confidence interval, and the restricted mean survival time to a stated horizon — for example, the area under the curve to the end of follow-up. The small risk set at the end also means late estimates are very imprecise, so the interval width and the numbers at risk should be shown alongside the curve.
History
The product-limit estimator was published by Edward L. Kaplan and Paul Meier in 1958, in “Nonparametric estimation from incomplete observations”, in the Journal of the American Statistical Association .[1] The name “product-limit” was adopted because the estimate is a limiting case of the older actuarial (life-table) estimates, with the intervals made so short that each contains at most one death; the idea had in fact been proposed as early as 1912 by Bohmer, but “seems to have been lost sight of by later writers and not further investigated” .[1] The variance formula used with it goes back further still: a very similar formula had been derived by Greenwood in 1926 for life tables [1] (p. 466). Kaplan and Meier’s paper also gave the mean and variance of the estimate, the mean lifetime and its restricted version, and a consistency argument .[1] The product-limit construction and Greenwood variance remain the basis of the method described in modern survival-analysis teaching [2] (§11.3, pp. 464–466); .[5]
See also
Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability
References
- ^ a b c d e f g h i j k l m n o p b. (pp. 462–464) c. (pp. 457–458) d. (pp. 461–462) f. (pp. 465–466) g. (pp. 467–468) h. (p. 479) j. (p. 464) k. (p. 463) m. (pp. 457–458) n. (p. 463) p. (pp. 465–468, 479) 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
- ^ a b c d e f a. (§11.3, pp. 464–466) b. (eq. 11.1) c. (eq. 11.2) d. (eq. 11.3) e. (§11.2, p. 464) James, G., Witten, D., Hastie, T. & Tibshirani, R. (2021). An Introduction to Statistical Learning: with Applications in R (2nd ed.). Springer, New York. https://doi.org/10.1007/978-1-0716-1418-1
- ^ (§8.2.1.5) Heckert, N. A., Filliben, J. J., Croarkin, C. M., Hembree, B., Guthrie, W. F., Tobias, P. & Prinz, J. (2002). NIST/SEMATECH e-Handbook of Statistical Methods, §8.2.1.5 Kaplan–Meier. National Institute of Standards and Technology. https://www.itl.nist.gov/div898/handbook/apr/section2/apr215.htm
- ^ a b c d a. (p. 1572) b. (p. 1572) c. (p. 1572) d. (p. 1572) Bland, J. M. & Altman, D. G. (1998). Survival probabilities (the Kaplan-Meier method). BMJ, 317(7172), 1572. https://doi.org/10.1136/bmj.317.7172.1572
- ^ a b c d a. (slide 5) c. (slide 5) d. (slide 5) Rodríguez, G. (2018). Survival Analysis: 2. Non-Parametric Estimation. Princeton University, POP 509. https://grodri.github.io/survival/pop509slides2.pdf
Cite this page
StatWiki (2026). "Kaplan–Meier estimator." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/kaplan-meier-estimator.html
@misc{statwiki_kaplan_meier_estimator,
author = {{StatWiki}},
title = {{Kaplan–Meier estimator}},
year = {2026},
url = {https://www.statwiki.io/articles/kaplan-meier-estimator.html},
urldate = {2026-12-02},
note = {StatWiki, last updated 2 December 2026}
}