Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 4 c Solution Created 2026-10-03 Updated 2026-10-07
A Poisson model assumes independent counts between rats conditional on time, a common mean at a given time, and conditional variance equal to that mean. Comparable observation units and consistent counting are needed; unexplained rat-to-rat heterogeneity is excluded by this simple specification. The quadratic Poisson regression isThe printed nested analysis of deviance tests against . Its likelihood-ratio statistic is , approximately under the null hypothesis and regular Poisson asymptotics. The reported gives borderline rejection of the log-linear time effect at 5%, conditional on the Poisson assumptions. This is curvature of the log mean, rather than an ordinary quadratic model for the count itself.
There are only three distinct time values, so the intercept, linear term, and quadratic term span every possible set of three log means. This is Poisson mean saturation at three distinct times: the quadratic fit is saturated for the time-group means, which are , , and . A grouped deviance comparison against unrestricted time-group means has zero statistical degrees of freedom: the quadratic functional form cannot be tested at these three times. The individual-observation deviance 24.515 still describes within-group departure from the Poisson distribution, but small means and zeros make the naive goodness-of-fit calibration doubtful. Poisson variation itself can be checked using the replicates, preferably by a parametric bootstrap; it is not rendered untestable by the saturated mean specification.
Overdispersion means conditional variance exceeding the variance assumed by the Poisson mean model. For example, rats may have different latent susceptibility, so if , the law of total variance gives . A quasi-Poisson model instead uses . The Pearson-residual dispersion estimate is , using .
For the conventional quasi-likelihood comparison with estimated dispersion, useIts upper-tail probability is about 0.096, so the evidence for curvature no longer reaches 5%. The F-distribution is an approximate calibration, not an exact small-sample result for arbitrary overdispersed counts; quasi-likelihood does not supply a full Poisson likelihood. With known dispersion one would instead compare approximately with . The displayed dispersion code uses the undefined name
acf.glm2; its fitted values must be those of aom.glm2 for the stated calculation.Among patients still alive at the same time after surgery, chemotherapy has an estimated lung-cancer death rate 3.71 times that of radiotherapy, assuming proportional cause-specific hazards. The estimated 95% confidence interval for this hazard ratio is . Thus the fit suggests a higher instantaneous lung-cancer death rate on chemotherapy, with appreciable uncertainty in its size.
The null hypothesis of no treatment effect on that hazard is against . Its Wald test uses , approximately standard normal under the null hypothesis, with two-sided . This is evidence against equal lung-cancer death hazards in the fitted model. It is not a statement that five-year lung-cancer death probability is multiplied by 3.71 or that survival duration is divided by 3.71. The cumulative incidence function depends on both cause-specific hazards, and the model needs proportional-hazards and independent observation-censoring assumptions. In a randomised comparison the assigned treatment contrast is protected against baseline confounding, but the instantaneous comparison concerns the groups who have survived to the time in question; it does not identify a treatment effect within a common latent survivor subgroup.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 6 e Solution Created 2026-10-03 Updated 2026-10-07
The likelihood-ratio statistic isThe null hypothesis is at the boundary of the permitted mixture weights. Assuming the remaining parameters are identifiable and interior, including , an efficient normalized score for is asymptotically under the null hypothesis. The locally unconstrained quadratic log-likelihood maximizer is proportional to , while the constrained maximizer truncates it at zero. Thus , giving the one-sided boundary likelihood-ratio limitHere is a point mass at zero. For a positive observed statistic the upper-tail probability is half the ordinary upper tail. The 5% critical value is the 90th percentile of , about 2.7055, displayed as 2.71. Hence the reported likelihoods give a very marginal rejection of at 5%, with .
Using the ordinary 95th-percentile cutoff 3.84 would be inappropriate for this one-sided boundary test. The conclusion is close enough to the threshold that likelihood rounding matters: since each log-likelihood is printed to two decimals, the unrounded statistic can differ from 2.72 by nearly 0.02. The intended calculation rejects using the reported values, but an exact decision from the fitted data requires unrounded likelihoods. If the nuisance dispersion is also on its boundary or the mixture is not identifiable, the stated half-and-half null distribution needs reconsideration.
Past exam of the mathematics course of the University of Cambridge 2013 ib Paper 4 19H Solution Created 2026-09-24 Updated 2026-10-07
A sufficient statistic is one for which the conditional distribution of the full sample, given its value, is independent of the parameter. For independent observations the likelihood is , depending on the data only through the counts. The factorization criterion for sufficiency therefore makes sufficient. Directly, all ordered samples with given counts have the same probability, so their conditional distribution is uniform over the possible arrangements, independently of the .
The unrestricted maximum-likelihood estimator is . Thus the generalized likelihood-ratio test useswith zero-count terms interpreted by continuity. Reject for small , equivalently large .
Write , so . A Taylor series expansion of gives . Summing cancels the linear terms, and yieldsUnder the null hypothesis, the multinomial central limit theorem places the standardized count deviations in the five-dimensional subspace with coordinate sum zero, with identity covariance on that subspace. Their squared norm consequently tends to the chi-squared distribution with five degrees of freedom. This gives the Pearson chi-squared goodness-of-fit test.
For , the asymptotic p-value is about . The 5% critical value of is approximately . Do not reject at the usual 5% level, or at 10%. A significance level is not specified in the paper, so an unconditional yes-or-no decision is not determined: using this approximation, rejection would require a chosen level at least about .
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 31 4 Solution Created 2026-10-03 Updated 2026-10-07
Let be the indices of the true null hypotheses, let , and let count false rejections. The familywise error rate isThe Bonferroni correction rejects a null exactly when its p-value is at most . The union bound givesThis controls the familywise error rate for every configuration of true and false nulls, with arbitrary dependence between their p-values. Marginal super-uniformity, , would also suffice.
For the Holm step-down procedure, inspect the ordered p-values in ascending order and stop at the first failed comparison. If the first comparison fails, reject none; this is the convention when the defining set is empty. Ties can be ordered by any fixed rule.
If there can be no false rejection. Otherwise let be the rank of the first true null. Since at most false nulls precede it, and thus . If any true null is rejected, the step-down rule must have rejected this first true null, which requiresUsing the union bound on the true-null p-values provesThis first true null argument for Holm control also requires no independence. Holm controls the familywise error rate at level under arbitrary dependence.
Now let count all rejections. The false discovery rate is the expected proportion of rejections that are false, with zero assigned when nothing is rejected:It differs from the familywise error rate: several false rejections can still represent a small proportion of a large collection of discoveries.
The BH procedure is a step-up rule. SetIf , reject nothing; otherwise reject all hypotheses with . Exactly hypotheses are rejected: if more than p-values were below that threshold, the next ordered value would also satisfy its own larger threshold, contradicting maximality. Thus . Unlike the step-down rule, a failed early comparison does not make this procedure stop.
For the proof, assume that each true-null p-value is uniform on and independent of the entire vector of the other p-values. Joint independence of all p-values is a sufficient condition; the false-null marginal distributions can be arbitrary. Mere uniformity of the true-null marginals without a dependence condition is insufficient for this argument or for general unmodified BH control.
Fix a true null . Replace its p-value by zero and let be the number of rejections made by the Benjamini-Hochberg procedure on the modified vector. This variable depends only on the other p-values, and . The Benjamini-Hochberg leave-one-out identity isTo prove it, suppose is rejected with . Decreasing its p-value to zero leaves every ordered value above rank unchanged, since it was already among the first values. Those higher ranks still fail their thresholds, while rank still succeeds; hence . Conversely, suppose and . Restoring still leaves at least values at most , so . Increasing one p-value cannot increase the maximal successful rank, so . This gives equality and rejection of .
Independence and uniformity now giveSumming over the true nulls proves the exact false discovery rate under independent null p-values:If the independent true-null p-values are only super-uniform, the same calculation gives the inequality instead of equality. The distinction between the two types of error control and the dependence conditions is essential: Bonferroni and Holm have the preceding guarantees without independence, while the BH proof here explicitly uses it.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 34 2 g Solution Created 2026-10-03 Updated 2026-10-07
A predictive discrepancy statistic is a specified measurable function of a possible dataset, chosen to detect a feature relevant to the null hypothesis. Under the fully specified null density , compare the observed with its reference distribution, derived analytically or from replicated datasets .
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 32 1 a i Solution Created 2026-10-03 Updated 2026-10-06
For a one-sided Wald test use the signed normal Wald statistic, rather than its square. The maximum-likelihood estimate is the sample mean , with exact variance , soA sum of independent normal random variables is normal, giving and hence . Under the null hypothesis its mean is zero:Thus its null distribution is exactly the standard normal distribution, without an asymptotic approximation. If the squared Wald statistic convention is used, has a chi-squared distribution with one degree of freedom; the signed form is needed to distinguish the two directions.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 32 1 c Solution Created 2026-10-03 Updated 2026-10-06
Write , , and let be independent standard normal random variables obtained by centering and scaling the separate stage means. ThenThe second statistic uses all patients, so the statistics are correlated even though the stages' new observations are independent. Their covariance is and each variance is one. This gives the exact bivariate normal distributionUnder the null hypothesis both means are zero. At replace by ; the mean vector is . In this group sequential design the full-sample statistic may be viewed as a potential statistic from the underlying sequence of outcomes, even on paths where recruitment stops.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 32 1 d Solution Created 2026-10-03 Updated 2026-10-06
Set . Under the null hypothesis rejection requires both and . Since has the standard normal distribution,The bivariate normal distribution in the preceding calculation has a nonsingular covariance matrix and strictly positive statistical probability density everywhere. For every finite futility boundary and , the open rectangle has positive probability. ThereforeFor an explicit expression, conditional on the full-sample statistic is under the null hypothesis, yieldingThe Type I error is reduced because some otherwise rejecting paths stop for futility. Equality is approached as , but does not hold at a finite futility boundary.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 33 1 Solution Created 2026-10-03 Updated 2026-10-06
The ordinary least squares objective has gradient . The normal equation therefore givesThe Gram matrix is a positive-definite matrix because has full column rank. More explicitly, for any ,since . This proves that the displayed solution is the unique global minimum.
The fitted values are , where the hat matrix isThe inverse of the symmetric matrix is symmetric, so . Multiplication gives . Thus is the orthogonal projection onto the column space of the design matrix.
The regression residual vector is with . Consequently , , and the residual sum of squares isBy fitted-residual orthogonality, . Using , the cross-covariance matrix isBoth vectors are jointly normal, so they are also independent by independence of uncorrelated jointly normal variables. The zero covariance calculation itself only needs the common error variance and lack of error correlations.
For the first wind fit, let be wind velocity and electrical output. The simple linear regression is , with independent . It has two fitted mean parameters and residual degrees of freedom. The missing analysis of variance entries are therefore velocity degrees of freedom , velocity mean square , and residual degrees of freedom . The residual mean square is , and , consistent with the printed value after rounding.
Because the model includes a regression intercept, the coefficient of determination is the explained sum of squares divided by the total centered sum of squares:A large coefficient of determination does not rule out a wrong mean function. In the PDF's first residual-versus-fitted plot, residuals are negative at both ends and positive in the middle. This curved pattern agrees with the visibly flattening output-versus-velocity relationship and motivates a polynomial regression with a quadratic term.
The second wind model is , again with independent common-variance normal errors. Its fitted mean is . The line marked (A) is a two-sided Student t-test of against , conditional on retaining the intercept and linear term. Under the null hypothesis,Its two-sided p-value is . This is far below , so reject a purely linear mean in favour of the quadratic fit. Equivalently, the extra-term nested-model F-test has and null law .
The third fit is a reciprocal-predictor regression, , with estimated mean . It has two mean parameters rather than the quadratic model's three. Its residual standard error is smaller, versus , and its coefficient of determination is larger, versus . The corresponding residual sums of squares are approximately and . The reciprocal fit is preferable on both these fit measures and parsimony. The two models are not nested, so an ordinary extra-term F-test between them is inappropriate. On the common normal-error likelihood, the difference also favours the third model.
Neither lower residual sum of squares nor a higher coefficient of determination establishes adequate assumptions. The quadratic residual-versus-fitted plot removes the original pronounced curvature; the reciprocal plot also has no comparably obvious mean trend. The low-output residuals appear somewhat more spread out, so check scale-location plots and residuals against velocity for heteroscedasticity. Q-Q plots assess normality; residuals against observation order assess serial dependence; regression leverage and Cook's distance identify influential observations. Further cross-validation, replicate observations at comparable velocities, and prediction errors would help choose between their extrapolation behaviours. Both fitted shapes should be judged principally over the observed positive-velocity range.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 33 2 Solution Created 2026-10-03 Updated 2026-10-06
Let be recall for age level , processing level , and replicate . Write for Younger and for Older. With Older and A as the reference levels in a regression factor, the additive two-factor normal linear model under treatment coding iswhere the errors are independent , with common positive variance. The design matrix is fixed; subjects supply independent observations; the specified conditional mean is correct; and the absence of an interaction term means the age difference is constant across processing levels. These are model assumptions, not consequences of random assignment. The treatment allocation supports independence between processing assignment and background characteristics, but age itself was not randomized.
An older subject in A has and , so the estimated mean is words. Its standard error is the intercept's . There are residual degrees of freedom, giving the 95% confidence interval for this mean:This is a mean-response confidence interval, not a prediction interval for a new individual's recall; the latter also includes the new observation's error variance.
The second two-factor normal linear model adds age-by-processing interaction terms:Its ten free mean parameters are equivalent to one mean for each of the ten cells. To compare the fits, the null hypothesis is . The full residual sum of squares is on degrees of freedom. Adding interaction reduces the additive model's residual sum of squares by , so the reduced value is . The nested-model F-test statistic isIts p-value is . Reject additivity and retain the interaction model. The significant interaction means that a single age effect averaged over all processing methods does not adequately summarize the data.
The regression intercept is the older-A mean. The age coefficient is the younger-minus-older contrast specifically in A. The processing coefficients compare B, C, D and E with A specifically among older subjects. The interaction coefficients are differences between the age contrast in each of those methods and its value in A. Adding the relevant coefficients givesThus A, C and especially D favour younger subjects in their estimated means, whereas B and E have little estimated age difference. In the younger group, D has the largest estimated recall, followed by C and A; B and E are much lower. Among older subjects C is largest, D and A are intermediate, and B and E are lowest. Comparing these orders is a description of estimates, not a claim that every pairwise difference is significant.
Each coefficient's printed standard error estimates its uncertainty; its statistic divides the estimate by that error, and its two-sided p-value uses under the relevant zero-contrast null hypothesis. For example, the older B-versus-A and E-versus-A contrasts have and . The C-versus-A and D-versus-A older contrasts have and . The B interaction has , while the D interaction is borderline at and the other two individual interaction tests are not significant at . These individual tests do not override the joint interaction F-test, and multiple comparisons require care. A simple younger-versus-older contrast outside A combines coefficients and must use their estimated covariance, rather than adding their marginal errors.
The residual standard error estimates . The coefficient of determination is the fraction of centered sample recall variation explained by the ten-cell model. The overall with null law tests all nine non-intercept coefficients jointly against zero, giving extremely strong evidence that the cell means are not all equal. The sequential analysis of variance separates age, process, and their interaction; the balanced design makes the main-effect sums orthogonal, whereas the coefficient table uses the specified reference-level contrasts.
To assess pooling into three processing types, retain age-by-type interaction because the previous test rejects additivity. The reduced model has six cell means. Its null hypothesis says A and C have equal means within each age, and B and E have equal means within each age: four restrictions. Compare it with the ten-cell model usingIn fact the supplied fitted cell means and equal cell sizes determine the increase without raw observations. Pooling two ten-person cells with means adds to the residual sum of squares. Here the four differences are , soTherefore and . At , the data do not reject the three-type reduction, though the result is borderline and is not proof that the pooled means are identical. This factor-level pooling test keeps the previously supported interaction structure; reducing the categories and removing all interaction simultaneously would test a different set of restrictions.
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 2016 iii Paper 206 6 c Solution Created 2026-10-03 Updated 2026-10-06
The restricted maximum likelihood procedure estimates covariance parameters from error contrasts that remove the unknown fixed effects. Let have rank and choose an full-rank matrix with . Then has a likelihood involving the variance parameters but not . Maximizing that likelihood is restricted maximum likelihood. An equivalent restricted likelihood from orthogonal error contrasts, up to terms independent of , iswhereAfter estimating , use generalized least squares for and the conditional modes from part (b). In an independent-error normal linear model, this covariance procedure reduces to estimating by instead of .
The two models being compared have different fixed-effect spaces, so their error contrasts, dimensions, and restricted likelihoods differ. Their REML values are not likelihoods of the same transformed data and must not be used directly for this fixed-effect likelihood-ratio test. Refit both with ordinary maximum likelihood, integrating out the random effects but retaining the original response vector, and maximize each model's marginal likelihood.
The null hypothesis is , leaving the random slope variance free; the alternative permits a nonzero population stirring effect. The supplied test has , one extra fixed coefficient, and approximate p-value . Retain the fixed stirring-rate effect at 5%. A mean-zero random slope cannot substitute for an estimated nonzero population slope. The asymptotic calibration assumes regular nuisance covariance parameters and should be interpreted cautiously with only three furnaces; simulation can provide a better finite-sample calibration.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 207 1 a Solution Created 2026-10-03 Updated 2026-10-06
Use the usual clinical trial sampling assumption that all patients' responses are independent, with fixed positive arm sizes and positive known variances. Marginal normal distributions alone would not specify the variance of a treatment contrast without this assumption. Put , , and . The sample mean contrast estimates and has standard error . Thus the one-sided Wald statistics areLarge positive values of these Wald test statistics provide evidence against the respective null hypotheses.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 207 1 c Solution Created 2026-10-03 Updated 2026-10-06
Let denote the centered unit-variance bivariate normal distribution density,The complement of rejecting either null hypothesis is . Therefore the probability of at least one rejection isWhen both null hypotheses are true, this is the familywise error rate. If one null hypothesis is false, a rejection of that hypothesis is not a Type I error, so the displayed probability is then an any-rejection probability rather than the familywise error rate.