What are the posterior predictive mean and variance of Gaussian process regression, and how are they derived? With one training point , , noise variance and kernel , what are they at ?
Probabilistic models, Gaussian processes
Level L3 Intermediate. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can set up the joint Gaussian of the training targets and the test function value, condition on the data, and interpret the result.
Key idea
Under a zero-mean GP prior, so Gaussian conditioning gives and .
Steps
- State the model: , with . Define and .
- Write the joint Gaussian in the key idea. The noise adds only to the training block, because is the noise-free function value.
- Apply the conditioning formulas and , with as block 1 and as block 2.
- Numbers: , so ; ; .
- Mean: . Variance: . For a new noisy observation , add : .
- Interpret: the mean is pulled towards the observation in proportion to kernel similarity; the variance shrinks near the data and returns to the prior variance 1 far away. The inverse costs , so in practice use a Cholesky factorisation.
Common mistakes
- Adding to when asked about the latent , or forgetting it when asked about .
- Using instead of , which is wrong for noisy data and numerically unstable.
- Thinking the posterior variance depends on the observed values. It depends only on the input locations and the kernel.
How long your answer should be
One page: the derivation in 4–5 lines, then the numbers; about 8 minutes.
Last checked on 4 December 2026.
Read this
Previous in Probabilistic models: Why does an iteration of the EM algorithm never decrease the observed-data log-likelihood?
Next in Probabilistic models: How does the Bayesian model evidence penalise an over-complex model, without any explicit penalty term?