Past exam of the mathematics course of the University of Cambridge 2010 ii Paper 4 29I Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 2 Solution Created 2026-10-03 Updated 2026-10-07
A regression factor is a categorical predictor represented by level indicators and contrasts. Treating year as a regression factor permits arbitrary differences between the three yearly means, reflecting conditions such as weather, rather than imposing a linear time trend.
Let be the yield for seed variety , fertiliser level , and year . A treatment-coded two-factor normal linear model with additive year effects iswith independent errors. The unrestricted coefficients are : six parameters for twelve observations. Equivalently use baseline-zero variety, fertiliser, and interaction arrays. There are no year-treatment interactions in this fit.
Dividing each sum of squares by its statistical degrees of freedom gives the completed analysis of variance:In particular, the missing interaction statistic is . Its null hypothesis is , against : the change in mean yield from high fertiliser is the same for both varieties. Under the null hypothesis and the independent homoscedastic normal linear model, this nested-model F-test has distribution . The printed -value 0.001137 strongly rejects no interaction.
Do not drop fertiliser just because its main-effect ANOVA row has . In this balanced factorial design that row measures a fertiliser effect averaged over varieties; large opposite effects can cancel. The strongly supported interaction requires retaining its associated main effects by regression model hierarchy. Seed and year also have evidence of effects in their ANOVA rows, so this table alone gives no compelling simplification of the fitted terms.
The interaction contrast is , with standard error 0.7946. The fitted high-minus-low fertiliser effect is for variety 1 but for variety 2. The fitted variety-2-minus-variety-1 contrast is under low fertiliser and under high fertiliser. Thus variety 2 performs best under low fertiliser, while high fertiliser benefits variety 1 and reduces variety 2's fitted yield. The marginal fertiliser effect is only .
The four fitted means in the baseline year are for respectively. Add in 2005 and in 2006 to every fitted mean. The 2005 coefficient has under a test of a zero contrast with 2004; the analogous 2006 contrast has . The latter is lack of evidence for a difference, not proof that the yearly means coincide. Standard errors for the combined contrasts require the coefficient covariance matrix. The experiment is small: residual standard error is 0.6882 on only six statistical degrees of freedom. If the same fields were reused, possible within-field dependence and field allocation would need checking before treating the fitted error independence as established.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 6 a Solution Created 2026-10-03 Updated 2026-10-07
The moment-based approach specifies marginal means, variances, and within-student covariances, without supplying a joint probability distribution for each count profile. It is a quasi-likelihood or generalized estimating equation strategy. The parameter interpreted as a structural-zero fraction is not automatically an actual probability of a structural-zero component merely because it appears in the moment formulas. A valid positive-definite working covariance and parameter identifiability must also be checked.
The printed covariance specification is not admissible for all the stated parameter values. For example, take , , and all three component means equal to 10. It gives diagonal variance 80 and off-diagonal covariance 100, so . A covariance matrix cannot have a negative variance in any direction. Thus the moment approach requires additional admissibility restrictions or a valid working covariance; the parameter ranges alone do not define a valid model. This does not alter the hierarchical model, whose covariance derived below is positive semidefinite.
The alternative gives a full hierarchical mixture distribution, specifically a shared zero-inflated Gamma-Poisson count model: a common student random effect is zero with probability , and otherwise has a Gamma distribution with mean 1 and variance . Conditional on this effect, the three counts are independent Poisson random variables. Integrating it out induces both excess zeros and positive within-student dependence. Zero inflation is shared for the whole student, rather than independently reselected in each term. This full distribution supports likelihood-based inference but is more sensitive to the distributional assumptions.
The marginal mean in the hierarchical model has the same form as the proposed moment mean. Its marginal covariance does not, in general, equal the printed working covariance; the law of total covariance calculation below makes the distinction explicit. At the Gamma component is interpreted as its point-mass-at-one limit. At all counts are zero, and the log-mean parameterization and regression effects are not identifiable.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 38 2 Solution Created 2026-10-03 Updated 2026-10-07
The autocovariance of an MA(1) process comes directly from shared noise terms:Work with the zero-mean white noise convention and . Put . Suppose the preceding finite-past innovations are mutually orthogonal. Their triangular relation to the observations means that they span the same finite past. For , is a linear combination of , so . Moreover,Projection onto this orthogonal basis therefore has only its last coefficient nonzero:The residual is orthogonal to the entire preceding span, proving the induction. Expanding its variance givesThe initialization is , , and . Each finite covariance matrix is a positive-definite matrix: the last observation in any nonzero finite linear combination contains a noise term absent from earlier observations. Thus all the projection denominators are positive. These are the finite-sample innovations of an MA(1) process, requiring no Gaussian assumption.
Substituting the covariances into the recursion givesThe denominator has a positive limit when . Taking limits gives . The permitted interval selectsFor , every coefficient is zero; at , the roots coincide. This is the limiting MA(1) innovations coefficient. The limiting innovation variance is correspondingly .
For the observed numerical case, and . The exact innovation calculations areTherefore the predictor of based on the two observations and its error variance areFor , the available information is still only . Since its covariances with both and are zero, its orthogonal projection onto that span is zero:This is two-step prediction for an MA(1) process. Applying the next one-step recursion would instead use an observed , which is not available here.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 25 1 b Solution Created 2026-10-03 Updated 2026-10-07
For any , the linearity from part (a) givesalmost surely, and the right side has a normal distribution. This is the defining linear-combination criterion for a multivariate normal distribution; singular covariance matrices are allowed.
Passing to the limit in the inner products of the partial sums givesThe passage to the limit is justified by Cauchy-Schwarz inequality and convergence. Equivalently, the vector's characteristic function isThus both joint normality and the complete covariance matrix follow from the Hilbert-space inner product.
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 d Solution Created 2026-10-03 Updated 2026-10-07
Because both vectors are linear transformations of the same multivariate normal response, is jointly multivariate normal. Its cross-covariance matrix isZero cross-covariance implies independence for jointly multivariate normal vectors, including singular ones. Therefore the fitted values and the entire vector of regression residuals are independent. The fitted-residual orthogonality identity gives the zero covariance; the normal distribution assumption is what upgrades it to independence.