Kaplan–Meier estimator with delayed entry 2026-10-14
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 isBefore 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.
Kaplan–Meier six-subject cohort 2026-10-14
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:
| 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 .
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.
Nelson–Aalen variance estimator 2026-10-06
For untied events at with predictable risk set size , the estimated predictable variation of the Nelson–Aalen estimator is . It comes from the martingale event increment variance and the estimator increment . It applies on the range with individuals at risk; it is not an exact finite-sample unbiasedness statement.
Offset-adjusted cumulative hazard estimator 2026-10-14
Suppose individual event hazards have the additive form , where is known and is common. The aggregate counting-process intensity in survival analysis is , with the current risk set size. Writing and dividing by givesThe last term is a counting-process martingale integral. This establishes the cumulative common-hazard target on the observed at-risk time range. The known offset must be averaged over the current risk set, not the initial sample. Between event jumps, its subtraction can make the unconstrained estimate decrease. If all known hazards equal and up to , the estimate reduces to the Nelson–Aalen estimator minus .
If a cohort is periodically confirmed event-free but exact event reports update only those who fail, censoring the remaining subjects at their last scheduled confirmation creates informative censoring. Between confirmations the nominal risk set retains future observed failures and removes nonfailures. An apparent final failure may therefore empty the recorded risk set even though other cohort members remain event-free. Use a common verified cutoff or a complete event register with a common administrative censoring date.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 28 4 a Solution Created 2026-10-03 Updated 2026-10-14
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 iswhere 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 estimatesWithout 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 isTerms 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 impliesIf 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.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 29 1 b Solution Created 2026-10-03 Updated 2026-10-14
Under independent censoring, order the distinct observed failure times as . Let be the size of the risk set just before , and let be the number of failures there. The estimated conditional probability of surviving that event time is . Multiplying these conditional survival probabilities gives the Kaplan–Meier estimatorA censored observation leaves the risk set after its censoring time but does not create a downward survival jump. With tied failure and censoring times, the displayed risk-set convention includes those censored at the time while processing failures, then removes them.
Since , the Kaplan–Meier estimator of the cumulative hazard function isThis is not exactly the Nelson–Aalen estimator , although the two are close when the individual fractions are small. If a jump exhausts the risk set, becomes zero and becomes infinite; transformed residuals beyond that point require a finite-tail modelling convention or restriction of follow-up.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 37 1 Solution Created 2026-10-03 Updated 2026-10-14
Let be an event time and a potential censoring time. Under independent censoring, observe and . For an exponential distribution of rate , an observed failure contributes to the survival likelihood, whereas a right-censored observation contributes . The censoring-law factors may be discarded when they are independent of . Thus, writing and for total observed person-time,For the unique maximum-likelihood estimate isCensored times belong in : they record time during which failure was not observed. With and , the likelihood decreases with , so the supremum is at the boundary ; there is no positive interior estimate. This is exponential-rate estimation from censored exposure.
Uninformative censoring means that the potential censoring time supplies no information about the latent failure time after conditioning on the modeled variables. A study ending at a fixed follow-up duration independent of prognosis is an example of administrative censoring. Informative censoring occurs, for example, when a seriously deteriorating patient withdraws because of that deterioration and the prognostic information is omitted from the model. Under informative censoring, those remaining in the risk set are selected by their future failure propensity, so the ordinary survival likelihood and its estimate need not target the true rate.
Using the reported durations and flags as though they were valid right-censored records givesTreating all durations as failures instead givesRelabelling has halved the event count without shortening any observed follow-up. The resulting estimate is therefore exactly half the complete-data estimate.
This is not a simulation of uninformative ordinary right-censoring. For a record declared censored at , ordinary right censoring requires ; the construction instead took to be the simulated failure time itself. Keeping a failure time and hiding only its flag does not produce the minimum of that time and an independent earlier censoring time. Even choosing labels at random does not fix this: independence of a flag from the recorded duration is different from independent censoring of a latent event time. Indeed the labelled durations still have mean one while the failure fraction is one half, so their ordinary censored estimate converges to , not the generating rate one. Thus it is not a valid uninformative censoring scheme for the intended failure distribution; strictly, it has not implemented ordinary right-censoring of those simulated failure times at all. One could reproduce the randomly labelled record distribution with independent latent event and censoring times both of rate , but that would be a different failure model, not the claimed rate-one model. Calling the flags random is therefore insufficient to justify the target distribution or its censored likelihood. This is the random relabelling is not independent right censoring issue.
A valid simulation draws independently and , and records . Sinceit gives independent censoring with the requested probability. Equivalently generate and from independent uniform random numbers. Another valid choice is fixed censoring at , since . These give a random censored fraction with expectation one half; they do not promise exactly 500 censored records. For the independent-exponential scheme, observed durations have rate two and mean one half, so correctly converges to one.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 37 2 Solution 2026-10-14
For the numerical competing risks update, the estimated probability of remaining event-free just before the tied time isThere were no intervening events, so the cumulative incidence functions did not jump between the two stated times. The Aalen–Johansen estimator uses the risk set immediately before the event time, including the subject censored at that same time under the usual events-before-censoring tie convention. Therefore the cause- increment is , andFor a consistency check, and ; these sum to one. The censoring does not create an incidence jump and leaves subjects for subsequent follow-up. Dividing by would instead assume that the censored subject had already left before the event time, contrary to the stated immediately preceding risk set. This is a cumulative incidence update with tied censoring.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 40 2 ii Solution Created 2026-10-03 Updated 2026-10-14
Collect distinct observed failure times as , with failures and individuals in the risk set just before . The grouped Nelson–Aalen estimator isAll failures recorded at one time use the same pre-event risk set. When failures and censoring share a recorded time, the usual convention includes those censored at that time in the risk set and processes failures before removing censored individuals. A known different ordering should instead be honored. If ties arise solely through rounding of a continuous-time process, an alternative is to resolve the unobserved ordering: successive failures without intervening censoring would contribute . That is not the grouped jump ; the difference represents a choice about what the recorded ties mean.
