Compensator of a counting process Created 2026-10-05 Updated 2026-10-06
The compensator of a counting process is a predictable increasing process such that is a local martingale. For an observed event process with at-risk process and hazard function , it is under independent censoring. It is cumulative intensity, rather than an event probability.
An observed event counting process has conditional increment , where is the at-risk process. The filtration records the past observed events, censoring, and covariates; the integral of is the compensator of a counting process.
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.
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.
Keep the counting process and at-risk process notation from the introductory derivation. Because the individual hazards add, the aggregate conditional intensity is
The known individual contributions must be averaged over the current risk set, rather than over the original cohort. Define
Then estimates . Subtract the known average contribution to obtain the offset-adjusted cumulative hazard estimator
Take the quotient to be zero when . If , direct substitution gives
This establishes the target and the mean-zero estimation noise, under the usual integrability conditions. It estimates while there is a nonempty risk set; no data identify its continuation after follow-up has ended. With common known and individuals at risk throughout , it reduces to .
The estimate may decrease between events because the known offset is subtracted continuously. That is not an algebraic error: it is an unconstrained estimating-equation estimator, not automatically a nonnegative monotone cumulative hazard estimate. If such shape constraints are imposed, the fitting procedure must explicitly account for them. The working hazard model itself must satisfy .
The history contains the information observed strictly before : baseline characteristics, previous events and censoring, and therefore which individuals are currently eligible and under observation. Formally it is the pre- information in the relevant filtration. The at-risk process is 1 if individual is observed and event-free immediately before , and 0 otherwise. Let and write for the cumulative hazard increment.
The counting-process intensity in survival analysis gives
The common conditional hazard function is assumed to remain applicable after conditioning on the observed history, as under suitable independent censoring. Summing gives the conditional mean of the total event increment:
On times with , invert this relation to estimate the hazard increment:
The last sum is for untied events. This is the Nelson–Aalen estimator; for ties replace 1 by the number of events at that time. No increment can be estimated once the risk set is empty.
With independent censoring, the at-risk process is . Independence and the common censoring survivor function give
In the counting-process intensity in survival analysis, the counting process jumps once if an observed event occurs; the at-risk process is one immediately before only while individual is still observed and event-free. Conditional on that information, the chance of an event in a short interval is for an at-risk individual and zero otherwise. This is the meaning of
The history is the filtration generated by the observed event and censoring histories, entry information, and available covariates strictly before . In particular, it determines the current risk set but does not reveal future event times. The right-hand side is the infinitesimal compensator of a counting process; the equality is interpreted as an intensity statement to first order in .
Define the event counting process and at-risk process by
Under a common hazard function and independent censoring, the conditional event rate is . Equivalently, the counting-process compensator satisfies . Estimate a cumulative hazard increment by the observed event increment divided by the current risk set:
With no ties, has mass at , and . Thus the Nelson–Aalen estimator is
Only event times contribute, so no empty risk set is divided into an event count. Right-censored observations contribute time to the risk sets, but no event increment.
is the event counting process, while is the at-risk process. Their key relationship is that, conditionally on the observed past, the expected event increment is . It separates exposure to risk from event occurrence and naturally incorporates right censoring.
Before the observed endpoint, . If censoring occurs before the event, both processes are zero after the censoring time, so their sum is zero. With the inclusive endpoint conventions in the question, at an observed event time both are one, so the sum is two at that single instant.
Let be the at-risk process and the counting process for observed events. Over a short interval, the multiplicative-intensity model gives
where is the hazard function and the cumulative hazard function. Solving this relation for the infinitesimal hazard increment suggests . Summing over distinct event times gives the Nelson–Aalen estimator
where events occur among individuals at risk. Here there are no ties, so .