Lecture 12 Conditioning and Condition Numbers NLA Reading Group - - PowerPoint PPT Presentation

lecture 12 conditioning and condition numbers
SMART_READER_LITE
LIVE PREVIEW

Lecture 12 Conditioning and Condition Numbers NLA Reading Group - - PowerPoint PPT Presentation

Lecture 12 Conditioning and Condition Numbers NLA Reading Group Spring 13 by Can Kavaklolu Outline Condition of a problem Absolute condition number Relative condition number Examples Condition of matrix-vector


slide-1
SLIDE 1

NLA Reading Group Spring ’13

by Can Kavaklıoğlu

Lecture 12 Conditioning and Condition Numbers

slide-2
SLIDE 2

Outline

  • Condition of a problem
  • Absolute condition number
  • Relative condition number
  • Examples
  • Condition of matrix-vector multiplication
  • Condition number of a matrix
  • Condition of system of equations
slide-3
SLIDE 3

Notation

Problem: f: X →Y

normed vector space Some usually non-linear, continious function

Problem instance: combination of x∈X and f

slide-4
SLIDE 4

Problem Condition Types

Small perturbation in x Small perturbation in f(x) Large perturbation in f(x) well-conditioned ill-conditioned 1, 10, 100 10^6, 10^16

slide-5
SLIDE 5

Absolute Condition Number

Small perturbation in x Assuming and are infinitesimal

slide-6
SLIDE 6

Absolute Condition Number

If f is differentiable, we can evaluate Jacobian of f at x with equality at limit ||J(x)|| represents norm of J(x) induced by norms of X and Y

slide-7
SLIDE 7

Relative Condition Number

if f is differentiable,

slide-8
SLIDE 8

Examples

slide-9
SLIDE 9

Condition of Matrix-Vector Multiplication

Problem: compute Ax from input x with fixed

slide-10
SLIDE 10

Condition of Matrix-Vector Multiplication

If A is square and non-singular using Loosen relative condition number to a bound independent of x If A is not square use pseudoinverse A+

slide-11
SLIDE 11

Condition of Matrix-Vector Multiplication

slide-12
SLIDE 12

Condition number of A relative to norm ||•||

Condition Number of a Matrix

If A is singular

slide-13
SLIDE 13

Condition of a System of Equations

Fix b and perturb A, in problem:

slide-14
SLIDE 14

Condition of a System of Equations

slide-15
SLIDE 15

NLA Reading Group Spring ’13

by Can Kavaklıoğlu

Lecture 13 Floating Point Arithmetic

slide-16
SLIDE 16

Outline

  • Limitations of Digital Representations
  • Floating Point Number
  • Machine Epsilon
  • Floating Point Arithmetic
  • Complex Floating Point Arithmetic
slide-17
SLIDE 17

Limitations of Digital Representations

Finite number of bits Two limitations

  • Precision: IEEE double between 1.79 x 10^308 and 2.23 x 10^-308
  • Overflow / underflow
  • Interval representation: IEEE interval [1 2]:

interval [2 4]: gap size: Finite subset of real/complex numbers

slide-18
SLIDE 18

Floating Point Number

F: subset of real numbers, including 0 β: base/radix t: precision (23 single, 53 double precision - IEEE) fraction or mantissa integer in range

e

exponent: arbitrary integer Idelized system: ignores underflow and overflow. F is a countably infinite set and it is self similar: F= βF

slide-19
SLIDE 19

Machine Epsilon

Resolution of F: IEEE single IEEE double Rounding:

slide-20
SLIDE 20

Floating Point Arithmetic

Every operation of floating point arithmetic is exact up to a relative error

  • f size at most machine epsilon
slide-21
SLIDE 21

Different Machine Epsilon and Complex Floating Point Arithmetic

  • Some (very old) hardware may not support IEEE machine epsilon
  • It may be possible to use a larger machine epsilon value
  • Complex arithmetic is performed using two floating point numbers
  • Machine epsilon needs to be adjusted
slide-22
SLIDE 22

The end

thanks