CS/ECE/ISyE 524 Introduction to Optimization Spring 2017–18
- 8. Least squares
❼ Review of linear equations ❼ Least squares ❼ Example: curve-fitting ❼ Vector norms ❼ Geometrical intuition
Laurent Lessard (www.laurentlessard.com)
8. Least squares Review of linear equations Least squares Example: - - PowerPoint PPT Presentation
CS/ECE/ISyE 524 Introduction to Optimization Spring 201718 8. Least squares Review of linear equations Least squares Example: curve-fitting Vector norms Geometrical intuition Laurent Lessard (www.laurentlessard.com)
CS/ECE/ISyE 524 Introduction to Optimization Spring 2017–18
Laurent Lessard (www.laurentlessard.com)
8-2
8-3
i x = bi where ˜
i is the ith row of A.
1
2
m
1 x
2 x
mx
8-4
◮ Can we find x so that Ax ≈ b ? ◮ One possibility is to use least squares.
◮ Among all solutions to Ax = b, which one should we pick? ◮ One possibility is to use regularization.
8-5
x
8-6
1 + · · · + x2 n =
8-7
8-8
i is the ith row of A, define
i x − bi to be the ith residual component.
1 x − b1)2 + · · · + (˜
mx − bm)2
8-9
1 + qx1 + r
2 + qx2 + r
m + qxm + r
1
2
m
8-10
1
2
m
8-11
i
1 + r 2 2 + · · · + r 2 m 8-12
1 2 3 4 x
1 2 3 4 y
8-13
x
1 2 3 4 x
1 2 3 4 f(x)
8-14
x
1 2 3 4 x
1 2 3 4 f(x)
8-15
x (x − 1)2 + (x − 2)2
1 2 3 4 x
1 2 3 4 f(x)
8-16
x
1 2 3 4 x
1 2 3 4 f(x)
8-17
x
i
i x − ri
x,t
i x − ri ≤ t
x m
i x − ri
x,ti
i x − ri ≤ ti
x m
i x − ri
8-18
8-19
8-20
x
8-21
8-22
8-23