Lecture 10 Flashcards

1
Q

Norm properties

A

||x||: R^n > R0+ norm if

  1. ||x|| > 0 iff x≠0
  2. ||γx|| = |γ| ||x||
  3. ||x+y|| ≤ ||x|| + ||y||
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

p-norms (1, 2, ∞)

A

||(x1 xn)||_p = sqrt^p(|x1|^p + … + |xn|^p)

||x||_1 = |x1| + ... + |xn|
||x||_2 = sqrt(x1^2 + ... + xn^2)
||x||_∞ = max_i |xi|
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Unit balls (1, 2, ∞)

A

circle, diamond, square

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

If p<1?

A

unit ball not convex, triangle inequality contradicted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Distance between x and y

A

||x-y||

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Magnitude of error of a vector

A

||trueval - appval||

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

abs/rel errors of approximating (40.114, -88.224) as (40,-88)?

A
abs = ||x-^x||_2 = 0.2513
rel = ||x-^x||_2 / ||x||_2 = 2.59e-3
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Frobenius norm

A

Matrix norm, flatten and use vector norm:

||A||_F = sqrt(sum_i,j aij^2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Induced matrix norms (general)

A

maximum amplification of the norm of any vector multiplied by the matrix
||A|| = max_{||x||≠0} ||Ax||/||x||
= max_{||y||=1} ||Ay||

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Induced matrix norms (1, 2, ∞)

A
||A||_1 = maxj sum(i:1>n) |Aij| (max of abs column sum)
||A||_∞ = maxi sum(j:1>n) |Aij| (max abs row sum)
||A||_2 = maxk σ_k (singular value)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Matrix norms properties

A

vector norm properties + submultiplicativity:

  1. ||Ax|| ≤ ||A|| ||x||
  2. ||AB|| ≤ ||A|| ||B||
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

∞ norm:
1 2
3 4

A

7

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

1 norm:
1 2
3 4

A

6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

You are given for A, 3 vectors x, y, z. ||x||=2, ||y||=1, ||z||=3 and ||Ax||=20, ||Ay||=5, ||Az||=90, what’s the largest lower bound for ||A|| you can derive?

A

max(||Ax||/||x||, …) = 30

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

2 norm:
100 0 0
0 13 0
0 0 0.5

A

100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Inverse of a diagonal matrix
d1 0 0
0 d2 0
0 0 d3

A

1/d1 0 0
0 1/d2 0
0 0 1/d3

17
Q

inner product

A
if u,v,w in V:
1. positivity <u> ≥ 0
2. definiteness <u>=0 iff u=0
3. symmetric <u> = 
3. linearity  = ɑ<u> + β
Inner product represents similarity between two vectors, <u> = 0 if orthogonal
algebraic: a.b = ab.T
geometric: a.b = ||a|| ||b|| cosθ</u></u></u></u></u>
18
Q

Relative error wrt 1-norm of with fps representation 1.s1s2s3 x 2^m:

  1. 71875
  2. 7500
  3. 0000
A

0.014492

19
Q

python norm

A

np. linalg.norm(x, np.inf)

np. linalg.norm(x, 2)…