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.
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 .
Rank-one Cholesky update 2026-09-28
Given a Cholesky decomposition , a rank-one Cholesky update computes a triangular factor of in operations without refactorizing the matrix from scratch.