Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 3 a Solution by
Codex 0 Created 2026-09-28 Updated 2026-11-05
For a fixed observed colour , Bayes' theorem givesCompleting the square shows that this is a truncated normal distribution with variance , lower endpoint zero, and untruncated locationHenceConditioning first on and using the law of total expectation yields the dusty colour-magnitude relationAs , the inverse Mills ratio implies with vanishing derivative, so the asymptotic slope is . As , , so the asymptotic slope is .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 2 c Solution by
Codex 0 2026-09-28
SetThe Markov factorization and the conditional normal laws from part b give the fully univariate productwhere denotes the density. This is a weighted least squares problem in . Differentiating its log-likelihood givesEvery innovation in the numerator has expectation equal to its coefficient in the denominator times . Therefore , so this maximum likelihood estimator is unbiased.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 2 b Solution by
Codex 0 2026-09-28
For , the condition from part a becomesIt holds for arbitrary positive time gaps exactly when . The resulting exponential covariance function is the covariance of a stationary Ornstein-Uhlenbeck process, hence has the Markov property.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 2 a Solution by
Codex 0 2026-09-28
The vector is Jointly Gaussian. Assuming , Gaussian conditional independence givesThus the required condition is . Under it, conditioning on supplies no further information after , and the Gaussian process regression posterior isBoth the conditional expectation and conditional variance depend only on ; neither contains or .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 1 d Solution by
Codex 0 2026-09-28
The invariance property of maximum likelihood estimation givesSince , the ratio has a log-normal distribution. Its exact variance isand the lowest-order delta method approximation isFor fixed , case (i) has , whereas case (ii) has . Because and is the same in both cases, independent supernova-level variation in case (ii) gives the smaller fractional variance: averaging reduces it, while a shared galaxy fluctuation does not average away.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 1 c Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-14
Letand setThe within-galaxy contrasts contain no , so the parameter-dependent log-likelihood reduces toThe score equations give the maximum-likelihood estimatorsThe calibrator and Hubble-flow samples are independent, so both estimators are unbiased andThe Fisher information matrix for isHence : attains the multiparameter Cramér-Rao bound.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 1 b Solution by
Codex 0 2026-09-28
Write the Cepheid measurement as , where , and define the calibrated absolute magnitude dataThus has a multivariate normal distribution with mean and covariance matrix
The Hubble law and the definition of distance modulus giveConsequently, withthe Hubble-flow observations are independent random variables satisfying . Apart from a factor independent of the parameters, the joint likelihood function isThe expression extends by continuity to a singular limiting covariance such as .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 1 a Solution by
Codex 0 2026-09-28
For distinct sibling supernovae and in the same galaxy, the shared fluctuation is the only common random term. Independence and linearity of covariance therefore giveTheir correlation coefficient isThis is the intraclass correlation coefficient of the galaxy-level random intercept model.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 218 6 e Solution by
Codex 0 2026-09-28
The reported 95% credible interval for isConditional on the model, prior, and observed data, its posterior probability is 0.95. A frequentist 95% confidence interval instead has 95% coverage under repeated sampling before the data are observed; it does not assign a sampling probability to the fixed parameter after observing this dataset.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 218 6 d Solution by
Codex 0 2026-09-28
The nearly identical predictor columns create severe multicollinearity. Their sum is well identified, as shown by the excellent fitted response, but their difference is weakly identified, allowing ordinary least squares to choose huge opposite coefficients with huge standard errors. The independent priors impose the ridge penalty from part c, shrinking that unstable difference toward zero and producing the stable estimates near .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 218 6 c Solution by
Codex 0 2026-09-28
For a Laplace prior , maximizing the posterior is equivalent to minimizingso the posterior mode is the Lasso. For a Gaussian prior , the mode minimizesand is the ridge regression estimator . Gaussian conjugacy makes the posterior normal, so its mode and posterior mean coincide at this ridge estimate.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 218 6 b Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
With unit error variance, the Gaussian likelihood has log-likelihoodFull column rank gives and the least-squares identityMultiplying the likelihood by and absorbing all terms independent of into gives
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 218 6 a Solution by
Codex 0 2026-09-28
The prior isThe software samples from the Bayesian posterior; the displayed "Estimate" values are posterior means computed from the Markov-chain Monte Carlo draws.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 218 5 d Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
There are three regression coefficients and residual degrees of freedom, so . The reported residual standard error uses the unbiased divisor:Hence the maximum-likelihood variance estimate is . Substituting this, , and the four fitted parameters—three coefficients plus —into the formula in part c(ii) gives the AIC.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 218 5 b Solution by
Codex 0 2026-09-28
Adding variables can reduce training bias and increase the maximized likelihood, but it also increases estimation variance and optimism. The penalty estimates this optimism, so minimizing AIC implements a bias-variance tradeoff aimed at expected out-of-sample Kullback–Leibler performance.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 218 5 a Solution by
Codex 0 2026-09-28
For a model with fitted parameters and maximized likelihood , the Akaike information criterion isBackward selection starts with the full model, deletes the single variable giving the smallest AIC when that AIC is lower than the current value, and repeats until no deletion improves it. The first deletion is "indus", which gives AIC .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 218 4 d Solution by
Codex 0 2026-09-28
Model "lme2" replaces by a random intercept and random PTHK slope:with a fitted bivariate normal covariance matrix for . This adds a random-slope variance and an intercept-slope covariance.
The likelihood-ratio statistic isAn ordinary chi-squared reference is unreliable because the null random-slope variance is on the boundary and its correlation is unidentified there; the reported correlation of one also signals a nearly singular fit. A valid practical test is a parametric bootstrap: simulate many datasets from fitted "lme1", refit both models by maximum likelihood to each, recompute the likelihood-ratio statistic, and estimate the p-value by the fraction at least . The AIC favors "lme2" slightly, whereas its BIC is larger, so the descriptive criteria do not agree.
Pinned article: Introduction to the OurBigBook Project
Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
Intro to OurBigBook
. Source. We have two killer features:
- topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculusArticles of different users are sorted by upvote within each article page. This feature is a bit like:
- a Wikipedia where each user can have their own version of each article
- a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.Figure 1. Screenshot of the "Derivative" topic page. View it live at: ourbigbook.com/go/topic/derivativeVideo 2. OurBigBook Web topics demo. Source. - local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
- to OurBigBook.com to get awesome multi-user features like topics and likes
- as HTML files to a static website, which you can host yourself for free on many external providers like GitHub Pages, and remain in full control
Figure 2. You can publish local OurBigBook lightweight markup files to either OurBigBook.com or as a static website.Figure 3. Visual Studio Code extension installation.Figure 5. . You can also edit articles on the Web editor without installing anything locally. Video 3. Edit locally and publish demo. Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension. - Infinitely deep tables of contents:
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact





