The topic Bayesian linear regression gave every weight the same prior N(0,α−1) and chose α and β by maximizing the evidence. One α shrinks all weights alike: a useful basis function and a useless one pay the same penalty. When we suspect that only a few of many basis functions matter, we want the data to tell us which.
The fix takes one line. Give each weight its own precision:
This prior is called automatic relevance determination (ARD). A large αi is a narrow prior that holds wi close to zero; a small αi is a wide one that lets wi go wherever the data push it.
The rest of the model is unchanged: t=Φw+ε with ε∼N(0,β−1I). The n×M design matrix has entries Φki=φi(xk): row k is the feature vector φ(xk)⊤ of object xk, and column ϕi is basis function φi evaluated on all n objects. The posterior is computed exactly as before, with αI replaced by A:
p(w∣t)=N(w∣m,Σ),Σ=(A+βΦ⊤Φ)−1,m=βΣΦ⊤t.
These are SN and mN of the previous topic. We drop the subscript N so that a subscript can name a weight: mi, Σii.
The running example is the three points of the topic Bayesian linear regression, x=(−1,0,1) and t=(−1,1,2), now with three basis functions: a constant, the slope and a quadratic term,
φ(x)=(1,x,3x2−2),Φ=111−1011−21.
The quadratic term is shifted so that its column is orthogonal to the other two. All three columns are orthogonal, so Φ⊤Φ=diag(3,2,6), the matrix Σ is diagonal, and every weight is computed on its own:
Σii=αi+β∥ϕi∥21,mi=αi+β∥ϕi∥2βϕi⊤t.
We index the weights w0,w1,w2 for the constant, the slope and the quadratic term. Here Φ⊤t=(2,3,−1). Take β=1 and start every αi at 2. Then Σ=diag(1/5,1/4,1/8) and m=(0.4,0.75,−0.125). Least squares would use all three weights, (2/3,3/2,−1/6), and pass through every point: three functions, three points. The question of this topic is whether the data justify the curvature.
Answers are saved on the server and tied to this browser until you sign in.