What does a Gaussian process define, and how does the length-scale of the RBF kernel change the functions it prefers?
Probabilistic models, Gaussian processes
Level L3 Intermediate. Length Short. Nature Th Theoretical.
What's being asked
Whether you see a GP as a distribution over functions specified by a mean and a kernel, and can read the length-scale as a smoothness control.
Key idea
A GP says that the values at any finite set of inputs are jointly Gaussian with covariance . The kernel decides how strongly nearby inputs are correlated, so sets how fast the function can change.
Steps
- A GP is a distribution over functions. For any inputs , the vector is Gaussian with mean (often 0) and covariance .
- The kernel gives the covariance between function values. For the RBF kernel it decays as the distance grows, and says how quickly.
- Take two inputs a distance 1 apart with . The correlation is . For this is . For it is . For it is .
- So a small means values decorrelate quickly and sample functions wiggle. A large means values stay correlated, so functions are smooth and slowly varying.
- The amplitude controls how far the function moves vertically. Training data then condition this prior to give a posterior over functions.
Common mistakes
- Calling a GP a distribution over parameters. It is a distribution directly over functions.
- Thinking a large length-scale means more flexibility. It means less flexibility, so the fit can underfit.
- Forgetting that the prior mean is usually set to 0, so predictions far from the data revert to 0.
How long your answer should be
4–6 sentences with the three correlation numbers.
Read this
Previous in Probabilistic models: How does the Bayesian model evidence penalise an over-complex model, without any explicit penalty term?
Next in Probabilistic models: What is the generative story of latent Dirichlet allocation (LDA), and what do and represent?