When cohorts share one time-since-entry survival distribution, their observations can be pooled using the Kaplan–Meier estimator, even when later cohorts have shorter administrative follow-up. A short-follow-up cohort still improves estimation of early survival, which is a factor in survival at later times. Pooling requires comparable survival across cohorts and independent censoring; calendar-period or cohort effects can invalidate that assumption.
The Kaplan–Meier estimator constrained to have survivor function value at maximizes the right-censoring log-likelihood subject to the displayed constraint. Here is the discrete hazard, the event count and the risk set size. In an interior event-time solution, a Lagrange multiplier gives before the constrained time, with afterwards. The multiplier is chosen to satisfy the product constraint. It is essential to allow a zero-event jump at the constrained time or another relevant cell boundary: a constraint can require mass outside observed event times. A general implementation instead maximizes the concave probability-mass log-likelihood with total mass one and mass above equal to , allowing all relevant cells and a terminal tail. This also handles unobserved tails and boundary solutions without imposing unjustified event-only support.
Cox–Snell residual 2026-10-06
A Cox–Snell residual is the fitted cumulative hazard function evaluated at an observed event or censoring time. Under a correct model, complete transformed event times are unit exponential; censored transformed times retain their event indicators. A logarithmic Kaplan–Meier estimator survivor plot should be close to a line of slope minus one.
For a correct fitted survival law, complete Cox–Snell residuals are approximately unit exponential. Residuals computed at observed censored times retain their censoring indicators. Fit a Kaplan–Meier estimator to the transformed times and indicators and compare it with , or compare their Nelson–Aalen estimator cumulative hazard with . Treating censored transformed times as complete exponential observations gives a distorted Q–Q check.
Cumulative hazard function Created 2026-09-24 Updated 2026-10-14
Suppose has an absolutely continuous probability distribution, with survival function . On an interval where , its cumulative hazard is
Here is the hazard function; its integral is dimensionless because the units of rate and time cancel. The identity follows by integrating the derivative of , so mere continuity of the survival function is not enough: the absolute continuity assumption supplies a probability density function. If reaches zero, interpret as . The normalization also matters; an initial probability mass at zero would require an initial term .
Accumulating hazard functions adds on the scale and multiplies survival factors on the scale. For and ,
For instance, a cumulative hazard increment of gives event probability , rather than a probability of . With per year, and . With the increasing hazard function per year when is expressed in years, , so gives . Its coefficient has units of inverse years squared.
Figure 1.
Constant and increasing hazard functions, their cumulative hazards, and their survival functions
. Details.
The constant hazard function produces an exponential distribution; the increasing example is a Weibull distribution. Their survival functions both decrease, although one hazard function stays constant and the other increases. At year ten both have and despite different earlier histories. The accumulation identity is described in Lu Tian's Stanford notes, Section 1.1.
For a discrete hazard at each possible event time , the exact counterpart is . Taking its negative logarithm sums , rather than . Therefore exponentiating a Nelson–Aalen estimator does not give exactly the Kaplan–Meier estimator; small-jump comparison of cumulative hazard estimators quantifies the difference.
Discrete hazard Created 2026-10-07 Updated 2026-10-14
At ordered possible failure times , the discrete hazard is . Its survival function satisfies , and hence . Estimating by the observed number of failures divided by the risk set size under independent censoring yields the Kaplan–Meier estimator. Unlike a continuous-time hazard rate, a discrete hazard is a probability between zero and one.
If a censored individual is allocated event weights over later event times, its event-count contribution at time is and its risk set contribution is . These fractional counts can be used in the Kaplan–Meier estimator.
Greenwood formula 2026-10-14
For the Kaplan–Meier estimator, the estimated variance is
The formula follows by summing approximate variances of the logarithms of the conditional survival factors and applying the delta method to their product. Its square root is the estimated standard error. The same expression uses the actual delayed-entry risk sets for the Kaplan–Meier estimator with delayed entry. When and every contributing , an approximate log-scale confidence interval is , with the upper endpoint capped at one. This interval can be inaccurate with very small risk sets.
Independent censoring Created 2026-09-28 Updated 2026-10-14
A simple sufficient independent censoring assumption is that the potential observation-ending time and survival time are independent random variables. More generally, appropriate conditional independence given the covariates used in the analysis can suffice for analysis within those conditions. The requirement concerns the potential times, rather than independence of the observed duration and event indicator : those recorded quantities ordinarily depend on each other.
For an ordinary pooled Kaplan–Meier estimator, the observed risk set must represent the future event experience of everyone still event-free at each time. Conditional independence given a covariate does not alone justify ignoring that covariate in a pooled calculation. Also, there must be a positive probability of remaining observed through the horizons being estimated. If follow-up ends at a common closing time, it supplies no observations to identify the later survival function. Independent subjects with a common survival distribution and independent censoring form the basic model in Lu Tian's STAT331 notes, Unit 3, pages 1–4.
For example, subjects who stop attending because their condition is deteriorating can produce informative censoring. A predetermined common closing date can instead give administrative censoring, provided calendar entry and other relevant conditions do not select future survival times. The reason for stopping observation must be justified from study design and context; the recorded event indicators alone cannot verify independent censoring.
Informative censoring 2026-10-06
Informative censoring occurs when censoring carries information about the future event time beyond the variables conditioned on in the analysis. It can invalidate ordinary Kaplan–Meier estimator and survival-model residual interpretations.
Kaplan–Meier estimator Created 2026-09-24 Updated 2026-10-14
At distinct observed event times , let be the risk set size immediately before , and let count events at . The Kaplan–Meier estimator of the survival function is
The empty product is one. Each factor estimates a conditional survival probability among those still observed and event-free; their product joins the successive steps. This is nonparametric statistics: no specified shape for the survival distribution is imposed. Use independent censoring and the appropriate risk sets to interpret the result as an estimate for the intended population.
The Kaplan–Meier estimator is a right-continuous function with downward jumps at event times. Right censoring changes later denominators without causing a jump. A tick on the curve marks right censoring, rather than a failure. For a tied group of events, use the one factor ; subjects right-censored at that recorded time remain in for this factor. The fraction estimates a discrete hazard, not a continuous hazard function in inverse-time units. With no censoring, the factors telescope to the fraction of the original cohort whose observed survival times exceed , the complement of its empirical distribution function.
Edward L. Kaplan and Paul Meier published [ref]. Their paper addresses lifetime estimation when observation ends before failure and explicitly calls attention to the assumption of independence between lifetime and potential observation loss. The date 1958 is the original publication year; the publisher's later online-posting date is not the discovery date.
In his [ref], Kaplan traces Meier's interest to cancer-duration data in 1952 and his own to the lifetimes of vacuum tubes in undersea telephone-cable equipment a year later. The journal encouraged them to combine their manuscripts. The shared mathematical question was how to estimate a survival function when some lifetimes are still running or disappear from observation.
For independently left-truncated and right-censored survival data, let and be entry and exit times on the same clock. At each distinct event time , the risk set is , with size , and events occur. The Kaplan–Meier estimator is
Before entry a subject contributes neither an event nor time at risk. Thus adding observed entrants can increase successive risk sets; pretending that all subjects were observed from time zero distorts the estimated hazard function. The estimator identifies the survival function over ages covered by observation; normalization from birth requires observation arbitrarily close to time zero or additional knowledge of earlier survival.
The median survival estimate is the first event time at which the Kaplan–Meier estimator reaches or falls below one half. It is not identified beyond the observed follow-up if the curve never reaches that level. A few reported survival probabilities bound the crossing time but do not determine an exact median. Confidence intervals can be constructed by inverting confidence bands for the survivor function.
Consider six subjects observed from time zero. Recorded survival data are , , , , , and , with each pair giving in years. Thus have observed events, while are right-censored. The letters label subjects, not treatment groups. Here are all exit times, including rows without events:
Table 1.
Risk sets and exact Kaplan–Meier steps for the six-subject cohort
.
Time (years)Risk set just before At risk Events Right censoring count Survival factor Kaplan–Meier estimator
At year one, . Removing at year two leaves the Kaplan–Meier estimator unchanged. Immediately before year three, are still in the risk set: the two events give . Only afterwards do leave, leaving alone. Removing before counting the tied events would incorrectly use and give . The event-first convention is part of the recorded-time interpretation; coarsely rounded timestamps do not reveal a hidden ordering within that time bin.
The exact Kaplan–Meier estimator is on , on , and on . The three right censoring ticks are , , and ; at a shared event time the tick is on the post-event step. Beyond year five the risk set is empty, so the horizontal endpoint does not determine later survival. The Kaplan–Meier median survival time is three years, since this is the first step at or below .
Now separate the tied events by changing only 's recorded event time from year three to year four. At year three the risk set still has four subjects, but , so . After the event and 's right censoring, only remain. At year four , giving . The intervening right censoring prevents the factors from telescoping to the original tied-event factor. If instead remained observed past year four, the factors would be , giving the original after both events. This is Kaplan–Meier telescoping across a censor-free interval in numbers.
Incorrectly counting every right-censored exit as an event estimates the distribution of observation-ending times , rather than survival times . For the original tied cohort, the spurious curve is at year one, at year two, at year three, and zero at year five. That zero asserts a failure for , whose only known information is .
Figure 1.
Six observed histories and the effect of ties and right censoring on Kaplan–Meier steps
. Details.
The computation uses the risk set and event-before-censoring convention in Lu Tian's STAT331 notes, Unit 3, pages 2–6; this six-subject example supplies its own exact counts.
For a fixed cohort with individuals at risk just after , no censoring or entry inside , and events in , the Kaplan–Meier estimator factors telescope to the displayed ratio. A tied group of events contributes , the same product as any sequential ordering without intervening censoring. Events at are counted before censoring at the same time under the usual convention.
Net survival 2026-10-07
For cause-specific hazard , the net survival is . Censoring all competing events in a cause-specific Kaplan–Meier estimator targets this quantity under appropriate observation-censoring assumptions. Its complement generally exceeds the actual cumulative incidence function , because all-cause survival also includes the other hazards. Identifying net survival with survival after a hypothetical elimination of competing events requires extra causal assumptions.
The survival estimates favor the new treatment at the two reported times, with absolute survival differences at two years and at five years. These point differences alone do not establish efficacy. Randomization supports a causal comparison of the treatment assignments, but sampling variance, censoring, follow-up, protocol adherence and the prespecified endpoint still matter. One should not infer a statistically established benefit merely from two larger estimates.
A Kaplan–Meier estimator is
where is the risk set and the event count. Its uncertainty depends on the actual risk sets, not just the initial group size. The Greenwood formula estimates
Without the missing survival tables one cannot calculate these standard errors or the uncertainty of the group difference. In particular, replacing the estimator variance by the variance of an uncensored binomial proportion would generally be wrong.
I would advise presenting both curves with numbers at risk and confidence intervals, checking independent censoring, and reporting a prespecified overall comparison plus an effect estimate and interval. For an unadjusted log-rank test, write and . Its hypergeometric null variance is
Terms with no possible variation contribute zero. This compares the entire event history rather than selecting two arbitrary times, uses the available risk sets, and avoids choosing favorable time points after examining the curves. It is especially effective under proportional hazards. Crossing curves can make a log-rank comparison insensitive; a prespecified restricted mean survival time difference or another suitable time-varying analysis may then be more informative. An overall comparison does not make a clinically important prespecified time-point contrast invalid.
The Kaplan–Meier median survival time is the first event time at which . Monotonicity of the reported estimates implies
If the new-treatment curve never reaches one half during observed follow-up, its median is not estimable from that curve. The exact crossing times cannot be reconstructed from two survival probabilities: the standard curve could first cross at three or at four years and still have the same values at two and five years. The point estimates suggest benefit, but the evidence and exact medians require the missing event/censoring tables. Neither a conclusive agreement nor a conclusive rejection of benefit is justified from these numbers alone.