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.
In a proportional hazards model, individual has
The exponential term is the hazard multiplier relative to the baseline hazard . With unspecified, the Cox partial likelihood multiplies, over event times, the failing subject's multiplier divided by the sum of multipliers in the current risk set. After estimating , the Breslow estimator is
A Stratified Cox model uses a separate baseline hazard for each stratum but a common . Its partial likelihood is the product of within-stratum partial likelihoods, and a separate integrated baseline hazard is estimated in each stratum.
In a matched pair, the only informative comparison occurs while both members remain at risk. If the exposed member fails first, the pair contributes ; if the unexposed member fails first, it contributes . A censoring as the first recorded time gives no informative failure comparison, and any later one-person risk set contributes one. With only two observations per stratum, each stratum supplies almost no information about its arbitrary baseline hazard, so a useful common integrated baseline-hazard estimate is generally unavailable.
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.
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.
For each observed event with , let be its risk set. The Cox partial likelihood is
Maximize it to obtain , estimate its variance from the observed partial information, and test using a partial likelihood-ratio test, Wald test, or score test. A positive fitted coefficient means the group with has the larger hazard.
A semiparametric proportional hazards model specifies
with finite-dimensional parameter but an unspecified baseline hazard . A partial likelihood uses a component of the data likelihood that depends on while eliminating the nuisance function. In the Cox proportional-hazards model, conditioning on which member of each risk set experiences the event produces the Cox partial likelihood.
The Cox proportional-hazards model is
where is an unspecified baseline hazard and indicates treatment. With no tied events, the Cox partial likelihood is
Equality of the two hazard functions is , testable with a likelihood-ratio, score, or Wald test from this likelihood.
Schoenfeld function Created 2026-10-06 Updated 2026-10-14
At a distinct event time, the Schoenfeld function is the event subject's covariate minus the hazard-weighted covariate mean over the risk set, as a function of a trial coefficient . Its evaluation at the fitted coefficient is a Schoenfeld residual. The sum of these functions is the Cox partial likelihood score function, and each is conditionally centered at zero at the true proportional-hazards coefficient.
At an untied event time, the Cox partial likelihood weights the current risk set by . Differentiation gives the displayed score function and the negative Hessian as a sum of weighted covariances. The score is the sum of Schoenfeld functions, so Schoenfeld residuals sum to zero at a finite interior unpenalized fit. At arbitrary trial coefficients or boundary fits, a zero sum is not a general identity.
In an untied Cox proportional-hazards model with a single subject remaining after all other observed exit times, that subject's event contributes the constant factor one to Cox partial likelihood. Replacing its terminal censoring time by a later event therefore preserves the fitted coefficients and every earlier Breslow estimator increment. At its new event, the subject's fitted cumulative hazard increases by one, cancelling the increase of one in its event indicator. Every martingale residual is unchanged. This property relies on the subject being alone in the terminal risk set and the same covariate history being retained.