Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 1 a Solution Created 2026-10-03 Updated 2026-10-07
Use the normal linear modelHere is the response random vector, is the known design matrix, contains the unknown regression coefficients, and is the common error variance. Conditional on , the errors have normal distributions and are independent random variables. Require for identifiability of and invertibility of . Usually is needed to estimate the error variance from the regression residuals. An intercept, when included, is represented by a column of ones in .
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 1 c Solution Created 2026-10-03 Updated 2026-10-07
The ordinary least squares estimator is . Consequently the fitted values and regression residuals areAn affine transformation of a multivariate normal distribution is again multivariate normal, possibly with a singular covariance matrix. For a random vector with covariance matrix , its transformed covariance matrix is . Since , and , these results giveBoth multivariate normal distributions are supported on their respective projected subspaces. In particular, has variance and has variance ; the regression residuals need not be mutually independent.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 1 e Solution Created 2026-10-03 Updated 2026-10-07
The simple linear regression assumes a straight conditional mean, , so that errors are centred at zero throughout the predictor range. The displayed regression residuals are predominantly positive at both ends and negative in the middle. This is a residual curvature diagnostic: the fitted straight line misses a curved conditional mean. The main concern is the shape of the mean function. The plot alone does not establish failure of the normal distribution assumption or a particular error variance model.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 2 b Solution Created 2026-10-03 Updated 2026-10-07
Group means are independent random variables with normal distributionsThe resulting univariate sampling distributions areThe same variance calculation holds for every , since the difference involves two independent group means. Therefore the standard errors satisfyReplacing by a common estimated error standard deviation preserves this ratio. Although the individual group means are independent, the contrasts share the baseline mean and have covariance for distinct .
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 2 c Solution Created 2026-10-03 Updated 2026-10-07
Index chocolate by , day by in the three observed categories, and replicate by . The additive two-factor normal linear model isHere is the board count, is the mean for the reference chocolate and reference day, and are chocolate and day fixed effects. With corner-point constraints, set and , where is the first level in the day factor. The printed coefficient-free output does not determine that factor ordering; the model is unchanged by a different reference category. There is no chocolate–day interaction term in this fit. The six free mean statistical parameters consist of one baseline, three chocolate contrasts and two day contrasts; the common error variance supplies a further statistical parameter.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 3 b Solution Created 2026-10-03 Updated 2026-10-07
For and , the Poisson distribution has massMatch this to the exponential dispersion family withThen and . The canonical link function expresses the natural parameter in terms of the mean, so the Poisson canonical link is . Its conditional variance equals its conditional mean.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 3 d Solution Created 2026-10-03 Updated 2026-10-07
The Quasi-Poisson regression retains the same conditional mean but permitsThis is a mean–variance function specification through quasi-likelihood; it does not assign a full probability distribution to each count. For independent observations, the quasi-score equation is proportional to , so the mean statistical parameter estimates equal those from Poisson regression. The output estimates through the Pearson dispersion estimator, and inflates the standard errors by approximately .
The large residual deviance relative to 728 residual statistical degrees of freedom also signals substantial overdispersion. Daily weather, traffic and other omitted conditions may produce greater count variation than a homogeneous Poisson distribution allows. The Quasi-Poisson regression accounts for that extra marginal variance. It still requires a correct conditional mean and an appropriate independence assumption; a common dispersion parameter alone does not repair serial correlation.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 3 e Solution Created 2026-10-03 Updated 2026-10-07
Under the more plausible Quasi-Poisson regression, the year Wald statistic is , with reported p-value . An approximate 95% confidence interval isThus the estimated fall is about 9.35%, but the data do not establish a reduction at the 5% level after allowing for overdispersion. The interval allows both a sizeable reduction and a small increase. The before–after comparison also lacks a contemporaneous randomized control, so causal inference about the campaign would require addressing other changes between years. The small Poisson regression p-value is not sufficient evidence of a campaign effect when its variance assumption is unsuitable.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 4 b Solution Created 2026-10-03 Updated 2026-10-07
For subject and , the random-intercept linear mixed model isAll subject random effects and measurement errors are mutually independent. The fixed effects describe the population mean baseline and weekly gain. Conditional on , a person's observations have independent normal distributions; after integrating out , their covariance is at distinct weeks and their common variance is . Therefore their correlation is .
This Gaussian linear mixed model permits correlated repeated readings while keeping different subjects independent. The fitted standard deviations are kg and kg, giving within-person correlation about . All persons still have the same latent weekly slope in this model.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 4 c Solution Created 2026-10-03 Updated 2026-10-07
Allow each subject to have a separate baseline and slope through a correlated random-intercept and random-slope model:The subject random effects are independent of all measurement errors, and subjects are independent. The within-person covariance between times is , with an additional when the same reading is used twice.
Prefer the model with a random slope. The maximum likelihood estimation refits improve twice the log-likelihood by while adding two covariance statistical parameters. Both the Akaike information criterion ( to ) and Bayesian information criterion ( to ) strongly favour it. The printed nominal likelihood-ratio test is overwhelming. The usual reference chi-squared distribution with two statistical degrees of freedom is not an exact regular calibration, since zero slope variance is a boundary and the intercept–slope correlation is then unidentified; a design-specific parametric bootstrap could calibrate it. This qualification does not undermine the substantial descriptive improvement shown by both information criteria.
The preferred fit estimates population mean baseline strength kg and weekly gain kg/week. The between-person baseline standard deviation is kg, and the between-person slope standard deviation is kg/week. Their estimated correlation is weakly positive, giving random-effect covariance about kg/week; its uncertainty is not supplied. The measurement-error standard deviation is kg. The printed instead describes the correlation between the estimated fixed effects, not between the subject random effects. These statistical parameter estimates come from restricted maximum likelihood; the model comparison uses the separate maximum likelihood estimation fits.
The population mean fitted trajectory is kg. HenceUsing the reported slope standard error, an approximate 95% confidence interval for the population mean gain is kg; a Student t confidence interval with 499 statistical degrees of freedom is almost identical.
Successful individuals can improve far more than the average. Their latent ten-week gains have fitted normal distributionA clear estimate for an upper-performing group uses a between-person slope quantile: the 95th percentile is kg, and the 97.5th percentile is about kg. The upper 5% of fitted underlying gains begin around 73 kg. These are person-to-person performance quantiles, not confidence intervals for the population mean. Identifying the best observed trainee would require that person's data or fitted subject random effects; the aggregate output cannot identify a literal maximum. If performance means the observed difference of endpoint readings, add the measurement-error variance to the latent gain variance.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 32 1 b Solution Created 2026-10-03 Updated 2026-10-07
Let be each trial's estimated log risk ratio, with estimated sampling variance . A fixed-effect meta-analysis models the independent estimates as , with one common true log risk ratio . Differentiating the Gaussian log-likelihood, or minimizing , gives inverse-variance weights andThe variance follows directly by adding independent variances of the weighted estimates: .
Using the printed rounded estimates and standard errors, , soThe pooled risk ratio is about . An interval using the same quantile two is on the log scale, so it includes no effect. Recomputing all trial estimates from the event counts would change the last digits because the printed log estimates and errors are rounded.
The key assumptions are independent trials, a common true treatment effect on this chosen log scale, approximately unbiased and approximately normal trial estimates, and suitable sampling-variance estimates. The common-effect assumption is stronger than merely studying the same named treatment: systematic population, treatment or design differences may produce genuine heterogeneity. For an unbiased interpretation of the pooled evidence, inclusion of studies must also not depend selectively on their results. Treating the plug-in variances as fixed is the usual approximation in the displayed variance formula.