Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2016/iii/paper-208/4/c/solution

Use the spectral theorem for real symmetric matrices to write , with orthogonal and , . Set and generate
Then . The characteristic function is
which identifies the multivariate normal distribution . Equivalently, every linear combination is normal, with the required mean and variance. A Cholesky decomposition can be used for a positive-definite matrix. The spectral construction also works for singular , producing a degenerate Gaussian distribution on an affine subspace; in that case there need not be a density on all of .

New to topics? Read the docs here!