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 2025 iii Paper 219 4 a Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
One simple algorithm is importance sampling from the prior. Draw independently from and assign weight . Thenestimates the Bayesian model evidence, and the normalized weights represent the posterior. A weighted histogram or kernel density estimation of the estimates the marginal ; discarding performs the marginalization.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 3 c Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
The Markov factorization isDifferentiating its log-likelihood with respect to givesIts coefficients sum to one, so it is unbiased. Direct covariance calculation, equivalently inversion of its Fisher information, givesThus the variance tends to as , because the observations become perfectly correlated, and to as , because they become three independent draws.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 3 b Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
As , . Therefore the posterior predictive mean tends to and its variance tends to : a sufficiently distant observation has reverted to the stationary prior distribution.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 3 a Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Put and retain , which equals one for the stated exponential covariance function. The covariance matrix of isConditioning a multivariate normal distribution and simplifying givesThe absence of from both conditional moments shows that and are conditionally independent given . Equivalently, the exponential-kernel Gaussian process is the stationary Ornstein-Uhlenbeck process, which is Markov.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 2 d Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
The marginal predictor density isGaussian conditional expectation givesIntegrating this conditional distribution through the response model yields
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 2 c Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Take flat priors on and scale priors on the positive variances. The posterior distribution is thenA random-walk Metropolis–Hastings algorithm can update with a symmetric proposal and accept a proposed state from with probability , including the Jacobian if the target is represented in transformed coordinates. Its transition kernel satisfieswhich is detailed balance; hence the posterior is stationary.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 2 b Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
First integrate out : conditional on , with . Since is an affine transformation of independent normal variables, it is bivariate normal with meanand covarianceIts determinant simplifies toFor , the observed-data likelihood is therefore
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 2 a Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 1 f Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
By invariance of maximum likelihood,Because , the ratio is log-normal. Its exact variance isAs , all sampling terms vanish but retains . The dominant remaining uncertainty is therefore the parallax calibration of the LMC distance modulus.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 1 e Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Differentiating the log-likelihood gives the unique stationary pointIts Hessian is diagonal with entries , , and , so it is the unique maximum. The estimators are unbiased and have varianceswhich equal their Cramér-Rao lower bounds because the normal location statistics are efficient.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 1 d Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
All three sets of statistics are independent. With , , and , their likelihood function, up to a parameter-independent factor, is
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 1 c Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 1 b Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
The common distance modulus of calibrator galaxy cancels between its supernova and mean Cepheid apparent magnitudes. Their independent intrinsic scatters therefore giveThus and .
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 1 a Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
An apparent magnitude is the sum of absolute magnitude and distance modulus. ThusThe independent unbiased distance-modulus estimate is , so closure of independent normal distributions under linear combinations givesHence and .
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 218 5 e Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Let , letand recover the sufficient cross-products from the model1 normal equations by setting and . Thenis the total squared residual about the fixed line. The squared sum of the ten residuals within each person, summed across people, isFor one person's ten observations, the marginal covariance matrix is . The matrix determinant lemma and Sherman–Morrison formula therefore give, up to an additive constant, twice the negative marginal log-likelihoodBecause the model was fitted with
REML = FALSE, it minimizes this ordinary marginal maximum-likelihood objective. Thus belongs to the stated argmin over and . Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 218 5 c Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
The residual deviance of a Gaussian GLM is its residual sum of squares, . Thus the empirical training error for squared-error loss isIf training error is defined as the unnormalized total loss, its value is .
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 218 5 b Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Repeated measurements from one person can share persistent unobserved spending tendencies, violating model1's independent-error assumption and shifting that person's baseline. Model2 represents this clustered data through a common random intercept , which induces within-person covariance for .
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 218 5 a Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Model1 is the simple linear regressionModel2 is a random-intercept linear mixed modelwith the random intercepts and errors mutually independent.
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





