MATH 174.4

Embed Size (px)

Citation preview

  • 8/8/2019 MATH 174.4

    1/20

    MATH 174:MATH 174:

    NUMERICAL ANALYSISNUMERICAL ANALYSISLECTURE 4

    1st Semester AY 2010-2011

    Lecturer: Jomar Fajardo Rabajante

    IMSP, UPLB

  • 8/8/2019 MATH 174.4

    2/20

    MEASURING QMEASURING Q--CONVERGENCECONVERGENCE

    y Used for iterative methods (such asroot-finding)

    y Deals with sequencesy Does not apply to discretization

    methods (e.g. numerical quadrature,

    solutions of ODEs)

  • 8/8/2019 MATH 174.4

    3/20

    MEASURING QMEASURING Q--CONVERGENCECONVERGENCE

    y Given an asymptotic error constant >0,the sequence {xk} converges to x* withorder p>0 iff

    p

    kk

    p

    kk

    p

    k

    k

    k

    xxxxor

    xxxxor

    xx

    xx

    *

    1

    *

    *

    1

    *

    *

    1

    *

    lim

    e

    }

    !

    gp

    P

    P

    P

  • 8/8/2019 MATH 174.4

    4/20

    MEASURING QMEASURING Q--CONVERGENCECONVERGENCE

    y Given an asymptotic error constant >0,the sequence {xk} converges to x* withorder p>0 iff

    p

    kk

    p

    kk

    p

    k

    k

    k

    xxxxor

    xxxxor

    xx

    xx

    *

    1

    *

    *

    1

    *

    *

    1

    *

    lim

    e

    }

    !

    gp

    P

    P

    P

  • 8/8/2019 MATH 174.4

    5/20

    MEASURING CONVERGENCEMEASURING CONVERGENCE

    When p=1

    y If 0

  • 8/8/2019 MATH 174.4

    6/20

    SOME a posteriori ERRORSOME a posteriori ERROR

    ANALYSISANALYSIS

  • 8/8/2019 MATH 174.4

    7/20

    ABSOLUTE & RELATIVE ERRORABSOLUTE & RELATIVE ERROR

    TV

    AV

    TV

    AVTVRE

    AVTVAE

    !

    !

    !

    1

  • 8/8/2019 MATH 174.4

    8/20

    FORWARD & BACKWARDFORWARD & BACKWARD

    ANALYSISANALYSIS

    %36.037.26.5

    %69.16169.56.56169.5,6.5assume

    digits,2use,37.2,. 2

    }!

    !!

    !!

    !!

    !

    !

    backw

    fwd

    exactcalc

    calcbackw

    exactcalcfwd

    E

    Eyy

    xxyExxxE

    yyE

  • 8/8/2019 MATH 174.4

    9/20

    LOSS OF SIGNIFICANT DIGITLOSS OF SIGNIFICANT DIGIT

    ERRORERRORy The number x is said to approximate xT

    to m significant digits ifm is the largest

    nonnegative integer for which

    44

    34

    10510004.4999.0

    9986.0999.0

    10510012.6998.0

    9986.0998.0.

    105

    vv!

    vv!

    v

    Ex

    x

    xx mT

  • 8/8/2019 MATH 174.4

    10/20

    MAD, MAPD, MAPE, MSE,MAD, MAPD, MAPE, MSE,

    Bias, Tracking SignalBias, Tracking Signaly Usually used for Time Series forecasting

    y Not applicable to interpolation

    Len n be the number of periods

    ni

    TV

    AVTVMAPD

    nin

    AVTVMAD

    i

    ii

    ii

    ,...2,1,

    ,...2,1,

    !

    !

    !

    !

  • 8/8/2019 MATH 174.4

    11/20

    Len n be the number of periods

    ni

    n

    AVTVMSE

    nin

    TV

    AVTV

    MAPE

    i

    i

    ii

    ,...2,1,

    ,...2,1,

    2

    !

    !

    !

    !

    MAD, MAPD, MAPE, MSE,MAD, MAPD, MAPE, MSE,

    Bias, Tracking SignalBias, Tracking Signal

  • 8/8/2019 MATH 174.4

    12/20

    Len n be the number of periods

    MAD

    AVTV

    MAD

    RSFETS

    n

    AVTV

    nRSFEerrorAveBias

    ii

    ii

    !!

    !!).(

    MAD, MAPD, MAPE, MSE,MAD, MAPD, MAPE, MSE,

    Bias, Tracking SignalBias, Tracking Signal

  • 8/8/2019 MATH 174.4

    13/20

    Standard Error of the Estimate,Standard Error of the Estimate,

    Correlation Coefficient & CoefficientCorrelation Coefficient & Coefficient

    of Determination (rof Determination (r22))

    !

    !

    !

    2222

    2

    ,

    2

    ,

    2

    2

    )(

    yynxxn

    yxxynr

    n

    xybyayS

    n

    yyS

    xy

    c

    xy

    ForRegression

    Lines

    See CurveExpert for more information

  • 8/8/2019 MATH 174.4

    14/20

    Stopping CriterionStopping Criterion

  • 8/8/2019 MATH 174.4

    15/20

    Terminate when:Terminate when:

    tolx

    xx

    tol

    xx

    fxf

    k

    kk

    kk

    tolk

    e

    e

    e

    1

    1

    1

    )(

    May meaniteration is

    converging

  • 8/8/2019 MATH 174.4

    16/20

    Terminate when:Terminate when:

    tolx

    xx

    tol

    xx

    fxf

    k

    kk

    kk

    tolk

    e

    e

    e

    1

    1

    1

    )(

    May meaniteration is

    converging

    If tol=10-n, then xk+1 should approximate xT

    to n decimal places/n significant digits

  • 8/8/2019 MATH 174.4

    17/20

    Terminate when:Terminate when:

    bigk

    bigk

    xxfxf

    kk

    u

    u

    u

    )(

    maxIterations have gone on

    long enough

  • 8/8/2019 MATH 174.4

    18/20

    CaveatsCaveats

    gpgp

    gpp

    !

    kxbut

    kk

    xx

    k

    kk

    as,

    ,as,01

    1

    1

    1

    Notice that

    tolxxuse

    kxLet

    kk

    k

    e

    !

    1

    1...

    3

    1

    2

    11

  • 8/8/2019 MATH 174.4

    19/20

    NORMNORM

    y We also use the concept of norms as

    stopping criteria (e.g. solution to systems

    of linear equations)

    y But we are going to delay the discussion

    on norms (we will discuss them on

    Chapter 2), and we will leave the

    discussion on the use of norms asstopping criteria in Math 175.

  • 8/8/2019 MATH 174.4

    20/20

    ASSIGNMENTASSIGNMENT

    yGive instances when to use

    the different stopping criteria

    yState the WeierstrassApproximation Theorem

    CHAPTER 2 NA TAYO NEXT

    MEETING!!!