Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 3 13C f Solution Created 2026-09-24 Updated 2026-10-03
Comparison with the multivariate normal density shows that is its precision matrix. Since the mean is zero,
Multiplying on the right by gives . Taking the transpose and using the symmetry of and gives . Hence the stationary covariance obeys the Continuous Lyapunov equationThe same equation follows directly by setting the time derivative of the second-moment equation from part (c) to zero.
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 2022 iii Paper 205 5 Solution 2026-09-28
For disjoint nonempty index sets and , partition the mean and covariance conformably. The conditional multivariate normal distribution isIf the sets overlap, the shared coordinates are fixed and this formula applies to .
Partition into the and blocks. The block-inverse formula identifies the displayed conditional covariance withFor , inversion of the two-by-two precision block givesThe denominator is positive, so the conditional covariance vanishes exactly when . A Gaussian pair is independent exactly when it is uncorrelated, proving
Profiling the Gaussian likelihood over gives . Apart from constants and a positive factor, the negative log-likelihood for the precision matrix isIts derivative is , so the unpenalized minimizer is . The Graphical Lasso solveswith some conventions also penalizing the diagonal.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 1 e Solution 2026-09-28
Put . The Weighted graph Laplacian of the tree is defined byMultiplication of the Gaussian likelihood by the prior shows that, conditionally on the precision parameter ,Completing the square therefore givesAs a function of , the posterior density isso, in shape-rate notation,The precision matrix has the sparsity pattern of a tree. A sparse Cholesky decomposition and its triangular solves have cost and storage on this graph, while the gamma update also costs . Hence each systematic-scan Gibbs sampler iteration costs .
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 221 2 ii Solution Created 2026-09-24 Updated 2026-10-03
Let be the precision matrix, let , and condition on . In the Gaussian exponent, all terms depending jointly on and are contained inIf , this conditional density is a product of one function of and one function of , so the conditional independence of and given holds.
Conversely, conditional independence makes this everywhere-positive conditional density factorize. Its mixed second derivative must therefore vanish:Hence the conditional independence holds exactly when .
Wishart distribution 2026-10-14
For integer , the sum of independent vectors has a Wishart distribution. Its positive-definite density extends to real and is proportional to . It is a conjugate prior for the precision matrix of a multivariate normal distribution. Its mean is .
The WinBUGS declaration
dwish(R, nu) uses ; the density convention is documented in the NIMBLE BUGS-language manual. For it is proper, while the expected inverse matrix does not exist: that expectation requires . Specifying a Wishart prior on precision is therefore a substantive covariance assumption.