Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 46 5 b Solution Created 2026-10-03 Updated 2026-10-14
At event time , the vector Schoenfeld residual iswhere is the fitted partial-likelihood coefficient. It compares the covariate of the person who actually failed with the covariate mean predicted for the failing person, using the fitted hazard weights over the risk set. Under the model at the true coefficient, the conditional expected failing covariate is precisely that weighted mean, so the corresponding Schoenfeld function is conditionally centered at zero. Residuals are defined at observed events, not at censoring times.
The score equation from part (a) is exactlyAt a finite interior unpenalized maximum, , soThis is the intended fitted-residual identity. For an arbitrary trial coefficient it is a score, not generally zero; a single event with covariates zero and one in its risk set can have Schoenfeld function at . Penalized estimates or a boundary maximum also need their own score conditions rather than this unqualified zero-sum assertion.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 34 5 c Solution Created 2026-10-03 Updated 2026-10-14
The difference is the observed event subject's covariate minus its conditional expected value under the working coefficient. It is the Schoenfeld function; at a fitted coefficient it becomes a Schoenfeld residual. If the conditional event-label distribution is generated by coefficient , part (b) givesHence its unconditional expectation is zero whenever it is integrable. Centering is at the true coefficient: data generated under do not generally make mean zero at an arbitrary trial value .
The same quantity is the score function of one conditional event factor, sinceThis connects its conditional centering to the usual zero-mean likelihood-score identity.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 32 6 a Solution Created 2026-10-03 Updated 2026-10-06
Conditional on an event and the immediately preceding history, probabilities are proportional to the three instantaneous hazards. Put . The two zero-covariate subjects each have weight one, and the one-covariate subject has weight . The common baseline hazard cancels. ThusEach individual with zero covariate has probability ; the first boxed probability is their combined probability. Conditioning on an event at a specified continuous time can be understood by the limiting conditional event probabilities in a short interval.
The hazard-weighted covariate mean is , so the Schoenfeld function at the true coefficient isMultiplying by the two conditional probabilities givesThis verifies the score-centering property directly for this risk set.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 32 6 Solution 2026-10-06
For an event at from subject , with covariate vector , define the Schoenfeld functionThe second term is the hazard-weighted mean covariate in the risk set just before the event. The Schoenfeld residual is this function evaluated at the fitted coefficient, . Calculate one residual vector per event, using every at-risk subject, including those who will subsequently be censored. There is no ordinary event residual assigned at a right censoring time.
The Cox partial likelihood score function is . At the true constant coefficient in a Cox proportional-hazards model, the conditional event subject is selected with weights proportional to , so each Schoenfeld function has conditional mean zero. If the coefficient varies with time, that centering changes. Plot residuals against event time or a transformation of it, smooth them, and investigate departures from zero. Scaled Schoenfeld residuals account for the risk-set covariate variance and can display departures in coefficient units; score function tests based on residual-time association provide a formal check. Risk-set composition affects unscaled residual variance, and the total residual score function can be zero by fitting even when a time trend is present.
If the risk set has two subjects with covariate zero and one with covariate one, its hazard-weighted mean is . A zero-covariate event has Schoenfeld function , while a one-covariate event has function . At the true coefficient their probabilities are and , so the conditional expected function is zero.
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.