Docsity

Overdetermined Linear Equations - Matrix Computation - Lecture Slides, Slides of Advanced Computer Architecture

Toggle sidebar
bg1
Overdetermined linear equations
consider y=Ax where A∈Rm×nis (strictly) skinny, i.e.,m > n
•called overdetermined set of linear equations
(more equations than unknowns)
•for most y, cannot solve for x
one approach to approximately solve y=Ax:
•define residual or error r=Ax −y
•find x=xls that minimizes krk
xls called least-squares (approximate) solution of y=Ax
Least-squares 5–2
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download Overdetermined Linear Equations - Matrix Computation - Lecture Slides and more Slides Advanced Computer Architecture in PDF only on Docsity!

Overdetermined linear equations

consider

y

Ax

where

A

R

m

×

n

is (strictly) skinny,

i.e.

m > n

called

overdetermined

set of linear equations

(more equations than unknowns)

for most

y

, cannot solve for

x

one approach to

approximately

solve

y

Ax

define

residual

or error

r

Ax

y

find

x

x

ls

that minimizes

r

x

ls

called

least-squares

(approximate) solution of

y

Ax

Least-squares

5–

Geometric interpretation

Ax

ls

is point in

R

A

closest to

y

Ax

ls

is

projection

of

y

onto

R

A

R

A

y

Ax

ls

r

Least-squares

5–

x

ls

is linear function of

y

x

ls

A

−

1

y

if

A

is square

x

ls

solves

y

Ax

ls

if

y

∈ R

A

A

†

A

T

A

−

1

A

T

is called the

pseudo-inverse

of

A

A

†

is a

left inverse

of (full rank, skinny)

A

A

†

A

A

T

A

−

1

A

T

A

I

Least-squares

5–

Projection on

R

A

Ax

ls

is (by definition) the point in

R

A

that is closest to

y

i.e.

, it is the

projection

of

y

onto

R

A

Ax

ls

P

R

(

A

)

y

the projection function

P

R

(

A

)

is linear, and given by

P

R

(

A

)

y

Ax

ls

A

A

T

A

−

1

A

T

y

A

A

T

A

−

1

A

T

is called the

projection matrix

(associated with

R

A

Least-squares

5–

Completion of squares

since

r

Ax

ls

y

A

x

x

ls

for any

x

, we have

Ax

y

2

Ax

ls

y

A

x

x

ls

2

Ax

ls

y

2

A

x

x

ls

2

this shows that for

x

x

ls

Ax

y

Ax

ls

y

Least-squares

5–

Least-squares via

QR

factorization

A

R

m

×

n

skinny, full rank

factor as

A

QR

with

Q

T

Q

I

n

R

R

n

×

n

upper triangular,

invertible

pseudo-inverse is

A

T

A

−

1

A

T

R

T

Q

T

QR

−

1

R

T

Q

T

R

−

1

Q

T

so

x

ls

R

−

1

Q

T

y

projection on

R

A

given by matrix

A

A

T

A

−

1

A

T

AR

−

1

Q

T

QQ

T

Least-squares

5–

[

R

1

x

Q

T 1

y

Q

T 2

y

]∥

2

R

1

x

Q

T 1

y

2

Q

T 2

y

2

this is evidently minimized by choice

x

ls

R

−

1

1

Q

T 1

y

(which makes first term zero)

residual with optimal

x

is

Ax

ls

y

Q

2

Q

T 2

y

Q

1

Q

T 1

gives projection onto

R

A

Q

2

Q

T 2

gives projection onto

R

A

⊥

Least-squares

5–

Least-squares estimation

many applications in inversion, estimation, and reconstruction problemshave form

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)

i

th row of

A

characterizes

i

th sensor

Least-squares

5–

BLUE property

linear measurement with noise:

y

Ax

v

with

A

full rank, skinny

consider a

linear estimator

of form

x

By

called

unbiased

if

x

x

whenever

v

i.e.

, no estimation error when there is no noise)

same as

BA

I

i.e.

B

is left inverse of

A

Least-squares

5–

estimation error of unbiased linear estimator is

x

x

x

B

Ax

v

Bv

obviously, then, we’d like

B

‘small’ (and

BA

I

fact:

A

†

A

T

A

−

1

A

T

is the

smallest

left inverse of

A

, in the

following sense:for any

B

with

BA

I

, we have

i,j

B

2 ij

i,j

A

†

2

ij

i.e.

, least-squares provides the

best linear unbiased estimator

(BLUE)

Least-squares

5–

ranges

y

R

4

measured, with measurement noise

v

y

k

T 1

k

T 2

k

T 3

k

T 4

x

v

where

k

i

is unit vector from

to beacon

i

measurement errors are independent, Gaussian, with standard deviation

(details not important) problem:

estimate

x

R

2

, given

y

R

4

(roughly speaking, a

measurement redundancy ratio)

actual position is

x

measurement is

y

Least-squares

5–

Just enough measurements method

y

1

and

y

2

suffice to find

x

(when

v

compute estimate

x

by inverting top (

×

) half of

A

x

B

je

y

[

]

y

[

]

(norm of error:

Least-squares

5–

Example from overview lecture

u

w

y

H

s

A/D

signal

u

is piecewise constant, period

1 sec

t

u

t

x

j

j

t < j,

j

filtered by system with impulse response

h

t

w

t

t

0

h

t

τ

u

τ

dτ

sample at

Hz:

y

i

w

i

i

Least-squares

5–

3-bit quantization:

y

i

Q

y

i

i

, where

Q

is 3-bit

quantizer characteristic

Q

a

round

a

problem:

estimate

x

R

10

given

y

R

100

example:

0

1

2

3

4

5

6

7

8

9

10

0

1

0

1

2

3

4

5

6

7

8

9

10

−

1 0

0

1

2

3

4

5

6

7

8

9

10

−

1 0

0

1

2

3

4

5

6

7

8

9

10

−

1 0

)t( s

)t(u )t( w )t(y

t

Least-squares

5–