Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 206 4 c Solution Created 2026-10-03 Updated 2026-10-05
The marginal Akaike information criterion is , where counts estimated population parameters. Here they are , so . The realized incubator slopes have been integrated out of the likelihood function; they are not four additional free population coefficients. From the marginal Gaussian log-likelihood, the expression isAll hats here denote the ordinary maximum likelihood estimation fit.
The displayed value is instead a restricted maximum likelihood criterion. Thus it cannot simply be substituted for the ordinary maximum-likelihood deviance. The The output does not contain that numerical answer. In particular, restricted criteria must not be used to compare models with different fixed-effect designs. A conditional AIC targeting predictions for existing groups is yet another criterion and does not follow by counting each latent slope as an ordinary parameter.
logLik method defaults to the fitting convention. If one applies AIC(fly.model) directly to the displayed REML object, the default restricted log-likelihood and the same parameter count give the software's restricted-likelihood-based value . This number should be labelled as such; it is not the ordinary marginal AIC derived above. To obtain the latter, refit and calculateAIC(update(fly.model, REML=FALSE)) Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 206 6 e Solution Created 2026-10-03 Updated 2026-10-05
Let have rows and let be the spatial covariance matrix with . Conditional on chosen covariance parameters, the best linear unbiased estimator of the drift coefficients is the generalized least squares estimatorThe printed procedure first estimates the linear drift from where those arguments are initial values, not the reported final estimates. Such semivariogram fitting typically minimizes a weighted sum of squared discrepancies between binned empirical values and model values; it is not automatically a joint Gaussian likelihood maximization. One can iterate: form residuals using the current drift, refit the covariance model, recompute the generalized least squares drift, and repeat until changes are small. The displayed commands themselves show a single sequence, not evidence that such iteration occurred.
depth ~ y, constructs a binned residual empirical semivariogram, fits a Gaussian semivariogram to it, and then uses the fitted covariance in generalized least squares trend estimation and universal kriging. The missing fit could be supplied asgauss.model2 <- fit.variogram(smvg2, vgm(0.5, "Gau", 1, 0))A likelihood-based alternative estimates the two blocks coherently fromSubstitute to obtain a profile log-likelihood, maximize over and with a positive-definite matrix , and recover the drift coefficients from the optimizing covariance. Restricted maximum likelihood adds the design determinant term and uses in place of in the normalizing term, up to a fixed-design constant. It can reduce bias from estimating the drift before the covariance. A zero fitted nugget is a legitimate boundary estimate, not proof that measurement error is absent. Estimate drift using covariance-weighted regression, and spatial dependence from drift-adjusted variation, with the two stages or likelihood explicitly distinguished.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 207 1 e Solution Created 2026-10-03 Updated 2026-10-05
A random-effects meta-analysis allows differences in true treatment effects across countries and eligibility criteria. For trial , let be its estimated log odds ratio and its estimated within-trial variance. A usual approximate statistical model isindependently across trials, with independent of sampling errors. Here is the mean true log odds ratio in the population of comparable trials, and is between-trial heterogeneity, not additional sampling error. Therefore , and for a fitted heterogeneity value,One can estimate by restricted maximum likelihood or another justified method; is a plug-in conditional variance and does not fully account for estimating heterogeneity. With only six studies that uncertainty matters. Different eligibility rules motivate this random effect but do not by themselves establish exchangeability or remove bias; known effect modifiers may warrant stratification or regression.
Use leave-one-study-out influence analysis: fit all six trials, then omit Cohen 1989 and refit both and . Report , the corresponding change in the odds ratio, and changes in the confidence interval and heterogeneity. As a diagnostic with heterogeneity held fixed, writing givesThe fitted Cohen weight would be and . A precise but discordant trial can have large influence; refitting assesses additional influence through heterogeneity. The other five trials' data are absent, so a numerical six-trial influence assessment is not identifiable from the displayed table.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 218 1 c Solution Created 2026-10-03 Updated 2026-10-05
Let . After integrating out the random intercepts,The fixed-effect design matrix has four independent columns, so the given has dimensions , with and . Consequently the error contrasts have a multivariate normal distribution with mean zero and covariance matrix .
The restricted likelihood from orthogonal error contrasts is their density. Equivalently, the estimates maximizeThis is restricted maximum likelihood, not maximization over individual rat effects. The unknown disappears because . Replacing by for an orthogonal rotates and conjugates , preserving the determinant and quadratic form; hence the objective is independent of the chosen orthonormal basis. The software's integrated REML log-likelihood can differ by an additive constant depending only on , which has no effect on these variance estimates.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 218 1 d Solution Created 2026-10-03 Updated 2026-10-05
There are two defects. The mixed fit supplies a restricted maximum likelihood, whereas the ordinary fit supplies an ordinary log-likelihood, so their difference is not a likelihood-ratio test statistic. Also, lies on the boundary of ; the usual Wilks theorem does not give a null law.
A valid approach first refits the mixed model by ordinary maximum likelihood estimation, setting REML to false, and fits the same fixed effects under . For , maximizeover , and separately over with . Set .
For finite-sample calibration, use the location-scale invariant simulation test for a Gaussian variance component. With the actual fixed, simulate independent vectors , refit both models by ordinary maximum likelihood estimation to each, and calculate in exactly the same way. Under , . Translating by a vector in the column space of and multiplying by a positive scalar preserves the statistic: both maximized log-likelihoods acquire the same scale constant. Thus this simulation has the correct null law without knowing or . A conservative Monte Carlo p-value isIn the usual regular limit with increasing independent groups, a variance-component likelihood-ratio test at a boundary instead uses : for , its approximate tail probability is , and at the nonrandomized p-value is one. This approximation is not an exact guarantee for sixteen rats. Alternatively one can compare consistently defined restricted likelihoods with the same and simulate their restricted-ratio null distribution, as in the RLRsim documentation.
For and a full-column-rank design matrix , take with and . Then , so restricted maximum likelihood maximizesChanging the orthonormal basis by an orthogonal matrix leaves this expression unchanged.