Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 33 5 b ii Solution Created 2026-10-03 Updated 2026-10-06
Let be age in years, the male indicator and the indicator for the Messiah group. The fitted Cox proportional-hazards model iswith 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.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 35 5 Solution Created 2026-10-03 Updated 2026-10-07
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. ThereforeThe 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 varianceThe log-rank statistic has null mean zero. Its predictable variance estimate is , so the equal-hazards test usesUse 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, givingKeep defined using its null probability , as in the question. Its conditional expectation under the alternative isIt 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.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 35 6 1 Solution Created 2026-10-03 Updated 2026-10-06
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 givesThe 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.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 35 7 1 Solution Created 2026-10-03 Updated 2026-10-06
Let be the first event time and its type. The cause-specific hazard for A isIt is a rate among people free of both event types, not the marginal probability of eventually experiencing A. Under the given independent latent event times, their constant hazard functions give exponential survivor functions. Therefore the first-event survivor isThe combined first-event rate is . Subsequent formulas concerning conditioning on type A require .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 207 3 a Solution Created 2026-10-03 Updated 2026-10-14
In the SIR model, count susceptible, infectious, and recovered immune individuals. The closed population has . Under homogeneous mixing, use the paper's mass-action infection convention: each susceptible has infection hazard function , so the population infection rate is . Each infectious individual recovers with hazard function , giving population recovery rate and mean infectious duration .
The arrows are one-way: recovered individuals are immune, and there are no demographic entries or exits. The transition intensities attached to the arrows are population flow rates, rather than individual hazard functions.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 207 6 a Solution Created 2026-10-03 Updated 2026-10-06
For a nonnegative continuous event time , the survivor function is , and its probability density function isThe hazard function is the instantaneous event rate conditional on being event-free at that time:If the event is certain to occur in finite time, the density is proper: , so . Since and , the cumulative hazard function is . Therefore a certain eventual event requires unbounded integrated hazard:If the lifetime has a finite upper endpoint, the same divergence occurs as that endpoint is approached, and is interpreted as infinite beyond it.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 207 6 b i Solution Created 2026-10-03 Updated 2026-10-06
For administrative censoring with uniform entry, let entry time . Then has the uniform distribution on , where , , and . Its density and survivor function areDividing density by survival and integrating gives the censoring hazard and integrated hazard:The hazard function is undefined once no uncensored individuals remain. As , it diverges like and the cumulative hazard function diverges logarithmically. This reflects the certainty of administrative censoring by the longest possible follow-up time, not dependence of censoring on the event process.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 207 7 a Solution Created 2026-10-03 Updated 2026-10-06
Choose an individual uniformly from the population. The law of total probability gives the population density and survivor function as mixtures:A hazard function is a ratio of density to survival, so averaging the densities does not average those ratios. Instead,These are the proportions of the original individual types among those still event-free at , rather than their equal starting proportions. For example, a mixture of different exponential distributions progressively favours the lower-rate individuals. This population hazard of a survival mixture generally differs from .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 207 7 b iv Solution Created 2026-10-03 Updated 2026-10-06
Apply the tower property of conditional expectation to the intensity equation. Since is a specified individual hazard function,As in the conditional equation, this describes the first-order expected increment of the observed counting process.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 207 5 a Solution Created 2026-10-03 Updated 2026-10-05
A proportional hazards model assigns individual the hazard function , where is the baseline hazard for multiplier one and is a time-constant hazard multiplier. In a Cox proportional-hazards model, for a covariate vector and coefficient vector ; ratios are constant whenever the baseline is nonzero.
Assume independent individuals, independent censoring conditional on the covariates, and no tied events. Immediately before an event at , condition on its observed risk set and one event in a small time interval. The individual event probability is , while the total is . Their limiting ratio is . Multiplication over observed events gives the Cox partial likelihoodThe unspecified baseline hazard cancels. This is the usual successive conditional event contribution defining the partial likelihood, not the full event-time likelihood conditioned simultaneously on all event times.
For the four individuals the successive event risk sets are , and . Individual leaves at its right censoring time and contributes no event numerator. ConsequentlyThe last event contributes one and carries no further relative-risk information.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 207 6 a Solution Created 2026-10-03 Updated 2026-10-05
In a competing risks model, the first event has time and type ; observing one type prevents another type from being the first event for that individual. Its cause-specific hazard isFor absolutely continuous event times the total hazard function is , giving the event-free survivor function . Since an event of type near has unconditional density , its cumulative incidence function satisfiesThis cause-specific hazard to cumulative incidence formula does not require independent latent times for the competing causes. In general is not , since that expression ignores removal by other causes.
Put , and , with . HereIntegrating separately before and after gives, for ,After , only type can occur, so the second term is the fraction event-free at multiplied by their subsequent event probability. The expressions agree at . If , both incidence functions are identically zero; if , this formula gives .
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 207 7 a Solution Created 2026-10-03 Updated 2026-10-05
A frailty model represents unobserved heterogeneity using a nonnegative frailty random variable that multiplies an individual's baseline hazard. With , the individual and population survivor functions areThus the population survivor function is the Laplace transform of the frailty distribution at ; at points where differentiation is justified, . The last identity follows by differentiating the integral and dividing by .
Here for , , and . Direct integration givesThis is population hazard under exponential frailty. For every fixed the individual hazard function increases linearly. In contrast,so the population hazard increases up to , then decreases, tending to zero like . More vulnerable individuals leave the risk set earlier, leaving survivors with smaller frailties. This population decline is selection, not a decline in any fixed individual's hazard. If , survival is identically one and both hazards vanish; the positive-rate comparison is then inapplicable.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 207 7 c Solution Created 2026-10-03 Updated 2026-10-05
Let population 1 have baseline and population 2 baseline , with and , and identical unit-rate exponential frailty distributions initially. Their population hazard functions have ratio, for ,At exactly , both population hazards are zero, so their literal ratio is and is undefined. The intended initial comparison is the right-hand limit,With , , so the marginal hazard ratio decreases from toward one. The faster-hazard population loses highly frail individuals sooner; its survivors become less frail than the first population's survivors.
Conditional on the same fixed frailty , the individual hazard ratio is the constant . Marginalizing over frailty therefore destroys proportional hazards, even though they hold at the individual level. A population-level Cox proportional-hazards model that ignores frailty would impose an incorrect constant hazard ratio here. Convergence of the ratio to one does not mean identical survival: .
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 207 5 a Solution Created 2026-10-03 Updated 2026-10-05
Define the event counting process and at-risk process byUnder 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 isOnly 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.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 207 5 b vi Solution Created 2026-10-03 Updated 2026-10-05
Fit the Cox proportional-hazards model with the other explanatory variables, initially omitting the variable whose form is being assessed, and plot the resulting martingale residuals against . Add a smooth trend, for example using a cubic spline or a local smoother. A systematic pattern indicates that affects the hazard function; the shape helps suggest a linear term, a transformation, or a nonlinear spline term in the log hazard.
Refit with the proposed form and inspect martingale residuals against again. Under an adequate functional form, their conditional mean should have no systematic trend, allowing for model fitting and the other covariates. Compare plausible alternative forms using the partial likelihood and suitable model checks.
Use the smoothed pattern to assess the covariate's functional form, rather than treating these residuals as normal regression errors. Martingale residuals are asymmetric, bounded above by 1, and can be arbitrarily negative; the raw residual plot can therefore be misleading without smoothing. This diagnostic concerns the covariate form, and does not by itself test the proportional hazards assumption.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 207 5 b v Solution Created 2026-10-03 Updated 2026-10-05
In the martingale residual is the observed event count up to the end of the individual's follow-up: 1 for a recorded event and 0 for right censoring. The second term is the fitted counting-process compensator, obtained by integrating that individual's fitted hazard function while they remain at risk:Thus the residual is observed events minus the fitted cumulative event intensity over follow-up. The fitted intensity is not an event probability and can exceed 1. Positive values indicate more events than predicted over that observed exposure; negative values indicate fewer. A right-censored individual has a nonpositive residual. With true model parameters and independent censoring, the underlying observed-minus-compensator process is a martingale; fitted terminal residuals are not independent identically distributed errors.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 210 3 Solution Created 2026-10-03 Updated 2026-10-05
For independent and identically distributed random variables with distribution function , let be the sample maximum. In extreme value theory, belongs to the maximum domain of attraction of a nondegenerate distribution function when there exist and such thatat every continuity point of . Thus the normalized sample maxima have convergence in distribution to .
A positive measurable function has regular variation at infinity with index , written , ifThe case defines a slowly varying function; equivalently a regularly varying function is with a slowly varying function.
Write for the survival function and for the right endpoint of a distribution. For , use the following standard extreme value theory normalization conventions:They are respectively the Fréchet distribution, the negative Weibull distribution, and the Gumbel distribution for maxima. The negative Weibull distribution is supported to the left of its finite endpoint; it is not the usual positive Weibull distribution.
The necessary and sufficient maximum domain of attraction criteria are:
- For the Fréchet distribution,Equivalently for every .
- For the negative Weibull distribution,Equivalently as , for every .
- For the Gumbel distribution,Here is a Gumbel auxiliary function, and can be finite or infinite. For each fixed , the shifted argument lies below eventually. This exponential tail-ratio condition, rather than regular variation with a fixed finite index, characterizes this case.
For the corresponding sufficient hazard function conditions, assume is absolutely continuous near , its survival function tends to zero there, and its probability density function is positive there. Write . The Von Mises conditions for extreme values giveThe last condition additionally assumes that the reciprocal hazard function is continuously differentiable near the endpoint. It concerns the derivative of the reciprocal hazard function, not the derivative of the hazard function itself. Equivalently, when is differentiable, it is .
To see the connection, taking an integral of the hazard function givesThe first two limits make the logarithmic tail ratios over multiplicative or endpoint-distance intervals tend to or , giving the required regular variation. For the Gumbel distribution, set . The derivative condition makes uniformly on bounded -intervals, soThe endpoint assumptions ensure these shifts are admissible: at an infinite endpoint , and at a finite endpoint . These are sufficient smooth-tail conditions; the tail-ratio characterizations above are necessary and sufficient without differentiability assumptions. For a source using the same reciprocal-hazard convention, see Smith and Weissman's university lecture notes, equations (2.18)–(2.24).
For the Gamma distribution with integer shape and rate one, let . The base case is , and integration by parts givesInduction provesThis survival function has the asymptotic form ; for the relation is exact. Put . For every fixed real , and . The proposed centering satisfiessoOnly the highest-degree term contributes to the limit, with the same reasoning covering . The Taylor expansion now givesbecause . Therefore the Gumbel limit for gamma maxima isEquivalently, has convergence in distribution to the standard Gumbel distribution, with scale .
