If a counting process has predictable conditional intensity , subtracting its compensator of a counting process gives the associated martingale . Conditional expected event increments and compensator increments agree, so their difference is conditionally centered. With the necessary integrability, is a mean-zero martingale; for a simple no-ties process its predictable quadratic variation is . A predictable weighted martingale integral has mean zero and variance determined by the square of its weights. In survival analysis, produces the event-minus-expected representation used to derive the Nelson–Aalen estimator.
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.
Event-count identity for Nelson–Aalen cumulative hazards Created 2026-10-06 Updated 2026-10-14
With all subjects entering at time zero and no tied observation times, the Nelson–Aalen estimator satisfies . Exchanging sums makes each event increment appear in exactly subject hazards. The identity relies on the risk-set count equalling the number of observation times at least , and generally needs modification for delayed entry.
Even with a common event hazard, the exact expectation of the Nelson–Aalen estimator is , because no increments can be observed after the risk set is empty. Replacing ratios by ratios of expectations gives an approximate target and does not prove finite-sample unbiasedness. For one uncensored exponential event time, the estimator has mean rather than .
Suppose everyone enters observation at zero and has one event or censoring time. At distinct recorded time , let observations terminate, of which are events, and use the pre-time risk set size . For the grouped Nelson–Aalen estimator, . Exchanging sums gives . The unweighted sum over distinct times generally does not have this property. Processing each observation separately after breaking ties also restores the corresponding unweighted identity on the resulting artificial time grid.
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.
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 gives
The 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 .
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 estimator
A 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 is
This 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.
Collect distinct observed failure times as , with failures and individuals in the risk set just before . The grouped Nelson–Aalen estimator is
All 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.
Let count observed failures and let be the at-risk process, counting subjects under observation and still alive immediately before . Under independent censoring, a short interval of length has conditional expected failure count . The estimating equation obtained by replacing the count expectation by its observation is . Each distinct failure gives and , so the Nelson–Aalen estimator is
The same increment maximizes the local working likelihood for a Poisson distribution with mean : differentiating gives . The counting-process derivation explains why the risk set, rather than the initial sample size, supplies the denominator.
At the last observed failure time , any individual still in the risk set must either fail there or be censored there or later. If there are no such censored observations, every remaining individual fails, so . Thus the final Kaplan–Meier estimator factor is zero, while the final Nelson–Aalen estimator jump is one:
There is no small-jump approximation at this endpoint. Without ties the final risk set has size one, so the same discrepancy follows from its last single failure.
The proposed hybrid recording rule updates the event times of students who leave but does not update the follow-up of those who remain. Thus the recorded end of observation depends on the subsequent outcome: this is outcome-dependent updating of survival follow-up.
In the four-student illustration, all four are known to be event-free at month six. Under the proposed coding, the three students without event reports are censored at month six, while the student whose event is subsequently reported remains in the risk set until month seven. The recorded risk set at that event therefore has size one, although the other three may still be studying. The Kaplan–Meier estimator factor would be and the Nelson–Aalen estimator jump would be . This creates an artificial complete loss of estimated survival at that event.
If event notification is complete through the common eight-month cutoff, the absence of a notification establishes that the other three have not had the event by that cutoff. They should remain in the risk set at month seven. With only these four subjects, the corresponding factors are instead and . Updating only failures while backdating nonfailures' censoring creates a severely biased risk set. If notifications are incomplete, absence of a report does not establish continued study; positive follow-up confirmation is then required.
A censoring observation means an event time is not observed exactly: the information supplies a bound or interval instead. Under right censoring, one observes and the event indicator ; if , one knows only . Left censoring gives an upper bound, while interval censoring locates the event between two observations.
Uninformative censoring means that, conditional on the covariates used in the analysis, the censoring mechanism supplies no additional information about the event time. Independence within those covariate strata is a sufficient formulation: subjects remaining in the observed risk set have the same future hazard as the corresponding event-free population. A fixed study cutoff unrelated to prognosis is an example of administrative censoring.
Informative censoring occurs when that condition fails. For example, students at high risk of leaving may also become harder to contact before their departure is formally recorded; censoring at loss of contact selectively removes high-risk students. Ordinary Kaplan–Meier estimator and Nelson–Aalen estimator calculations then use an unrepresentative risk set. The distinction determines whether ordinary survival estimates can be interpreted as population survival. Merely knowing that an observation is censored does not establish independence.
For subject , write , and define the counting process and pre-event at-risk process by
Under independent censoring and a common hazard, each observed event-free subject has conditional event probability in a short interval. Therefore to first order. Equivalently the compensator of a counting process is . Dividing the observed increments by current exposure gives the estimating equation , hence
Here are distinct event times, the number of events at that time, and the number at risk immediately before it. One can also obtain the same increment by maximizing the local multiplicative-intensity likelihood : differentiation gives . This derives the Nelson–Aalen estimator, rather than merely naming it.
A censored observation contributes to the denominator while under observation, and then leaves the risk set; it contributes no event jump. For tied events, use the single increment , not successive one-event increments with shrinking denominators. If censoring and events share a recorded time, a convention is needed; counting the event before removing same-time censored subjects uses the pre-time risk set above. Rounded or interval-censored data may require a model suited to their observation mechanism.
For the distinct ordered observations in the question, let indicate whether is an event. The risk set at contains precisely the subjects whose recorded time is at least . Thus
Therefore the sum of the fitted integrated hazards at all observation times equals the observed number of events, the event-count identity for Nelson–Aalen cumulative hazards. The grouped Nelson–Aalen event-count identity extends the same argument to tied observations with their multiplicities and the stated risk-set convention.
Use the standard right censoring setup with everyone entering observation at time zero. At each observed time , the pre-exit risk set has size . The Nelson–Aalen estimator of the cumulative hazard function is
Censoring removes an individual from later risk sets but contributes no event increment.
Exchange the two finite sums:
Each event increment appears in exactly as many subjects' fitted cumulative hazards as there were subjects at risk for that increment. This proves the event-count identity for Nelson–Aalen cumulative hazards. Common entry is relevant: with delayed entry, a subject does not accumulate the increments before entering, so an entry-time subtraction would be needed.
One method for ties is to group observations at each distinct recorded time. If events occur at , use the pre-time risk set size including observations censored at that same recorded time, and take one jump . This is the usual events-before-censoring convention within a recorded tie. Since ,
Thus the grouped Nelson–Aalen event-count identity preserves the required identity at the recorded observation times. It is a sum over individuals, not an unweighted sum over distinct times.
A second method, suitable when ties reflect rounded times, is to break ties by small perturbations or an artificial ordering, then apply the untied estimator. The event-count identity holds on that new, untied time grid. It does not generally persist if all estimates are mapped back to the original common time. For example, two tied failures among two individuals give a grouped jump , so the original-time sum is . Sequentially breaking the failures gives jumps and , whose total is ; assigning the completed jump to both original tied observations gives sum . On the perturbed grid the two values are and , whose sum is again . This distinction states exactly what the second method does and does not preserve.
Another common grouped survival approach is the Kaplan–Meier estimator, from which one may estimate cumulative hazard by . Its jump is , not , and it likewise does not have the Nelson–Aalen event-count identity. In particular it becomes infinite at a time when all remaining individuals fail.
Let count observed events and count individuals still in the risk set just before . Under a common hazard function and independent censoring, the expected event count over a short interval, conditional on the observed past, is
Here is the integrated hazard. Thus an estimating increment for is , on the range where the risk set is nonempty. Accumulating these increments gives the Nelson–Aalen estimator
The observation times include both events and censorings, , and is one for an event and zero for censoring. Without ties each event adds ; censoring changes later risk sets but adds nothing immediately. Equivalently, the local event fraction estimates the local hazard increment, and summing those estimates produces the integrated hazard. The counting-process intensity in survival analysis justifies this estimating equation; it does not imply exact finite-sample unbiasedness after the risk set can become empty.
Assume the usual cohort setup: all individuals enter at time zero, each contributes one event or censoring time, and every such observation is included. Order these distinct observation times as . The risk set size just before is then . Write for an event and zero for censoring. Including the jump at an event time, the Nelson–Aalen estimator is
Exchange the two finite sums:
Thus the sum equals the number of observed events. Each event increment appears once for each individual still at risk at that event, exactly cancelling its denominator. This is the event-count identity for Nelson–Aalen cumulative hazards. The cohort and entry convention matter: delayed entry would invalidate the simple equation and require a modified identity.
One method breaks a tied group into a sequence of distinct artificial times, by a specified or random ordering. Process tied events before tied censorings if their common recorded time means the censored individuals were still under observation when the events occurred. At each artificial event, add the reciprocal of the current risk set size and then remove that individual. This applies the untied Nelson–Aalen estimator to the resulting grid. For example, two tied failures among two individuals give successive increments and .
On that expanded grid there is one observation time per individual. The cancellation argument in (b) is unchanged, so breaking ties preserves the identity when the sum includes every artificially separated observation. The chosen ordering can affect the estimated curve within a tied group and must not be presented as an observed event order.
A second method retains the recorded tied times. For a group with events and pre-time risk set size , the grouped Nelson–Aalen estimator adds once. All events in the group use the same denominator; censorings in the group are removed afterwards. If two individuals fail at the same time and there are no other observations, the curve has one jump of . Its sum over the one distinct time is , whereas the event count is . Hence the unweighted distinct-time identity does not generally survive grouping ties. On the artificially separated grid in the first method, the two post-observation values would instead be and , whose sum is .
There is nevertheless an exact weighted version for the grouped method. Let count all observations, event or censoring, at distinct time . With everyone entering at zero, . Therefore
This grouped Nelson–Aalen event-count identity sums over individuals, with repeated values for tied times, rather than once per distinct time. Keeping that distinction resolves the apparent conflict between a valid grouped estimator and failure of the literal unweighted formula.