Show that the predictive distribution of Bayesian linear regression at a new input x has variance σN2(x)=1β+ϕ⊤SNϕ, where ϕ=ϕ(x) is the feature vector. How do you show that the second term can only shrink when a new data point is added?

Probabilistic models, Bayesian linear regression
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can split predictive uncertainty into noise and parameter uncertainty, and prove it decreases with data using the Sherman–Morrison identity.

Key idea

t=w⊤ϕ+ε with w and ε independent Gaussians, so the variances add. Adding a point updates SN−1→SN−1+βϕN+1ϕN+1⊤, a positive semi-definite increase in precision.

Steps

  1. Write t=w⊤ϕ+ε with w∼N(mN,SN) and ε∼N(0,β−1), independent. A linear function of Gaussians is Gaussian.
  2. Mean: mN⊤ϕ. Variance: Var(w⊤ϕ)+Var(ε)=ϕ⊤SNϕ+β−1.
  3. After a new point ϕN+1: SN+1−1=SN−1+β ϕN+1ϕN+1⊤.
  4. Sherman–Morrison: SN+1=SN−β SNϕN+1ϕN+1⊤SN1+β ϕN+1⊤SNϕN+1.
  5. Then ϕ⊤SN+1ϕ=ϕ⊤SNϕ−β (ϕ⊤SNϕN+1)21+β ϕN+1⊤SNϕN+1. The subtracted term is non-negative, so σN+12(x)≤σN2(x).
  6. Consequence: as data accumulate in all directions of feature space, SN→0 and the variance tends to the noise floor 1/β. The noise part never goes away.

Common mistakes

How long your answer should be

Half a page. About 4 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probabilistic models: For Bayesian linear regression with prior w∼N(0,α−1I) and likelihood t∼N(Φw,β−1I), how do you derive the posterior p(w∣t) by completing the square, and how does its mean relate to ridge regression?
Next in Probabilistic models: A GP with kernel k(x,x′)=exp⁡(−(x−x′)2/2) and noise variance σ2=0.1 is trained on (x,y)=(0,1) and (1,2). What are the predictive mean and variance at x∗=0.5?