Show that Bayesian linear regression with features ϕ(x) and weight prior w∼N(0,Σp) is a Gaussian process, and that its predictive mean and variance equal the GP formulas with k(x,x′)=ϕ(x)⊤Σpϕ(x′). What does this imply for the RBF kernel?

Probabilistic models, Gaussian processes
Level L5 Expert. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can move between weight space and function space using the push-through identity and the matrix inversion lemma.

Key idea

Weight-space predictions use A=σ−2Φ⊤Φ+Σp−1 (an M×M matrix). The identity A−1σ−2Φ⊤=ΣpΦ⊤(ΦΣpΦ⊤+σ2I)−1 converts these to an N×N form that depends only on K=ΦΣpΦ⊤.

Steps

  1. Prior: f(x)=ϕ(x)⊤w is a linear function of a Gaussian, so any finite collection of values is jointly Gaussian with mean 0 and Cov(f(x),f(x′))=ϕ(x)⊤Σpϕ(x′)=k(x,x′). This is a GP.
  2. Weight-space posterior (with Φ the N×M design matrix and noise variance σ2): w∣y∼N(σ−2A−1Φ⊤y, A−1). At a test input, mean =σ−2ϕ∗⊤A−1Φ⊤y and variance =ϕ∗⊤A−1ϕ∗.
  3. Push-through identity: A ΣpΦ⊤=(σ−2Φ⊤Φ+Σp−1)ΣpΦ⊤=σ−2Φ⊤(ΦΣpΦ⊤+σ2I). Multiplying by A−1 on the left and by (K+σ2I)−1 on the right gives ΣpΦ⊤(K+σ2I)−1=σ−2A−1Φ⊤.
  4. Mean: ϕ∗⊤ΣpΦ⊤(K+σ2I)−1y=k∗⊤(K+σ2I)−1y, since k∗=ΦΣpϕ∗. This is the GP mean.
  5. Variance: the matrix inversion lemma gives A−1=Σp−ΣpΦ⊤(K+σ2I)−1ΦΣp. Then ϕ∗⊤A−1ϕ∗=k∗∗−k∗⊤(K+σ2I)−1k∗, the GP variance.
  6. Implication: the RBF kernel equals ϕ(x)⊤ϕ(x′) for an infinite set of Gaussian bump features (a limit of M→∞ bumps spread over the line). So a GP with an RBF kernel is Bayesian linear regression with infinitely many features, and it is computable because the cost is O(N3), not O(M3).

Common mistakes

How long your answer should be

A page or more. About 10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probabilistic models: Show that a single-site Gibbs update is a Metropolis–Hastings move that is always accepted, and that it leaves the target p(x) invariant. Why does a fixed-order sweep not give a reversible chain, and can you give an example where Gibbs sampling fails to converge?
Next in Probabilistic models: Let p(x)=1Z∏CψC(xC) factorise over the cliques of an undirected graph G. Prove that if a set S separates A from B in G (every path from A to B passes through S), then A⊥B∣S. Where does the converse need extra assumptions?