CSE 5523: �Regression
Hw-1
Today
Linear regression
Nonlinear regression
Linear regression
4
Linear regression
5
x: area
y: price
Regression (house price):
From x (area), predict y (price)
Linear relationship
Today
Linear regression
Nonlinear regression
Least mean square (LMS) solution
7
Least mean square (LMS) solution
8
Least mean square (LMS) solution
9
More useful tools in the Matrix Cookbook!
Least mean square (LMS) solution: another way
10
Mini summary
11
Today
Linear regression
Nonlinear regression
Recap: Eigen-decomposition (ED)
13
Recap: Singular value decomposition (SVD)
14
(D x D)
(D x N)
(N x N)
Non-negative
Orthonormal, unitary
Orthonormal, unitary
(D x N)
Recap: SVD + ED
15
Definition of SVD
Why not invertible?
16
How to make it invertible?
17
Practice!
18
Summary
19
Today
Linear regression
Nonlinear regression
A little more math
21
A little more math
22
What does ridge regression do?
23
Ridge regression: The one closest to the origin
Questions?
A little more math: convex functions
25
A little more math: convex functions
26
A little more math: convex functions
27
Caution
Questions?
Today
Linear regression
Nonlinear regression
Nonlinear regression
31
Nonlinear regression: representation
32
Nonlinear regression: representation
33
Nonlinear regression: representation
34
Nonlinear regression: parameter estimation
35
Questions?
Nonlinear regression: example
37
Nonlinear regression: example
h too simple
h too complicated
training error = 0
38
[Slides: from USC CSCI567]
Nonlinear regression: example
39
[Slides: from USC CSCI567]
Training vs. testing
40
x
y
In training, we only see training data!
Choosing a more complicated hypothesis class does not necessarily lead to lower test errors!
Over-fitting vs. hypothesis class (brief)
41
Nonlinear regression: example
42