Set and absorb the common multiplier into . The model becomes
It is a Cox proportional-hazards model; the unknown baseline does not need a parametric form. The equality hypothesis is precisely . The absolute multipliers and have a scale ambiguity, but their hazard ratio is identifiable when both groups supply information.
For an untied event at , let be the risk set just before the event, and let be the subject who fails. The conditional event probability is proportional to that subject's hazard, so the common baseline cancels:
Multiply these factors to form the Cox partial likelihood. One can maximize it and compare its maximum with its value at using a partial likelihood-ratio test, or use the corresponding score test.
Explicitly, with group risk-set sizes and observed event indicator for group 1, the score at zero and its information are
Under the null the event label has exactly this Bernoulli distribution conditional on its current risk set. Hence is the usual one-degree-of-freedom log-rank test statistic, with an asymptotic chi-squared distribution when and enough informative events are observed. Censoring can differ between groups, provided it is independent of event time within the conditioning model. If there are recorded ties, use the appropriate tied-risk-set version: for events the null variance contribution is .
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 .
Under the null hypothesis of equal survival distributions, the two groups have the same event hazard. Conditional on the current risk set and one event, the event is in A with probability and in B with probability . Consequently, whenever both groups are represented,
Thus a weighted sum of differences in estimated hazard increments is centered under the null. Its sign reflects which group has more events relative to its numbers at risk. The weights may depend on event time and the preceding risk sets, but must not be chosen after seeing which group failed; otherwise this conditional-centering argument fails. Positive weights emphasize selected time regions without reversing an increment's direction. Such tests can have weak power against crossing hazards whose positive and negative contributions cancel.
Let , so . Its conditional null variance is . Since the unweighted hazard difference is , the conditional variance of its weighted contribution is . Successive centered contributions form martingale differences. Their variance contributions add, providing a variance standardization for the test.
With the specified log-rank weight, put . Then
Therefore the displayed sum is exactly the unstandardized log-rank statistic
Its two-sided large-sample log-rank test uses when and information is sufficient. If one group has no remaining subjects at some event time, its event contributes zero information. Use the final observed-minus-expected expression to define the contribution as zero; the original divided expression has an undefined and the log-rank weight becomes zero there. Thus strict positivity of the proposed weights implicitly restricts the comparison to event times when both groups are at risk. Independent censoring and a valid conditional common-hazard model are required throughout.
For individual , let count its observed event by time and let indicate membership of the risk set immediately before . Set and . Under a common hazard function and independent censoring, a currently at-risk subject has event probability in the next short interval. Summing over the current risk set gives the conditional intensity
Equivalently, the event count decomposes as
where is the mean-zero counting-process martingale obtained by subtracting its conditional compensator. Estimating the unknown hazard increment by the observed event increment divided by the risk set size gives the Nelson–Aalen estimator
Here are the distinct observed event times and includes the subject who is about to fail. A censored observation affects subsequent risk sets, but causes no event jump. This is the requested no-ties estimator; tied event counts would produce .
The derivation also identifies the estimation error:
Thus it estimates on the time range where individuals remain at risk. It is not exactly unbiased for the entire cumulative hazard after the last risk set disappears. Its usual Nelson–Aalen variance estimator is , since the compensator variance increment of the no-ties event process is .
Let be the risk set immediately before , conditional on the preceding history. Only its members can experience the next event. In a short interval , the conditional probability that subject fails is , whereas the probability of one event from the risk set is . Dividing and taking the small-interval limit gives
It is zero outside the risk set. The common baseline hazard cancels. This is the conditional event-label probability underlying the Cox partial likelihood. Conditioning at an exact continuous event time is understood by this limiting conditional-intensity argument, rather than as division by the zero unconditional probability of an event at a fixed time. We use the standard simple event process with no simultaneous events and independent censoring.
Average the covariate over its possible event subjects using the conditional probabilities from part (a). Define the risk-weighted sums
with . Then
This is the mean covariate of the next event subject, conditional on the current risk set and an event. It is generally not the unweighted average over the original sample. For it reduces to the unweighted current risk-set mean.
For the distinct observed event times , let and let be the risk set immediately before that event. The Cox partial likelihood is
The different risk sets already incorporate each event and any intervening censoring. Differentiating this log-likelihood gives
Therefore a finite interior maximum-likelihood estimate from the Cox partial likelihood satisfies the first-order condition
Moreover
Each summand is the conditional event-covariate variance, so the partial likelihood is log-concave. If some informative risk set has unequal covariates, the curvature is strictly negative and an existing finite root is the unique maximizer.
The finite-interior qualification is necessary. With two at-risk subjects having covariates zero and one, suppose the subject with covariate one is the sole observed event and the other is subsequently censored. Then increases strictly and has its supremum only as ; the score has no finite zero. If every event risk set has identical covariates, the coefficient is instead unidentifiable and the score is identically zero. The displayed fitted-score equation applies to the regular case in which the proportional-hazards estimate is finite.
Among subjects alive at any given time and with the same relevant covariates or observed history, those censored at that time have the same subsequent failure distribution as those who remain under observation. Equivalently, the observed risk set represents the failure hazard of comparable subjects still alive, rather than selectively retaining lower- or higher-risk subjects. This is a statement about their future conditional risk, not that the observed failure-time distribution among censored people equals the distribution among people who eventually fail: their different observation patterns make that comparison inappropriate.
Right censoring occurs when a subject's exact failure time is unobserved but it is known that , where is the censoring time. The observed pair is and . For example, a living participant at study closure contributes a survival lower bound rather than a recorded death at closure. Right censoring differs from simply omitting the subject: time spent in the risk set remains informative.
Let and . Since , the discrete hazard satisfies . Hence
Starting from and iterating, the survival function is
Under independent censoring, the risk set just before gives the binomial conditional failure likelihood , whose maximizer is . This gives the Kaplan–Meier estimator
Failures at exactly are included because the target is . Censored subjects contribute to earlier risk sets and leave before later ones; they do not create a failure factor. The usual convention includes a subject censored at a tied failure time in the risk set for that failure. Estimation beyond the last observed failure is limited by the available follow-up.
The last lung-cancer failure before five years is at 4.85, where the displayed net survival estimate is 0.392. The other-death net survival estimate remains 0.498 from 4.096 until 5.065. Thus the two supplied curves imply net five-year death estimates of for lung cancer and for other causes. Their sum is 1.110, already showing that they cannot be probabilities of two disjoint actual causes of death.
In competing risks, let and be the cause-specific hazards while alive, with cumulative hazards . Treating the other cause as censored estimates the net survival . The actual probability of death from cause by time is the cumulative incidence function
Since , the net probability generally overstates the cumulative incidence function: death from the other cause prevents a later death of cause . This discrepancy exists even for independent latent cause-specific failure times. Moreover, Kaplan–Meier estimates are not generally exactly unbiased in finite samples even for their proper target. The plotted complements are not unbiased estimators of , and are not even consistent for that target in general.
For the desired probabilities, use the Aalen–Johansen estimator , with all-cause survival and independent study censoring. Removing competing deaths from subsequent risk sets is correct for estimating cause-specific hazards; the error is interpreting the separate net survival complements as cumulative incidence functions. A hypothetical elimination-of-a-cause interpretation of net survival would require additional causal assumptions.