Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 33 1 Solution Created 2026-10-03 Updated 2026-10-06
For the normal linear model, the log-likelihood isThe full column rank of the design matrix makes invertible. Differentiating in gives the normal equations . With the minimized residual sum of squares substituted, differentiation in givesThese are the maximum-likelihood estimators almost surely; almost surely when and . The linear transformation of the multivariate normal distribution yieldsDefine the hat matrix . The fitted values are , the regression residuals are , and . The orthogonal projection has rank and annihilates . By Cochran's theorem,Consequently , with bias . The unbiased estimator isIts square root, the reported residual standard error, estimates ; the assertion of unbiasedness applies to the variance, not generally to its square root.
For the paper-strength analysis, let be the measured percentage and . Both normal linear models use independent errors of common variance . Their mean functions are for
lm1, and for lm2, with separately fitted coefficients. The reported residual standard errors are and , respectively.For
lm1, the estimated conditional expectation at a new percentage isThe original data mean must be used for centering the new percentage; its numerical value is not supplied in the excerpt. Because , the two columns of this design matrix are orthogonal, and . Hence the coefficient standard errors in the output giveThis estimates uncertainty in the mean. Predicting an individual future batch would additionally require the new-error variance, estimated by .To compare the nested normal linear models, test against within the quadratic model. The Student t-test statistic isIts two-sided p-value is . Equivalently is a partial F-test statistic with null distribution . Reject the linear restriction and prefer
lm2 at the 5% level. Its residual spread is much smaller; the increase in the coefficient of determination from to supports the same conclusion, although the test is the relevant complexity-adjusted comparison.For regression diagnostics, inspect regression residuals against fitted means and hardwood percentage for omitted curvature, a scale-location plot for nonconstant variance, and a quantile-quantile plot against the normal distribution for departures from the error assumption. Check unusual observations using regression leverage and Cook's distance, and examine residuals in collection or batch order if dependence is plausible. Independence and a common variance require substantive justification as well as these plots; a small p-value for a polynomial term does not itself check the error model.
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 2 25J ii Solution Created 2026-09-24 Updated 2026-10-06
The Jeffreys prior is proportional to , hence is . Its posterior is , givingThe interior case is used only when . Generally neither rule equals : the mean agrees only at ; the mode agrees at the endpoints and, in the interior, at . For the small experiments , all possible observations happen to be among these cases, so the whole mode rule then coincides with the maximum-likelihood estimator.
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 2 25J i Solution Created 2026-09-24 Updated 2026-10-06
The uniform prior has , so the posterior is . Its mean and mode areThus the uniform-prior posterior mode is the maximum-likelihood estimator, including . The mean shrinks toward and equals the maximum-likelihood estimator only when .
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 2 4J Solution Created 2026-09-24 Updated 2026-10-06
Writing for the observed counts, independence of the Poisson distributions gives the log-likelihoodIts score function and negative second derivative areUnless all vanish, , so the log-likelihood is strictly concave. Use Newton method, starting from a finite , withStop when the score function or the change in is small; a reduced step can ensure that the log-likelihood increases. Any finite zero of the score function is the unique maximum-likelihood estimator.
Existence needs a qualification. If the nonzero include both signs, decreases from to , so a finite root exists. If all nonzero are positive, a finite root exists exactly when ; otherwise the supremum is approached as . The corresponding condition for all negative is , with a supremum at otherwise. When all , the parameter is unidentifiable. These cases explain when the iterative algorithm actually has a finite estimate to find.
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 3 24J Solution Created 2026-09-24 Updated 2026-10-06
For the proposed root criterion, fix . Convergence in probability at the two points givesOn this event the intermediate value theorem gives a zero between the two points. Since the zero is unique, it is . Therefore , without needing uniform convergence of .
For independent observations, the log-likelihood has derivative and negative second derivative . Its unique maximizer is . Apply the criterion to : the strong law of large numbers gives the limit , with the required signs. Hence the maximum-likelihood estimator is consistent.
In the bivariate model the log-likelihood, apart from constants, isMinimizing each squared pair gives . Maximizing the resulting likelihood in the variance givesEach difference is , independently of the others and independently of its unknown mean parameter. Thus the strong law of large numbers gives in probability, not . This is the Neyman-Scott incidental parameter problem: the number of nuisance means grows with the sample size, but each mean is estimated from only two observations. The usual fixed-dimensional likelihood consistency theory therefore does not apply. The corrected estimator is consistent.
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 4 4J Solution Created 2026-09-24 Updated 2026-10-06
This is a generalized linear model with independent Bernoulli distributions for the responses and the logit link. Under treatment coding with colour one as the reference level, the linear predictor isColour is a categorical variable, not a numerical trend. Width has the same slope for every colour, since no interaction term is fitted. The parameters are estimated by maximum likelihood estimation.
The approximate Wald confidence interval for the width coefficient is , or approximately . This uses the approximate normal distribution of the maximum-likelihood estimator, rather than a confidence interval for an individual binary response.
For the requested crab, the fitted linear predictor is . Applying the inverse logit link gives . The rounded displayed coefficients need not reproduce the reported test statistics exactly.
Past exam of the mathematics course of the University of Cambridge 2016 ib Paper 4 19H a Solution Created 2026-09-24 Updated 2026-10-06
Let . Under the usual nondegenerate regression assumption , maximizing the normal likelihood is equivalent to minimizing the residual sum of squares. The normal equations and give the maximum-likelihood estimatorsWrite and . Then , , and the residual is . Independence of the errors givesFor each ,Thus the three requested variables are pairwise uncorrelated.
They are linear functions of the jointly normal error vector. More strongly, the whole vector has a multivariate normal distribution, and its block covariances show that , and the residual vector are independent, by uncorrelated jointly normal variables are independent. Independence is preserved when applying a measurable function to the residual block. HenceThe residual projection is , of rank , so additionally . This is the orthogonal projection of a Gaussian vector interpretation of the same result. The printed design conditions alone allow ; then the fit is exact, the positive-variance likelihood has no finite maximizer, and the residual test in part (b) is undefined. The standard testing question therefore needs .
Past exam of the mathematics course of the University of Cambridge 2016 ib Paper 4 19H b Solution Created 2026-09-24 Updated 2026-10-06
Put for the unrestricted fit. Under , the best slope is still because the design is centered. Orthogonality of the residuals to the constant vector givesAt either fitted mean, the maximum-likelihood estimator of variance is . The ratio used by the generalized likelihood-ratio test is consequentlySmall likelihood ratios correspond to large . Under , part (a) gives independent and . Thus has the Student's t-distribution with degrees of freedom. The exact size-5% critical region iswhere is the 97.5th percentile of that distribution. The denominator uses the unbiased residual variance estimate, not the likelihood variance denominator .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 206 2 b Solution Created 2026-10-03 Updated 2026-10-06
The fitted values are , so the hat matrix isIt is symmetric, andIt fixes every vector in the column space of , and annihilates its orthogonal complement. Thus is the orthogonal projection onto that column space, has matrix rank and trace , and is the complementary orthogonal projection. ConsequentlySince , the covariance matrix between the regression residual vector and the coefficient estimate isThese quantities have a joint normal distribution, so they are also independent, a stronger conclusion than zero covariance.
Now has mean zero. Using the expectation of a quadratic form,Thus the maximum-likelihood estimator hasThe unbiased alternative isThe orthogonal projection of a Gaussian vector also yields , explaining the residual degrees of freedom.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 206 2 f Solution 2026-10-06
Assume the known covariance matrix is positive definite. The Gaussian likelihood, up to constants, isIts gradient is . The negative Hessian matrix is positive definite because has full column rank. Thus the unique maximum-likelihood estimator is the generalized least squares estimatorIt is unbiased, and multiplication of its linear coefficient matrix by givesIn fact . Equivalently, a whitening transformation premultiplies and by , after which ordinary least squares applies. There is no extra factor when is the complete known covariance; such a factor appears if only a shape matrix is known and .
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 1 28K a Solution Created 2026-09-24 Updated 2026-10-05
For observation , the likelihood is proportional to . For , its logarithmic derivative is , vanishing uniquely at ; the logarithm is strictly concave. At or , monotonicity gives the boundary maximum. Thus the maximum-likelihood estimator isA uniform prior multiplies this likelihood by a constant. The beta-integral normalization therefore gives the posterior distributionIn particular the posterior mean is not automatically the optimal estimator for the weighted loss in the next part.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 2 26K c Solution Created 2026-09-24 Updated 2026-10-05
The support restricts to , and . Within its feasible interior, the likelihood function is proportional to and is strictly increasing in , diverging as . Under the printed infinite-endpoint-density, or extended-likelihood convention, the maximum-likelihood estimator isA density is defined only almost everywhere. If its value at the singular endpoint is reassigned a finite value, a finite maximum need not exist; the sample-minimum answer uses the stated endpoint/supremum convention.
Independence and on giveThe error is positive almost surely, so the estimator is not an unbiased estimator. More explicitly its bias is
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 4 27K c i Solution Created 2026-09-24 Updated 2026-10-05
With , constrained likelihood maximization minimizes . On the unit sphere this is . By the Cauchy-Schwarz inequality its minimizer isIf , every unit vector is a maximum-likelihood estimator; a specified measurable tie-breaking choice makes an estimator defined everywhere. This event has probability zero in the nonsingular normal model, but the optimization still has that exceptional case.
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 3 28K b Solution Created 2026-09-24 Updated 2026-10-03
The maximum-likelihood estimator isUnder the score-outer-product convention stated in the question,This is the sample covariance matrix with divisor . The strong law of large numbers, applied entrywise, givesThus the empirical score outer-product information consistently estimates the per-observation Fisher information.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 1 b Solution 2026-10-03
Put , , , , and form the weighted meansThe two equations obtained from the score function areConsequently the maximum-likelihood estimators areThe Hessian matrix of the log likelihood isIts first leading principal minor is negative and its determinant is , so it is a negative-definite matrix. Thus the stationary point is the unique global maximum.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 2 28J a Solution Created 2026-09-24 Updated 2026-10-03
For , its probability generating function isThus andThe log-likelihood is, up to an additive constant,so the maximum-likelihood estimator is . The central limit theorem gives
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 2 28J d Solution Created 2026-09-24 Updated 2026-10-03
Under the null model, , which is a boundary point of the parameter space. Standard interior-point asymptotic normality of the maximum-likelihood estimator therefore need not apply.
Indeed, put . Under , . For the unconstrained estimator , the central limit theorem givesSince , the continuous mapping theorem yieldsThis distribution has probability at zero and a continuous normal half-density on the negative half-line, so it is not normal.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 3 28J a Solution Created 2026-09-24 Updated 2026-10-03
Let . The log-likelihood iswith score function and second derivative . The unique maximum-likelihood estimator is thereforeFor an exponential distribution of rate ,The central limit theorem givesApplying the delta method to , for which , yields the exponential-rate maximum-likelihood estimator limit
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 4 28J a Solution Created 2026-09-24 Updated 2026-10-03
For observations , the likelihood function isA maximum-likelihood estimator is any measurable choiceFor one observation in a regular scalar model, the score function isand the Fisher information iswhere the second identity requires the usual differentiation-under-the-integral regularity. For independent observations, Tensorization of Fisher information gives .