Professional Documents
Culture Documents
05 Ls
05 Ls
Stephen Boyd
Lecture 5
Least-squares
51
Least-squares
52
Geometric interpretation
r
Axls
R(A)
Least-squares
53
54
Least-squares
55
Projection on R(A)
Axls is (by definition) the point in R(A) that is closest to y, i.e., it is the
projection of y onto R(A)
Axls = PR(A)(y)
the projection function PR(A) is linear, and given by
PR(A)(y) = Axls = A(AT A)1AT y
A(AT A)1AT is called the projection matrix (associated with R(A))
Least-squares
56
Orthogonality principle
optimal residual
r = Axls y = (A(AT A)1AT I)y
is orthogonal to R(A):
hr, Azi = y T (A(AT A)1AT I)T Az = 0
for all z Rn
y r
Axls
R(A)
Least-squares
57
Least-squares
58
R1
0
Least-squares
2
R1
=
[Q1 Q2]
x y
0
2
R1
T
T
=
[Q1 Q2] [Q1 Q2]
x [Q1 Q2] y
0
59
R1x QT1 y
2
=
T
Q2 y
Least-squares
510
Least-squares estimation
y = Ax + v
x is what we want to estimate or reconstruct
y is our sensor measurement(s)
v is an unknown noise or measurement error (assumed small)
ith row of A characterizes ith sensor
Least-squares
511
Least-squares
512
BLUE property
linear measurement with noise:
y = Ax + v
with A full rank, skinny
Least-squares
513
2
Bij
A2
ij
i,j
Least-squares
514
k1
k4
x
unknown position
k2
k3
515
y =
k1T
k2T
k3T
k4T
x + v
516
compute estimate x
by inverting top (2 2) half of A:
x
= Bjey =
0 1.0 0 0
1.12
0.5 0 0
y=
2.84
11.9
Least-squares
517
Least-squares method
compute estimate x
by least-squares:
x
= A y =
0.23 0.48
0.04
0.44
0.47 0.02 0.51 0.18
y=
4.95
10.26
Least-squares
518
H(s)
A/D
j 1 t < j,
j = 1, . . . , 10
h(t )u( ) d
519
3-bit quantization: yi = Q(
yi), i = 1, . . . , 100, where Q is 3-bit
quantizer characteristic
Q(a) = (1/4) (round(4a + 1/2) 1/2)
problem: estimate x R10 given y R100
example:
u(t)
1
0
1
10
10
10
10
s(t)
1.5
1
0.5
y(t) w(t)
0
1
0
1
1
0
1
t
Least-squares
520
we have y = Ax + v, where
A R10010 is given by Aij =
j1
h(0.1i ) d
Least-squares
0.8
0.6
0.4
0.2
0.2
0.4
0.6
0.8
10
t
521
RMS error is
kx xlsk
= 0.03
10
Least-squares
522
row 2
row 5
0.05
10
10
10
0.15
0.1
0.05
0
0.05
row 8
0.15
0.1
0.05
0
0.05
523