03 Linear Regression
03 Linear Regression
J. Elder
Credits
Probability & Bayesian Inference
Bishop, Microsoft UK
J. Elder
J. Elder
J. Elder
( )
()
y = wt! x
where
()
J. Elder
Generally
J. Elder
J. Elder
Polynomial basis
functions:
small change in x
affects all basis functions.
A small change in a
basis function affects y
for all x.
CSE 4404/5327 Introduction to Machine Learning and Pattern Recognition
J. Elder
J. Elder
J. Elder
J. Elder
J. Elder
J. Elder
Regularization
Probability & Bayesian Inference
14
J. Elder
Regularization
Probability & Bayesian Inference
15
9thOrderPolynomial
J. Elder
Regularization
Probability & Bayesian Inference
16
9thOrderPolynomial
J. Elder
Regularization
Probability & Bayesian Inference
17
9thOrderPolynomial
J. Elder
18
where ! !
1
is the precision of the noise.
2
"
J. Elder
Maximum Likelihood
Probability & Bayesian Inference
19
J. Elder
Maximum Likelihood
Probability & Bayesian Inference
20
J. Elder
Predictive Distribution
21
Generating function
Observed data
Maximum likelihood prediction
Posterior over t
J. Elder
22
The result is to introduce a new quadratic term in w into the error function
to be minimized:
J. Elder
23
J. Elder
Gaussian Bases
Probability & Bayesian Inference
24
J. Elder
25
J. Elder
26
J. Elder
27
where
J. Elder
28
where
The Moore-Penrose
pseudo-inverse,
.
J. Elder
End of Lecture 8
30
J. Elder
31
which is minimized by
is called the
regularization
coefficient.
J. Elder
32
Lasso
Quadratic
J. Elder
33
Iso-contour of
regularization term EW(w)
Quadratic
Lasso
J. Elder
34
J. Elder
35
J. Elder
Multiple Outputs
Probability & Bayesian Inference
36
, and
J. Elder
Multiple Outputs
Probability & Bayesian Inference
37
where
single output case.
J. Elder
38
polyfit
Least-squares
given data
regress
More
J. Elder
39
J. Elder
41
where
J. Elder
42
for which
! =" /#
J. Elder
Data Space
J. Elder
44
Posterior
Data Space
J. Elder
45
Posterior
Data Space
J. Elder
46
Posterior
Data Space
J. Elder
Predictive Distribution
Probability & Bayesian Inference
47
where
J. Elder
Predictive Distribution
Probability & Bayesian Inference
48
p t | t,! , "
Samples of y(x,w)
J. Elder
Predictive Distribution
Probability & Bayesian Inference
49
p t | t,! , "
Samples of y(x,w)
J. Elder
Predictive Distribution
Probability & Bayesian Inference
50
p t | t,! , "
Samples of y(x,w)
J. Elder
Predictive Distribution
Probability & Bayesian Inference
51
p t | t,! , "
Samples of y(x,w)
J. Elder
Equivalent Kernel
Probability & Bayesian Inference
52
Equivalent kernel or
smoother matrix.
J. Elder
Equivalent Kernel
53
J. Elder
54
J. Elder