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 tt, the probability of remaining event-free beyond tt, 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

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 48/8848/88, about 55%55\%, while restricting to the 71 patients not censored by 20 months gives 48/7148/71, about 68%68\%. 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 71%71\%, 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 TT be the true event time — the time of death, relapse, failure, or whatever event is of interest — and let CC 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 Y=min⁡(T,C)Y = \min(T, C), together with an indicator δ\delta that records whether the event was observed (δ=1\delta = 1 when T≤CT \le C) or the observation was censored (δ=0\delta = 0 when T>CT > C) .[2] The target is the survival function S(t)=P(T>t)S(t) = \mathbb{P}(T > t), the probability of surviving beyond time tt .[2]

The difficulty is that a censored observation is not an event time and not a survival time: it is a lower bound on TT. 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 t1<t2<⋯<tKt_1 < t_2 < \dots < t_K. At event time tjt_j, let njn_j be the number of subjects at risk just before tjt_j — those whose observed time YY is at least tjt_j, so they are known to be alive and under observation immediately before tjt_j — and let djd_j be the number of events at tjt_j. The set of subjects at risk at tjt_j is the risk set. Survival beyond tjt_j factorises, by the multiplication rule for conditional probabilities, into survival beyond tj−1t_{j-1} and then survival from tj−1t_{j-1} to tjt_j given survival to tj−1t_{j-1}. Estimating each conditional survival probability by the fraction of the risk set that survives the moment, (nj−dj)/nj(n_j - d_j)/n_j, and multiplying gives the Kaplan–Meier estimator

S^(t)=∏j:tj≤t(1−djnj),\widehat{S}(t) = \prod_{j: t_j \le t} \left(1 - \frac{d_j}{n_j}\right),

with S^(t)=1\widehat{S}(t) = 1 for t<t1t < t_1 .[2] Equivalently, S^(tj)=S^(tj−1)(1−dj/nj)\widehat{S}(t_j) = \widehat{S}(t_{j-1}) (1 - d_j/n_j): 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 SS: 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 (1−dj/nj)(1 - d_j/n_j) are computed over fewer subjects, and each later event therefore produces a larger drop. Second, ties are handled by counting all djd_j events at tjt_j together in a single factor (1−dj/nj)(1 - d_j/n_j); 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 njn_j for the events at tjt_j and leave the risk set only afterwards .[1]

No shape is assumed for SS: 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

S^\widehat{S} 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 dj/njd_j/n_j 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 tt is a statement about the population from which the sample was drawn, not a description of the sample alone: S^(t)\widehat{S}(t) estimates the probability that a member of that population survives beyond tt. 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

Var^{S^(t)}=S^(t)2∑j:tj≤tdjnj(nj−dj),\widehat{\text{Var}}\{\widehat{S}(t)\} = \widehat{S}(t)^2 \sum_{j: t_j \le t} \frac{d_j}{n_j (n_j - d_j)},

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 tt; each term increases as njn_j decreases with djd_j held fixed. The sum is nondecreasing, but the variance also contains the decreasing factor S^(t)2\widehat{S}(t)^2, so the variance itself need not increase over time. The estimated standard error is SE^{S^(t)}=S^(t)G^(t)\widehat{\text{SE}}\{\widehat{S}(t)\} = \widehat{S}(t) \sqrt{\widehat{G}(t)}, where G^(t)\widehat{G}(t) 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, S^(t)±z1−α/2 SE^{S^(t)}\widehat{S}(t) \pm z_{1-\alpha/2}\, \widehat{\text{SE}}\{\widehat{S}(t)\}, 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 θ(t)=log⁡[−log⁡S(t)]\theta(t) = \log[-\log S(t)], defined when 0<S(t)<10 < S(t) < 1. By the delta method, the standard error of θ^(t)=log⁡[−log⁡S^(t)]\widehat{\theta}(t) = \log[-\log \widehat{S}(t)] is approximately G^(t)/∣log⁡S^(t)∣\sqrt{\widehat{G}(t)} / |\log \widehat{S}(t)|, and the log-log transformation has variance Var(log⁡[−log⁡S^(t)])=Var(log⁡S^(t))/(log⁡S^(t))2\text{Var}(\log[-\log \widehat{S}(t)]) = \text{Var}(\log \widehat{S}(t)) / (\log \widehat{S}(t))^2 .[5] An approximate 100(1−α)%100(1-\alpha)\% interval for S(t)S(t) is therefore

[exp⁡{−exp⁡(θ^(t)+z1−α/2G^(t)∣log⁡S^(t)∣)}, exp⁡{−exp⁡(θ^(t)−z1−α/2G^(t)∣log⁡S^(t)∣)}],\left[\exp\left\{-\exp\left(\widehat{\theta}(t) + z_{1-\alpha/2} \frac{\sqrt{\widehat{G}(t)}}{|\log \widehat{S}(t)|}\right)\right\},\ \exp\left\{-\exp\left(\widehat{\theta}(t) - z_{1-\alpha/2} \frac{\sqrt{\widehat{G}(t)}}{|\log \widehat{S}(t)|}\right)\right\}\right],

where z1−α/2z_{1-\alpha/2} is the corresponding standard normal quantile (1.961.96 for a 95% interval). Note the reversal: because s↦exp⁡{−exp⁡(s)}s \mapsto \exp\{-\exp(s)\} is decreasing, the upper end of the θ\theta-interval gives the lower end of the SS-interval. The resulting interval lies inside (0,1)(0, 1) 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 tt — 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 dj<njd_j < n_j at every event time included in the sum. If the last subject at risk has the event, so dj=njd_j = n_j and S^\widehat{S} 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 S^(t)\widehat{S}(t). The median survival time is the smallest time tt at which S^(t)≤0.5\widehat{S}(t) \le 0.5 — 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 0.50.5 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 LL: the mean of min⁡(T,L)\min(T, L), estimated as the area under S^\widehat{S} up to LL .[1] This is now usually called the restricted mean survival time, RMST(L)=∫0LS(t) dt\text{RMST}(L) = \int_0^L S(t)\, dt, estimated by RMST^(L)=∫0LS^(t) dt\widehat{\text{RMST}}(L) = \int_0^L \widehat{S}(t)\, dt over a supported follow-up window. It is the average event-free time over [0,L][0,L] and can be estimated even when the median is not reached. The horizon LL must be stated alongside the number; an RMST without its LL 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: S^(t)\widehat{S}(t) converges in probability to S(t)S(t) provided only that the number of items observable to tt grows without bound .[1] Consistency is therefore a statement about the risk set at tt, 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 tt 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 (nj−dj)/nj(n_j - d_j)/n_j 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 tt .[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 00 and” S^\widehat{S} 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 1=1 = event, 0=0 = censored:

Eight patients, five events at four distinct times: Patient, 1, 2, 3, 4, 5, 6, 7…
Patient 1 2 3 4 5 6 7 8
Time (months) 2 3 4 6 6 7 9 12
Event (11) / censored (00) 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.

Eight patients, five events at four distinct times: Event time, At risk, Events, Factor, Greenwood term
Event time tjt_j At risk njn_j Events djd_j Factor 1−dj/nj1 - d_j/n_j S^(tj)\widehat{S}(t_j) Greenwood term dj/(nj(nj−dj))d_j / (n_j(n_j - d_j))
2 8 1 7/87/8 7/8=0.8757/8 = 0.875 1/561/56
3 7 1 6/76/7 3/4=0.7503/4 = 0.750 1/421/42
6 5 2 3/53/5 9/20=0.4509/20 = 0.450 2/152/15
9 2 1 1/21/2 9/40=0.2259/40 = 0.225 1/21/2

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 3/53/5, giving S^(6)=(3/4)×(3/5)=9/20=0.45\widehat{S}(6) = (3/4) \times (3/5) = 9/20 = 0.45. The curve is flat at 0.750.75 from 3 months up to (but not including) 6 months, so S^(5)=0.75\widehat{S}(5) = 0.75; the censoring at 4 months changes no value of S^\widehat{S}, only the risk set for later times. After 9 months the curve stays at 0.2250.225 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

G^(6)=156+142+215=15+20+112840=147840=740=0.175.\widehat{G}(6) = \frac{1}{56} + \frac{1}{42} + \frac{2}{15} = \frac{15 + 20 + 112}{840} = \frac{147}{840} = \frac{7}{40} = 0.175.

Hence the estimated variance is Var^{S^(6)}=(9/20)2×(7/40)=567/16000=0.0354375\widehat{\text{Var}}\{\widehat{S}(6)\} = (9/20)^2 \times (7/40) = 567/16000 = 0.0354375, and the standard error is SE^{S^(6)}=0.45×0.175≈0.188\widehat{\text{SE}}\{\widehat{S}(6)\} = 0.45 \times \sqrt{0.175} \approx 0.188. For the log-log interval: log⁡S^(6)=log⁡0.45≈−0.799\log \widehat{S}(6) = \log 0.45 \approx -0.799, θ^(6)=log⁡(0.799)≈−0.225\widehat{\theta}(6) = \log(0.799) \approx -0.225, and SE^{θ^(6)}=0.175/0.799≈0.524\widehat{\text{SE}}\{\widehat{\theta}(6)\} = \sqrt{0.175}/0.799 \approx 0.524. With z0.975=1.96z_{0.975} = 1.96, the θ\theta-interval is −0.225±1.96×0.524=(−1.252, 0.802)-0.225 \pm 1.96 \times 0.524 = (-1.252,\ 0.802), which transforms back to

[exp⁡{−exp⁡(0.802)}, exp⁡{−exp⁡(−1.252)}]≈(0.108, 0.751).[\exp\{-\exp(0.802)\},\ \exp\{-\exp(-1.252)\}] \approx (0.108,\ 0.751).

So a 95% log-log interval for S(6)S(6) is approximately (0.108, 0.751)(0.108,\ 0.751). For comparison, the plain normal interval 0.45±1.96×0.1880.45 \pm 1.96 \times 0.188 is (0.081, 0.819)(0.081,\ 0.819): wider on the upper side and symmetric by construction, while the log-log interval is asymmetric about 0.450.45, as it should be for a quantity bounded between 0 and 1. Both are wide — with only 8 patients, a survival probability of 0.450.45 is compatible with a wide range of true values — and both are approximate.

Median and restricted mean. The curve first falls to 0.50.5 or below at 6 months (S^(6)=0.45\widehat{S}(6) = 0.45), so the median survival time is 6 months. The restricted mean to 9 months is the area under the curve to 9 months:

RMST^(9)=1×2+0.875×1+0.75×3+0.45×3=2+0.875+2.25+1.35=6.475 months.\widehat{\text{RMST}}(9) = 1 \times 2 + 0.875 \times 1 + 0.75 \times 3 + 0.45 \times 3 = 2 + 0.875 + 2.25 + 1.35 = 6.475\ \text{months}.

That is the average event-free time over the first 9 months, not an estimate of mean lifetime: the curve is still at 0.2250.225 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 1=1 = event, 0=0 = censored:

Your turn — Six further patients: Patient, 1, 2, 3, 4, 5, 6
Patient 1 2 3 4 5 6
Time (months) 1 2 4 4 5 8
Event (11) / censored (00) 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 S(4)S(4).

The distinct event times are 1, 4 and 8. At 1 month, n1=6n_1 = 6 and d1=1d_1 = 1, so S^(1)=5/6≈0.833\widehat{S}(1) = 5/6 \approx 0.833. The censoring at 2 months leaves a risk set of 4 at 4 months, where d=2d = 2, so S^(4)=(5/6)×(2/4)=5/12≈0.417\widehat{S}(4) = (5/6) \times (2/4) = 5/12 \approx 0.417. The censoring at 5 months leaves a risk set of 1 at 8 months, where the last patient has the event, so S^(8)=0\widehat{S}(8) = 0.

The median survival time is 4 months, the first time at which S^\widehat{S} falls to 0.50.5 or below (S^(4)=5/12≈0.417\widehat{S}(4) = 5/12 \approx 0.417).

Greenwood’s sum through 4 months is G^(4)=1/(6×5)+2/(4×2)=1/30+1/4=17/60≈0.2833\widehat{G}(4) = 1/(6 \times 5) + 2/(4 \times 2) = 1/30 + 1/4 = 17/60 \approx 0.2833. The estimated variance is (5/12)2×(17/60)=85/1728≈0.0492(5/12)^2 \times (17/60) = 85/1728 \approx 0.0492, so the standard error is approximately 0.2220.222. For the log-log interval, log⁡S^(4)≈−0.875\log \widehat{S}(4) \approx -0.875, θ^(4)≈−0.133\widehat{\theta}(4) \approx -0.133, and SE^{θ^(4)}=17/60/0.875≈0.608\widehat{\text{SE}}\{\widehat{\theta}(4)\} = \sqrt{17/60}/0.875 \approx 0.608. The interval is approximately (0.056, 0.767)(0.056,\ 0.767). The plain normal interval, 0.417±1.96×0.222≈(−0.018, 0.851)0.417 \pm 1.96 \times 0.222 \approx (-0.018,\ 0.851), crosses below zero — one reason to prefer the log-log interval. Note also that Greenwood’s formula cannot be used at 8 months: there n=d=1n = d = 1, so the term d/(n(n−d))d/(n(n-d)) is undefined.

Common misconceptions

“The curve shows the proportion of the original sample still alive.” Only if there is no censoring. With censoring, S^(t)\widehat{S}(t) is a product of conditional fractions over changing risk sets, not a count divided by the initial nn. 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 3/8=0.3753/8 = 0.375 nor 1/8=0.1251/8 = 0.125 is the Kaplan–Meier estimate S^(9)=0.225\widehat{S}(9) = 0.225.

“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 0.50.5; 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 S(t)=P(T>t)S(t) = \mathbb{P}(T > t) 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 Λ^(t)=−log⁡S^(t)\widehat{\Lambda}(t) = -\log \widehat{S}(t) 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 1−S^(t)1 - \widehat{S}(t) as the probability of the event of interest, overstates the risk; the cumulative incidence function is needed instead.

Check yourself

  1. Four patients are followed, with times in months and 1=1 = event, 0=0 = censored: (3,1)(3, 1), (5,0)(5, 0), (6,1)(6, 1) and (9,1)(9, 1). What are S^(6)\widehat{S}(6) and S^(9)\widehat{S}(9)?

At 3 months, n=4n = 4 and d=1d = 1, so S^(3)=3/4\widehat{S}(3) = 3/4. The patient censored at 5 months has left the risk set, so the risk set at 6 months is 2, with d=1d = 1, giving S^(6)=(3/4)(1/2)=3/8=0.375\widehat{S}(6) = (3/4)(1/2) = 3/8 = 0.375. At 9 months the only remaining patient has the event, so S^(9)=0\widehat{S}(9) = 0.

  1. In the worked example, the log-log 95% interval for S(6)S(6) is approximately (0.108, 0.751)(0.108,\ 0.751), while the plain normal interval is approximately (0.081, 0.819)(0.081,\ 0.819). Why is the log-log interval asymmetric about 0.450.45, and why is it preferred?

The log-log interval is built on the transformed scale θ=log⁡[−log⁡S]\theta = \log[-\log S] and then transformed back with the decreasing function s↦exp⁡{−exp⁡(s)}s \mapsto \exp\{-\exp(s)\}, so equal steps on the θ\theta-scale become unequal steps on the survival scale. It is preferred because it always lies inside (0,1)(0, 1): a plain normal interval can extend below 0 or above 1, which is impossible for a probability. In this example both intervals stay inside (0,1)(0, 1), but the log-log interval is the one whose asymmetry reflects the bounded scale.

  1. A study reports a Kaplan–Meier curve that stays above 0.60.6 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 0.50.5, 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

Glossary and index

References

  1. ^ 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
  2. ^ 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
  3. ^ (§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
  4. ^ 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
  5. ^ 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
Plain text
StatWiki (2026). "Kaplan–Meier estimator." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/kaplan-meier-estimator.html
BibTeX
@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}
}