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 iii Paper 206 4 b Solution Created 2026-10-03 Updated 2026-10-06
For independent patients, the Bernoulli logistic-regression model iswhere with nonfrail patients as the reference level in a regression factor. The fitted linear predictor isThe null model fits one intercept, so its 99 residual degrees of freedom imply 100 patients; the full model's confirms this. Unit weights correspond to individual binary responses, not grouped binomial counts.
The Akaike information criterion estimates expected relative out-of-sample discrepancy, using the maximized log-likelihood plus a complexity penalty:Here , since the Bernoulli dispersion is fixed at one. The saturated model puts probability one on each observed binary outcome and has log likelihood zero, so the binomial deviance is . ConsequentlyThere is no estimated error-variance parameter to count. The printed name “Aikake” should be read as Akaike.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 206 2 a Solution Created 2026-10-03 Updated 2026-10-05
For independent random variables , the full logistic regression has linear predictorLayout A is the reference level in a regression factor. The smaller model sets , leaving the same logit link and the price predictor. In either caseThe saturated statistical model allows a separate probability per observation; its maximizing probabilities are , with log-likelihood zero under . Hence the binomial deviance for either fitted model isEquivalently, write the summands as . The fitted probabilities differ between the two models, but the definition of binomial deviance is the same. A residual deviance for individual binary data need not itself have an accurate chi-squared distribution approximation; the nested-model difference used next has a different asymptotic justification.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 206 2 c Solution Created 2026-10-03 Updated 2026-10-05
Using the smaller logistic regression, approximate pointwise Wald confidence intervals are an estimate plus or minus times its standard error:Both intervals rely on the large-sample normal approximation and correct model assumptions. The negative slope indicates decreasing purchase probability as price rises. A one-unit price increase multiplies the odds by ; it does not subtract a fixed amount from the probability. There is no significant additional layout effect in the previous likelihood-ratio test, rather than a demonstration of no effect.
In the selected model layout B has the same prediction rule as the other layouts. At price 100 the linear predictor is . Applying the inverse logit link givesThe intercept refers to price zero; if that lies outside the observed price range, its direct substantive interpretation would require extrapolation.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 216 3 a Solution Created 2026-10-03 Updated 2026-10-05
Write , , and . We keep the model's printed coefficient literally. Its latent log odds can be writtenThe independence of the is conditional on : they are not marginally independent when the random effects are correlated.
Holding the other predictors and the random-effect realization fixed, increasing predictor by one shifts the latent log odds by , so it multiplies the conditional odds of a late departure by . For a binary snow indicator, this compares the snow and no-snow days with other predictors held fixed. This is a conditional odds ratio, not generally the same as a marginal odds ratio after integrating the random effects.
Randomizing allows unmeasured daily conditions to change the success probability beyond the systematic linear predictor. In this logistic-normal regression with autoregressive random effects, let and . The law of total variance givesso the mixture allows overdispersion beyond a binomial distribution with fixed probability. The correlated part also allows related outcomes on nearby days.
The stationary autoregressive process of order one has and . HenceThe term is unstructured daily variability, whereas is the temporally correlated component under the printed parameterization. Larger gives greater persistence: the lag- correlation of the latent log odds is .
The PDF itself prints both the coefficient and the requested combination . They are inconsistent as a marginal variance. If the intended coefficient were , the variance and off-diagonal covariance would instead be and . The prior's argument list also repeats ; its displayed density indicates the intended second variance parameter is .
There is a further substantive issue with that improper prior. After integrating the latent variables, the observed-data likelihood function is positive and continuous at for fixed finite , positive , and . On a compact positive-volume set of those parameters it therefore has a positive lower bound for small . The prior density is , so integrating over gives . Thus the stated joint posterior distribution is improper, an instance of improper posterior from a log-uniform random-effect scale prior. The requested fixed-parameter conditional laws below are nevertheless proper; their existence does not remedy the joint impropriety.
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 4 13J b Solution Created 2026-09-24 Updated 2026-10-03
Whenever players 1 and 2 occur, the linear predictor contains their parameters only throughFor any constants , replacingleaves every fitted probability and hence the likelihood function unchanged. The parameterization is therefore nonidentifiable: at most can be estimated uniquely. Hence there is no unique maximum-likelihood estimate of the three separate parameters.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 4 13J a Solution Created 2026-09-24 Updated 2026-09-29
A generalized linear model assumes independent responses from one exponential dispersion family,where , , and a link function relates the mean to the linear predictor by . It follows from normalization of the density after shifting the natural parameter thatIndependence therefore gives the joint moment-generating functionwhenever every shifted natural parameter lies in its natural-parameter domain.
Past exam of the mathematics course of the University of Cambridge 2021 ii Paper 2 5J Solution Created 2026-09-23 Updated 2026-09-25
A generalized linear model assumes that the independent responses have distributions in an exponential family, with means , and thatThe invertible function is the link function; it connects the mean to the linear predictor.
For binomial regression, write independently, so . The logistic regression link iswhile probit regression useswhere is the standard-normal distribution function. The logit is the canonical link function for the binomial family.
Two-step prediction for an MA(1) process 2026-10-07
In a centered MA(1) process, is uncorrelated with every observation through time . Its best linear predictor from that information is therefore zero, with error variance . One-step innovation formulas using cannot be substituted when that observation is unavailable.