Choose the potential right-censoring times to include every observed right censoring time up to , and also the endpoints 0 and . Then no individual is censored strictly inside . Use an explicit endpoint convention: let count individuals still event-free after any events at , but before censoring at . If events occur in , the number at the beginning of that interval, after censoring at its left endpoint, is .
The no-censoring interval estimate from the preceding parts is therefore . The possible event mass at zero contributes . Multiplying yields
For a continuous event-time distribution, normally . Within interval , put and let its successive event counts be . Its Kaplan–Meier estimator factors telescope:
The same calculation at zero proves
The paper's phrase “at risk at ” does not specify its side of an event at that endpoint. If it denotes the conventional pre-event risk set size instead, and events occur exactly at , substitute . The interval factor is then ; at zero it is . This keeps the events-before-censoring convention consistent. After an empty risk set, stop the product; if the fitted survival has reached zero, retain zero rather than creating a factor.
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.
Within the risk set , the Cox proportional-hazards model makes the conditional failure probabilities proportional to . Thus
The score function sums observed minus expected covariates at event times. At a finite interior maximum of the Cox partial likelihood,
The balance holds in aggregate, not separately at every event. The log partial likelihood is concave because
When there is informative covariate variation in the risk sets, this gives a unique finite solution if it exists. A completely separated event pattern can instead have its maximum only as ; the question's finite implicitly excludes that case.
Taking logarithms of the Cox partial likelihood gives
Differentiate each term, using the chain rule for the logarithm:
This score function is the sum over failures of the observed covariate minus its current risk-weighted mean. Define that mean as ; observations with have no direct event term, although they occur in the relevant risk sets.
Let be the risk set at an observed event time . In the Cox proportional-hazards model, conditional on one member of this set failing then and on the preceding history, the probability that it is individual is
The baseline hazard cancels. Multiplying these conditional contributions gives the Cox partial likelihood
The no-ties assumption avoids the need for a tied-event approximation. This construction assumes independent censoring conditional on the modelled covariates. The printed phrase calling a scalar parameter is read as a scalar observed covariate ; is the unknown regression parameter.
Insert the Breslow estimator into the fitted cumulative intensities and interchange the finite sums:
Every observed event contributes exactly one after summing its fitted contribution over its risk set. Therefore
This identity is algebraic and holds for any finite coefficient used consistently in the relative hazards and the Breslow estimator; it does not require the score equation to be solved exactly. It can fail if the baseline hazard is estimated or smoothed by a different procedure.
A proportional hazards model has , with a time-independent hazard ratio. In the Cox proportional-hazards model, and the baseline hazard is unspecified. At each untied event time, conditioning on the identity of the person who fails given the current risk set produces the factor
Multiplying these factors gives the Cox partial likelihood. It is called partial because it uses the conditional event ordering information that identifies while discarding the part of the full likelihood involving the unspecified baseline hazard.
At each distinct event time , let events occur among people in the risk set. The Kaplan–Meier estimator is
censorings remove people from later risk sets but create no factor.
Left truncation, or delayed entry, means that an individual is observed only after surviving to an entry time. A registry assembled from patients alive when a clinic opens is a practical example. Adapt Kaplan–Meier by admitting each person to the risk set only at their entry time.
Period survival analysis is useful when recent prognosis is desired but complete long-term follow-up of a recent diagnosis cohort is unavailable. For a chosen calendar year, intersect every patient's observed follow-up with that year. Express the surviving pieces on the time-since-diagnosis scale, treat the beginning of the calendar window as delayed entry and its end as right censoring, and apply Kaplan–Meier with those entry and exit times.
The expected Treatment A deaths are at month 1, at month 2, and at the three tied deaths at month 5. Thus
This is not half of the five deaths because right censoring changes the treatment proportions in successive risk sets. For Treatment B, and . One observed-to-expected relative-risk estimate is therefore
At event time , let be the two risk set sizes, , and let be the event counts with . Under the null hypothesis of equal hazards, conditioning on the risk set and total number of events gives a hypergeometric distribution, so
and
The log-rank statistic and its estimated null variance are
Under the null, is asymptotically standard normal, or is asymptotically chi-squared with one degree of freedom.
The risk set at contains every individual still under observation and event-free immediately before . Since the observed times are strictly ordered increasingly, these are individuals , so its size is
At month 36, patients F and D are censored at treatment durations 21 and 25, after which patient A is the sole remaining member of the risk set and dies at duration 26. The corresponding Kaplan–Meier factor is , so
without needing the earlier factors.
At month 48, D remains at risk past duration 26 and is eventually censored at 37, so no event empties the risk set. Part ii gives
Under the null hypothesis of equal event-time distributions, every member of the combined risk set has the same instantaneous chance of being the next event. Conditional on one event at and on the two risk-set sizes,
so
The risk set at event time contains individuals still under observation and event-free immediately before . For group its size is
The use of keeps the individual who experiences the event at in the risk set just before that event.
The variance of an estimated hazard increment is large when its group has few individuals in the risk set. The log-rank weights are near zero when either or is small and are largest when both groups retain substantial information. They therefore suppress noisy late-event comparisons and weight each observed-minus-expected event by its available information. Unit weights would instead give equal influence to unstable increments from depleted risk sets.
Let
and let be the common partial likelihood contribution from the first observations. Since , the three possible complete-data tail orderings and their partial likelihoods are
Their sum is
When individual is right-censored at , that individual leaves the risk set before the event at , so the directly calculated Cox partial likelihood is also . Summing over the unobserved compatible event orderings therefore reproduces the censored-data partial likelihood.