Baseline survival function 2026-10-14
In a proportional hazards model , the baseline survival function is , corresponding to the reference covariate vector . Integrating the hazard function gives . Estimated hazard ratios alone therefore do not determine absolute survival probabilities: the baseline hazard or baseline survival function must also be estimated.
Gamma frailty hazard ratio 2026-10-14
Let a frailty random variable have a gamma distribution with mean one and variance . Its shape and rate are both . For conditional hazard function , , averaging the conditional survivor function gives . Differentiating its logarithm yields the population hazard function and hence the displayed hazard ratio. Writing gives . Therefore the population hazard ratio moves monotonically from towards one as exposure increases, even though the individual conditional hazard ratio remains . The limit one requires for fixed positive , or for fixed positive ; it is not a consequence of elapsed time alone. This is survival selection through preferential removal of larger frailties.
Hazard multiplier Created 2026-10-05 Updated 2026-10-14
In a proportional hazards model , the hazard multiplier is the relative hazard against the reference multiplier one. In a Cox proportional-hazards model it is . Ratios of two time-constant multipliers give constant hazard ratios; time-dependent multipliers require a corresponding extension.
For , with unit exponential distribution and , the survivor functions are for . These are time-scaled Fréchet distributions, so they form an accelerated life family. However their hazard ratio is , tending to zero as and to one as . It is not constant. Thus a positive-scale assumption matters when deriving a proportional hazards family from the usual log-location-scale model.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 28 4 b Solution Created 2026-10-03 Updated 2026-10-14
These are separate data, so results from the randomized trial must not be carried over. First inspect the construction of the survival response: a command creating a survival time object must pair follow-up in months with an event indicator, whose death/censoring coding should be checked explicitly. A censoring time is not an observed death time. Stratified product-limit fits would then summarize Kaplan–Meier estimators for the dose groups before adjusted regression.
If the fitted command is a Cox proportional-hazards model with dose, sex and age, its specification isThere is no separate intercept estimate because an intercept is absorbed into the unspecified baseline hazard . With the stated coding, compares high-dose with low-dose death hazards at equal sex and age; compares female with male hazards at equal dose and age; is the hazard multiplier for a one-year age increase. A negative treatment coefficient would correspond to a lower fitted hazard under high dose. A hazard ratio is not a ratio of survival probabilities, nor directly a ratio of survival times. Under this model the survivor function is .
The coefficient standard errors, Wald ratios and exponentiated confidence intervals should be read together. The common large-sample interval for a coefficient's hazard ratio isGlobal likelihood-ratio, score and Wald tests assess the included slopes jointly; for exactly these three one-coefficient terms their reference degrees of freedom are three. They need not coincide in a small sample. The Cox partial likelihood uses the event risk sets; the fitted log-likelihood is not a full likelihood for an estimated baseline survival curve. The method for tied event times should be recorded.
Check the proportional hazards assumption using scaled Schoenfeld residuals and time trends; check the functional form of age, influential subjects and independent censoring. Dose-by-age or dose-by-sex interaction terms are scientifically possible but require enough information and a stated model comparison. Adjustment can alter a crude dose association, and the allocation mechanism here is not specified as randomized. No coefficients, confidence limits, significance results, exact fitted calls or diagnostics for this dataset are recoverable without the output sheet. The displayed model is an interpretation template, not a claim that it was the exact missing command.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 44 2 a Solution Created 2026-10-03 Updated 2026-10-14
In a frailty model, an individual's unobserved susceptibility to an event is represented by a nonnegative frailty random variable multiplying that individual's hazard function. Conditional on its value, subjects with the same measured covariates can therefore have different event rates. The frailty is a persistent latent characteristic of the individual, not newly sampled noise at each time.
Here the conditional hazard function is , with baseline hazard . A multiplier raises susceptibility and lowers it. Normalization fixes the frailty scale: without it, multiplying every frailty by a constant and dividing the baseline hazard by that constant would give the same individual hazards. The variance of measures unobserved heterogeneity. An atom at , if allowed, would give a permanently zero conditional hazard.
The hazard ratio between groups is for individuals compared at the same frailty. It need not equal the population hazard ratio, because survival selection changes the frailty distribution among those still alive or event-free.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 44 2 c Solution Created 2026-10-03 Updated 2026-10-14
For , a gamma distribution with unit mean and variance has shape and rate . Substituting its Laplace transform into the preceding result givesIts negative logarithmic derivative is the population hazard function:Consequently, at times with , the gamma frailty hazard ratio isAt a time when both hazards vanish this formula is a continuous extension; the literal ratio is undefined.
Write and . Two useful identities areFor small cumulative exposure , , so it starts at the conditional hazard ratio . If , it decreases towards one; if , it increases towards one; and if , it equals one throughout. It stays between and one and never crosses one.
For fixed , the late-time limit is one provided . If instead the integrated hazard tends to a finite value , the limiting hazard ratio is , which need not be one. Elapsed time alone does not imply unbounded exposure.
For small at a fixed time, . At the frailty degenerates to , giving an ordinary proportional hazards model. For large at a fixed time with , ; at time zero, however, it remains . Thus that variance limit is not uniform near zero. Larger heterogeneity accelerates the movement of the population hazard ratio towards one. The mechanism is survival selection: frailer individuals leave the population sooner, particularly in the higher-hazard group, while each individual's conditional multiplier remains fixed.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 41 5 b ii Solution 2026-10-14
Converting size to a regression factor allows two unrestricted contrasts rather than imposing a linear trend on numerical size codes. The command relevel with a numeric second argument selects the second existing factor level as its reference level. For sorted codes this is medium, coded . However, the displayed coefficient labels size1 and size3 instead correspond to codes with code as reference. The printed coding and coefficient labels are inconsistent. The actual factor levels and labels must be checked. Under the intended medium-size reference, the two reported contrasts compare small and large businesses with medium ones; with literal coding their printed names would be size0 and size2.
Using B's delayed-entry survival object, the Cox proportional-hazards model isHere is the unspecified baseline hazard for a medium-size village business and is the Cambridge indicator. The fitted hazard ratios are conditional on the other covariates and constant over business age under the proportional hazards assumption. The function fits regression coefficients through partial likelihood; its survival object must actually be B's version, rather than A's earlier object with the same name.
The location coefficient , with standard error , gives and a two-sided Wald test p-value about . Its reported hazard ratio is , with 95% confidence interval . At the same age and size, a Cambridge business therefore has an estimated closure hazard about 55.2% lower than a village business. The reciprocal ratio is . A hazard ratio is not a survival-probability ratio or a proportional increase in lifetime.
The intended small-versus-medium contrast is , with standard error , and p-value . Its hazard ratio is , with 95% confidence interval . The intended large-versus-medium contrast is , with standard error , and p-value ; its hazard ratio is , with interval . Neither size contrast provides convincing evidence of an effect. The wide intervals also show why these results do not establish equality of size-specific hazards.
The sample has businesses. The likelihood-ratio test, Wald test and score test jointly test all three coefficients being zero; their statistics are , and on three degrees of freedom, with p-values , and . None rejects at 5%. This is compatible with the significant one-coefficient location test: testing a specified one-dimensional contrast and testing three coefficients together are different questions. The location result offers some adjusted evidence, but the joint output does not demonstrate a strong overall improvement, and interpretation should acknowledge the uncertainty and the number of comparisons.
The reported is a Cox–Snell likelihood pseudo-R-squared, here . It measures likelihood improvement rather than a literal fraction of variance in lifetimes explained. Its attainable maximum is reported as . It does not validate the proportional hazards assumption or establish useful predictive performance. Adjusted survival predictions would require estimating the baseline survival function as well: . The coefficient summary alone does not supply adjusted five- or ten-year survival probabilities.
Before reporting results, check the size coding discrepancy, the precise sampling dates and the survival records. The stated January 2000–December 2005 span is six calendar years, despite being called five years. Check nonnegative ages, entry no later than exit, correctly recorded closure indicators and the same opening-based clock throughout. Establish whether inclusion and censoring are plausibly independent of lifetime given the covariates, and whether different opening cohorts or calendar environments can reasonably share the fitted lifetime model. Simply including delayed entry does not cure informative selection, omitted confounders or dependence between businesses.
Assess proportional hazards using Schoenfeld residuals against time and a proportional hazards assumption test, supplemented by groupwise log-minus-log survival plots. Investigate influential observations with coefficient-deletion diagnostics and deviance residuals, and inspect overall fit using Cox–Snell residuals. Consider a city-by-size interaction or time-varying effects if supported by the available events, rather than relying on the displayed three main effects. Finally, report the uncertainty and declining late risk sets—only six remain at the final listed event—and distinguish a conditional association from a causal explanation or a prediction for all future businesses.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 46 3 a Solution Created 2026-10-03 Updated 2026-10-14
For a continuous survival distribution, , and . Applying these identities gives the Weibull distributionThe survivor function has value one at zero; the hazard may diverge there when , which does not invalidate the distribution.
For common shape , the hazard ratio is , independent of time. Thus the two distributions lie in the same proportional hazards family. They also satisfyHence the time multiplier is and the hazard multiplier is , establishing the common accelerated life family as well. Here is reciprocal scale, not the ordinary time-scale parameter.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 46 5 a Solution Created 2026-10-03 Updated 2026-10-14
The Cox proportional-hazards model specifieswhere is an unspecified common baseline hazard and is the individual's covariate vector. The hazard ratio for two fixed covariate vectors is , constant in time. Assume independent subjects and independent censoring conditional on their covariates, and use the question's absence of tied events.
Let be an event time, its failing subject, and the risk set immediately before that time. In a short interval of length , the conditional probability that subject fails, given one failure among those at risk, isThe baseline hazard cancels. Multiplying the successive conditional event-identity factors gives the Cox partial likelihood for :This is a partial likelihood, not the full survival likelihood for the unspecified . Risk sets evolve with the observed history; the derivation uses their successive conditional hazards, rather than assuming the risk sets themselves are independent.
Define and . For component ,Differentiating again givesThus the score and information of Cox partial likelihood are the sum of event-minus-risk-mean contrasts and the sum of risk-weighted covariance matrices, respectively. The Hessian is negative semidefinite; the likelihood is concave, with strict identifiability requiring variation in the relevant risk-set covariates.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 46 5 c Solution Created 2026-10-03 Updated 2026-10-14
Under proportional hazards, each coefficient is constant over event time. Examine the Schoenfeld residuals, preferably scaled Schoenfeld residuals, against time or a prespecified transformation such as log time, ranks or a fitted survival-time transformation. Plot a smooth trend and its uncertainty for each covariate. Under the working model there should be no systematic residual-time association; a persistent trend suggests a time-varying coefficient. In a coefficient-scale plot that adds to the scaled residuals, the null trend is horizontal at the fitted coefficient.
A formal proportional hazards assumption test can add a time interaction, for example , and test using a score test with information adjusted for the fitted constant coefficients. The score contributions involve the Schoenfeld functions weighted by . One can test each covariate and use a joint global test for a vector of time-interaction coefficients. Such an association would be possible despite the unweighted residual sum being zero, so that fitted identity does not establish proportional hazards.
A systematic nonhorizontal coefficient trend or significant residual-time association is evidence against a constant hazard ratio. Failure to reject is compatible with the assumption, not proof of it. These diagnostics target the proportionality restriction; they do not by themselves verify covariate functional form or independence of the censoring mechanism.