Professional Documents
Culture Documents
Linear Inverse Problems and Introduction To Least Squares
Linear Inverse Problems and Introduction To Least Squares
Linear Inverse Problems and Introduction To Least Squares
Surprise Quiz!
Lemma (you can assume)
( a b) 2 a 2 b 2
x y
x
y
...
x1 x2 ... xn
x1 x2
xn
Solution
( a b)
a
b
is given
x y
x
y
2
Thus,
x1 x2
x1 x2
And,
...
12 22 ... n2
12
22
n2
(11 2 2 ... n n ) 2 (12 22 ... n2 )( 12 22 ... n2 )
2
2
2
i i i i , QED
i
i
i
y1 ax1 b
y1 ax1 b
y2 ax2 b
Case 3
y1 ax1 b
y2 ax2 b
y3 ax3 b
y1 ax1 b
y1 ax1 b
Infinite
One
y2 ax2 b
Case 3
y1 ax1 b
y2 ax2 b
y3 ax3 b
None
Under-determined System
y1 ax1 b
Matrix-Vector Notation:
a
y1 x1 1
b
y1 x1 1 a
y x 1 b
2 2
y2 ax2 b
Over-Determined System
y1 x1 1
y x 1 a
2 2 b
y3 x3 1
y1 ax1 b
y2 ax2 b
y3 ax3 b
a ,b
yi (axi b)
2 yi (axi b) 0
i
yi (axi b)
2 xi yi (axi b) 0
i
yi a xi b1,
i
2
x
y
a
x
i i i b xi
xi yi
xi
yi
yi
xi2
xi
2
xi
xi
xi yi
2
xi
xi
Homework
Find the least squares fit for a second degree
polynomial of the form,
y ax bx c
2
General Form
y1
Y ...
yn
x1p
...
xnp
p 1
1
...
p 1
n
...
a1
...
...
an
...
2
2
Solution
Y
2
2
(Y )T (Y )
Solution
Y
2
2
(Y ) (Y )
T
Y T Y Y T T T Y T T
Taking the gradient
Y
2
2
Solution
Y
2
2
(Y ) (Y )
T
Y T Y Y T T T Y T T
Taking the gradient
Y
2
2
T Y T Y 2 T 0
The Normal Equations
T LS T Y LS ( T ) 1 T Y
T
1
T
Pseudo Inverse: ( )
This is also the left inverse of a tall matrix ,
T
1
T
i.e. ( ) I