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.
A standard sufficient non-informative censoring assumption is independent censoring: and are independent, or conditionally independent given the covariates used in the analysis. Their distributions need not be equal, have the same shape, or have proportional hazards. In a likelihood analysis the censoring distribution should also carry no information about the survival parameters being estimated, allowing its factor to be omitted. In the more general risk-set formulation, the censoring history must not alter the subsequent failure hazard conditional on the observed history used by the model. Informative censoring can arise if worsening unrecorded health causes withdrawal.
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.
A nonzero contribution occurs when a failure, rather than a censoring, is the earlier observation while both members remain at risk. By the paired log-rank reduction to a sign test, the two possible contributions are for an earlier A failure and for an earlier B failure. Under the exchangeable null and the usual independent censoring assumptions they are equally likely, conditional on being informative. Hence
Once the first member leaves the risk set, the second member's later observation adds no group-comparison information within this stratum.
At each event time within a stratum, let be the group risk sets and let be the total number of observed failures. Under the null of equal hazard functions, the expected A count is . The log-rank statistic adds observed minus expected A counts over event times; the stratified log-rank statistic first makes these comparisons within each patient stratum, then adds across patients. Let be the sum of the corresponding null conditional variances. The standardized statistic has an approximate standard normal distribution under the null, and its square has an approximate one-degree-of-freedom chi-squared distribution. Compare it with the appropriate quantile for a two-sided test, under the usual independent censoring and exchangeability assumptions.
Assume independent censoring: the censoring mechanism contributes no factor involving the lifetime rate . The exponential density and survival function are and . An observed event contributes the density; a right-censored lifetime contributes the probability of surviving its censoring time. Thus the likelihood for , up to censoring factors independent of it, is
For and , vanishes at , and proves the maximum:
Censored individuals add follow-up time to the denominator but no event to the numerator. If and , the likelihood decreases for and has only a supremum as ; zero is an extended boundary estimate, not a positive-rate exponential MLE. The derivation is for independent individuals entering at time zero; delayed entry would require conditional survival contributions and exposure measured from entry.
Let be age in years, the male indicator and the indicator for the Messiah group. The fitted Cox proportional-hazards model is
with an unspecified common baseline hazard. Its coefficients were estimated by Cox partial likelihood, using the Breslow approximation for tied event times. There are participants, recorded completions and four censored observations.
A higher hazard function means a greater instantaneous chance of completion among those not yet completing, so it describes faster completion rather than greater mortality. Holding gender and group fixed, an extra year of age multiplies the completion hazard by , about a increase. The 95% confidence interval is and the Wald test has , so there is little evidence of an age association.
Holding age and group fixed, male participants have a hazard ratio relative to female participants, about a lower completion hazard. Its 95% confidence interval is and . Under the fitted model this corresponds to slower completion for males. It is not a ratio of mean or median completion times.
Holding age and gender fixed, participants assigned to Messiah have a hazard ratio relative to The Kingdom, with 95% confidence interval and . This is strong evidence of a group difference, with faster completion in the Messiah group under the fitted model. Random assignment supports interpreting a group contrast as an effect of the assigned condition, subject to the assumptions about follow-up and censoring; age and gender contrasts remain observational associations.
Each printed statistic is the coefficient divided by its standard error, using an asymptotic standard normal sampling distribution under a zero-coefficient null hypothesis. The hazard ratio is , and its confidence limits exponentiate the coefficient limits. Proportional hazards assumes these covariate-specific hazard multipliers stay constant over follow-up, together with the specified linear age effect and independent censoring conditional on covariates.
The Kaplan–Meier estimator is , with event count and risk set size . Its median is the first event time with estimated survival at most . Since and , the estimated median completion time is minutes.
The original last event exhausts the final risk set, so the fitted survival function drops to zero at and its conventional full area is finite. Integrate the right-continuous step function: its height is one before time one, and after each event the height is the newly computed survival value. There are three-minute gaps from to and from to . Thus
Using the exact risk-set products rather than rounded printed survival values gives . This is not the sample mean of the observed event-or-censoring times; right censoring changes the estimated survival weights.
If the final observation at is instead censored, every earlier Kaplan–Meier estimator value is unchanged and no event factor is inserted at . The median remains minutes, but the curve stays at at the end of follow-up. By terminal censoring and survival-mean identifiability, a full unrestricted mean is no longer determined nonparametrically by these observations. Extending the final positive step forever would give an infinite integral, but that plotting convention does not establish an infinite population mean. Extra assumptions about the unobserved tail would be needed for a finite full-mean estimate.
The restricted mean survival time through is still minutes in either version: the two curves differ only at or after the endpoint, which does not affect the area up to it. All these interpretations require independent censoring. Giving up may be related to how long a person would have taken to finish, so that assumption needs scientific justification in this study.
An exact observed event contributes its event-time density:
For exponential-rate estimation from censored exposure, the event-model survival likelihood under independent censoring is . For the exponential distribution, put and . Then
If and , vanishes at
The second derivative is strictly negative, so this is the unique global maximum-likelihood estimate. The likelihood also tends to zero at both ends of the positive parameter range. If and , the likelihood decreases on ; its supremum is at , with no attained positive estimate. Thus every censored time belongs in the exposure denominator.
Under independent censoring, observation of an event-free individual to contributes the survival probability
Here denotes the survivor function as in the paper, rather than a cumulative distribution function. The censoring distribution contributes an additional factor to the full observed-data likelihood, but if it has distinct parameters and the required independence holds, that factor can be omitted when estimating the event-time parameters. A censored observation still conveys that the event time exceeded .
is the number in group still observed and event-free immediately before event time : its group-specific risk set size. Set . Under the common hazard function and conditional on exactly one event at that time, each at-risk individual has the same infinitesimal event probability. Therefore
The indicator records whether the event came from group 1, while is its conditional expectation under equal hazards. Thus is the observed-minus-expected group-1 event count at that time. Under the null these are martingale differences, with conditional variance
The log-rank statistic has null mean zero. Its predictable variance estimate is , so the equal-hazards test uses
Use a two-sided large-sample log-rank test if no direction was prespecified; and adequate information are needed. The variance is the no-ties form. A positive indicates more group-1 events than expected. Independent censoring conditional on the model is required for these at-risk event intensities to describe the data.
Under the proportional hazards model, the total instantaneous group- rate is . Conditioning on the next event cancels the baseline hazard, giving
Keep defined using its null probability , as in the question. Its conditional expectation under the alternative is
It is zero at , as required, and has the sign of when both groups remain at risk. Replacing inside the definition of with the alternative probability would give a different residual, whose mean would instead be zero under that alternative.
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.
A right-censored subject contributes survival up to the recorded censoring time, not no information. Under independent censoring, write and . For exponential death rate , the event-model survival likelihood is
Discarding censored subjects drops observed exposure and selects people whose death occurred before censoring. Their recorded event times are not an unselected sample of all death times. The death-only conditional distribution can differ from the marginal death-time distribution even when censoring is independent. A correct maximum-likelihood estimate uses the total observed person-time, including censored follow-up.
Throughout the survival questions, use the paper's notation for the survivor function, not for a cumulative distribution function. To construct the Kaplan–Meier estimator, sort the distinct observed event times . Let be the size of the risk set immediately before , and the number of events at that time. The estimated conditional chance of surviving that event time is . Multiplying these conditional probabilities gives
A right censoring time reduces later risk sets but causes no jump itself. The usual interpretation as a population survivor function uses independent censoring.
The transformed event time is unit exponential, and the transformed censoring time remains a censoring time because is increasing. Under independent censoring and a correctly fitted model, the Kaplan–Meier estimator of the survivor function for the Cox–Snell residuals should approximate .
Thus a logarithmic survivor plot should follow a straight line through the origin with slope minus one:
The empirical plot is a step function around that line. Systematic curvature suggests model misspecification; the late part is less stable when the risk set is small. The retained event indicators must be used rather than treating censored residuals as complete event times.
Put and , so and . Its expectation is not generally one and depends on censoring. Under independent censoring, condition on : the exponential distribution gives
Writing for the observed event indicator, it follows that . The exponential mean imputation under independent censoring therefore gives a modified Cox–Snell residual with known mean:
On censoring, the added one is the expected remaining transformed lifetime, by memorylessness of the exponential distribution. This gives a mean-one variable, not necessarily another exponential variable. Equivalently, is a martingale residual with mean zero. Independent censoring, or its appropriate conditional version, is essential for these identities; arbitrary informative censoring does not justify the correction.
Fit a model using the relevant covariates, calculate , and plot these martingale residuals against a candidate explanatory variable or against an included variable's value. A smooth systematic trend away from zero can indicate an omitted effect or an unsuitable functional form, such as a nonlinear age effect. After fitting an appropriate effect, the residual trend should diminish. The equivalent plot of has mean-one reference rather than zero.
This is administrative censoring. Under the usual assumption that entry calendar time is independent of the subsequent event time, it is an example of independent censoring, not informative censoring: the planned study closure, rather than a patient's prognosis, determines the available follow-up. Uniform entry by itself does not prove that assumption; if entry date is associated with prognosis, independence must instead be justified conditionally on the relevant covariates. The calculations below use independence.