Vector Norms CSE 541 Roger Crawfis. Vector Norms Measure the magnitude of a vector Is the error in x...

9
Vector Norms CSE 541 Roger Crawfis

Transcript of Vector Norms CSE 541 Roger Crawfis. Vector Norms Measure the magnitude of a vector Is the error in x...

Page 1: Vector Norms CSE 541 Roger Crawfis. Vector Norms Measure the magnitude of a vector Is the error in x small or large? General class of p-norms: 1-norm:

Vector Norms

CSE 541

Roger Crawfis

Page 2: Vector Norms CSE 541 Roger Crawfis. Vector Norms Measure the magnitude of a vector Is the error in x small or large? General class of p-norms: 1-norm:

Vector Norms

Measure the magnitude of a vector Is the error in x small or large?

General class of p-norms:

1-norm: 2-norm: -norm:

1 1

n

iix x

1/ 22

2 1

n

iix x

max i ix x

ppn

ip

xx

1

1

Page 3: Vector Norms CSE 541 Roger Crawfis. Vector Norms Measure the magnitude of a vector Is the error in x small or large? General class of p-norms: 1-norm:

Properties of Vector Norms

For any vector norm:

These properties define a vector norm

0 if 0

for any scalar

(triangle inequality)

x x

x x

x y x y

Page 4: Vector Norms CSE 541 Roger Crawfis. Vector Norms Measure the magnitude of a vector Is the error in x small or large? General class of p-norms: 1-norm:

Matrix Norms

We will only use matrix norms “induced” by vector norms:

1-norm:

-norm:

0maxx

AxA

x

11

max (max absolute column sum)n

ijj

i

A A

1

max (max absolute row sum)n

iji

j

A A

Page 5: Vector Norms CSE 541 Roger Crawfis. Vector Norms Measure the magnitude of a vector Is the error in x small or large? General class of p-norms: 1-norm:

Properties of Matrix Norms

These induced matrix norms satisfy:

0 if A 0

for any scalar

(triangle inequality)

for any vector

A

A A

A B A B

AB A B

Ax A x x

Page 6: Vector Norms CSE 541 Roger Crawfis. Vector Norms Measure the magnitude of a vector Is the error in x small or large? General class of p-norms: 1-norm:

Condition Number

If A is square and nonsingular, then

If A is singular, then cond(A) = If A is nearly singular, then cond(A) is large. The condition number measures the ratio of

maximum stretch to maximum shrinkage:

1cond( )A A A

1

1

00max min

xx

Ax AxA A

x x

Page 7: Vector Norms CSE 541 Roger Crawfis. Vector Norms Measure the magnitude of a vector Is the error in x small or large? General class of p-norms: 1-norm:

Properties of Condition Number

For any matrix A, cond(A) 1For the identity matrix, cond(I) = 1For any permutation matrix, cond(P) = 1For any scalar , cond( A) = cond(A)For any diagonal matrix D,

cond( ) max / minii iiD D D

Page 8: Vector Norms CSE 541 Roger Crawfis. Vector Norms Measure the magnitude of a vector Is the error in x small or large? General class of p-norms: 1-norm:

Errors and Residuals

Residual for an approximate solution y to Ax = b is defined as r = b – Ay

If A is nonsingular, then ||x – y|| = 0 if and only if ||r || = 0. Does not imply that if ||r||<, then ||x-y|| is small.

Page 9: Vector Norms CSE 541 Roger Crawfis. Vector Norms Measure the magnitude of a vector Is the error in x small or large? General class of p-norms: 1-norm:

Estimating Accuracy

Let x be the solution to Ax = bLet y be the solution to Ay = cThen a simple analysis shows that

Errors in the data (b) are magnified by cond(A)

Likewise for errors in A

cond( )x y b c

Ax c