BDA3 Chapter 14 Exercise 3

Here’s my solution to exercise 3, chapter 14, of Gelman’s Bayesian Data Analysis (BDA), 3rd edition. There are solutions to some of the exercises on the book’s webpage.

We need to reexpress (yXβ)T(yXβ) as (μβ)TΣ1(μβ), for some μ, Σ. Using the QR-decomposition of X=QR, we see

(yXβ)T(yXβ)=(QT(yXβ))TQT(yXβ)=(QTyQTXβ)T(QTyQTXβ)=(QTyRβ)T(QTyRβ),

where Q is orthogonal and R an invertible upper triangular matrix. We can read off the minimum of this quadratic form as

ˆβ=R1QTy,

which shows that μ=ˆβ=R1QTy. Note that

(XTX)1XT=(RTR)1RTQT=R1RTRTQT=R1QT

so that ˆβ=(XTX)1XTy.

Expanding the brackets of both quadratic form expressions and comparing the quadratic coefficients, we see that

Σ1=RTR=XTX,

which shows that Vβ=(XTX)1, in the notation of page 355.