Docsity

Bayesian Linear Regression - Lecture Slides | CAP 6615, Study notes of Computer Science

Partial preview of the text

Download Bayesian Linear Regression - Lecture Slides | CAP 6615 and more Study notes Computer Science in PDF only on Docsity!

  • Bishop Chapter

Last Time

  • Regression via Linear Combination of

Basis Functions^ – Relation between LS and MLE^ – Geometry of Least Squares^ – Regularized Least Squares^ – Multiple Outputs^ – Bias-Variance

Bayesian Linear Regression

-^

Furthermore, the posterior is also Gaussian sinceGaussian is it’s own Conjugate Prior^ – The proof involves multiplying prior by the likelihood

and completing the square in the exponent (it is stillquadratic as a function of

w

)

{^

}

∏=

^  

N n

T

n

T

tn

K

p

1

2

exp ) (

exp

(^

w w x φ w w

t

(^

)^

(^

(^1) −

Φ Φ S t Φ S m w w T

N T N

N^

I
N

p

β

α

β

t

Bayesian Linear Regression

-^

So, choosing regression weights that minimizeLeast Square error with quadratic regularizationis equivalent to Gaussian Likelihood withGaussian prior

-^

The posterior in this case can be calculatedexplicitly.

-^

Furthermore, the full Bayesian approach ofintegrating out the uncertainty can beimplemented because there is an analyticalsolution to the integral

Bayesian Linear Regression

-^

This integral can be calculated analytically

where and

t N

t p

N T

N

N

T N ) (

) ( 1

) ), (

| ( ) , ,, | (^2

2 x φ S x φ x φ m

x

=

=

β

σ

σ

β α t

(^

)

(^

(^1) )

1

−

−

S

t Φ Φ Φ t Φ S m

T

N

T

T

T N

N

I
I

β

α

β

α β

β

Homework – Due Wed. Oct. 3

-^

Repeat the experiments in Figures 3.7 and 3.8, preferably usingMATLAB. For the case of 3.8, verify empirically that the “posteriordistribution becomes narrower” as additional data points areobserved.

-^

Empirically compare the Bayesian approach to the LMS approachby observing performance on test data with the sin(x) approximationproblem.

-^

Problems 3.2, 3.3 (not alternative representations), 3.7, 3.11.

-^

Derive the MLE estimate of w for 3 data points and 2 parameters.(Equation 3.17)