Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 350 1 b Solution Created 2026-10-03 Updated 2026-10-05
Write , so the data map is . The Gaussian likelihood and prior distribution giveCompleting the square, or using Gaussian conjugacy for a normal linear model, identifies a multivariate normal distribution with precision matrix . Since , its posterior mean and covariance matrix areThe parameters areFor example, , which checks the square completion.
The orthogonal vectorsare eigenvectors of the covariance matrix. Their respective variances areThey are independent under the posterior distribution, by independence of uncorrelated jointly normal variables. Thus uncertainty is different in the two directions even for positive noise: the data constrain , whereas spans the null space of the data map.
As , the posterior distribution converges to the law ofThis is supported on , and its posterior mean is the minimum-norm least-squares solution. The prior distribution still determines the distribution along the unobserved null space; it has not disappeared. This example of a Gaussian posterior in the zero-noise limit distinguishes exact recovery of an observed component from recovery of the whole unknown.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 350 2 a Solution Created 2026-10-03 Updated 2026-10-05
The conditional mean estimator is the posterior meanprovided the first moment is finite. A maximum a posteriori estimate is any maximizer of the posterior density relative to Lebesgue measure:Existence of the posterior density alone does not guarantee a finite posterior mean or existence of a maximizing point.
For the stated multivariate normal distribution and independent standard Gaussian noise, the negative log of the posterior density, up to a constant, isIts precision matrix is a positive-definite matrix, so Gaussian conjugacy for a normal linear model givesThe two forms agree becauseThe covariance matrix is , and the maximum a posteriori estimate equals the posterior mean for this multivariate normal distribution.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 1 a Solution Created 2026-09-28 Updated 2026-10-03
The likelihood function and prior distribution give the posterior densityCompleting the square in the quadratic form givesThus Gaussian conjugacy for a normal linear model yields
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 1 d Solution 2026-09-28
For the first observations, writeBy Gaussian conjugacy for a normal linear model, the prefix posterior isCompute a Cholesky decomposition of once. If is row of the design matrix, thenThe Rank-one Cholesky update obtains a triangular factor from in operations. Two triangular solves give , and, for , another solve givesThe initial factorization costs and all updates and samples cost . This is within the requested bound.