Of Notes
Completing the square for the Gaussian conditional and marginal
Problem
Use completing the square in the exponent to derive the results in PRML Eqs. (2.141)-(2.142), the conditional and marginal Gaussian formulae.
Solution
First problem:
Likelihood and prior:
Bayes, dropping the normalising constants:
Expand both squares:
Collect by power of
so the exponent is
Complete the square:
Match coefficients:
Precision:
Mean (multiply top and bottom by