What does a Gaussian process define, and how does the length-scale ℓ of the RBF kernel k(x,x′)=σf2exp⁡ ⁣(−(x−x′)22ℓ2) 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 f(x1),…,f(xn) at any finite set of inputs are jointly Gaussian with covariance Kij=k(xi,xj). The kernel decides how strongly nearby inputs are correlated, so ℓ sets how fast the function can change.

Steps

  1. A GP is a distribution over functions. For any inputs x1,…,xn, the vector (f(x1),…,f(xn)) is Gaussian with mean m(xi) (often 0) and covariance Kij=k(xi,xj).
  2. The kernel gives the covariance between function values. For the RBF kernel it decays as the distance ∣x−x′∣ grows, and ℓ says how quickly.
  3. Take two inputs a distance 1 apart with σf=1. The correlation is exp⁡(−1/(2ℓ2)). For ℓ=0.5 this is e−2=0.14. For ℓ=1 it is e−0.5=0.61. For ℓ=2 it is e−0.125=0.88.
  4. So a small ℓ means values decorrelate quickly and sample functions wiggle. A large ℓ means values stay correlated, so functions are smooth and slowly varying.
  5. The amplitude σf2 controls how far the function moves vertically. Training data then condition this prior to give a posterior over functions.

Common mistakes

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 p(D∣M) 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 θd and ϕk represent?