Interpolation Used to estimate values between data points difference from regression - goes through data points no error in data points.

Slides:



Advertisements
Similar presentations
Numerical Methods.  Polynomial interpolation involves finding a polynomial of order n that passes through the n+1 points.  Several methods to obtain.
Advertisements

Computers in Civil Engineering 53:081 Spring 2003 Lecture #14 Interpolation.
2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
Notes Over 6.9Writing a Cubic Function Write the cubic function whose graph is shown.
Modeling with Polynomial Functions
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
Curve-Fitting Interpolation
14 Aug 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 6 – Interpolation & Curve Fitting 14 August am – 9.00 am.
Curve-Fitting Polynomial Interpolation
Polynomial Interpolation
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Martin Mendez UASLP Chapter 61 Unit II.
Curve Fitting and Interpolation: Lecture (II)
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 22 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 181 Interpolation Chapter 18 Estimation of intermediate.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 181 Interpolation.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Interpolation Chapter 18.
CSE Interpolation Roger Crawfis.
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 32.
Lagrange interpolation Gives the same results as Newton, but different method.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 21 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 Least.
Numerical Integration Formulas
Chapter 4 Roots of Polynomials.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 2 Roots of Equations Why? But.
Interpolation. Interpolation is important concept in numerical analysis. Quite often functions may not be available explicitly but only the values of.
Curve Fitting and Interpolation: Lecture (I)
6-7: Investigating Graphs of Polynomial Functions.
Consider the following: Now, use the reciprocal function and tangent line to get an approximation. Lecture 31 – Approximating Functions
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Applied Numerical Methods With MATLAB ® for Engineers.
Curve Fitting and Regression EEE 244. Descriptive Statistics in MATLAB MATLAB has several built-in commands to compute and display descriptive statistics.
Polynomial Interpolation You will frequently have occasions to estimate intermediate values between precise data points. The function you use to interpolate.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Chapter 8 Curve Fitting.
Chapter 14 Curve Fitting : Polynomial Interpolation Gab Byung Chae.
Numerical Methods For Slides Thanks to Lecture 6 Interpolation
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Roots of Equations ~ Open Methods Chapter 6 Credit:
Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values at intermediate.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 7.
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
EE3561_Unit 5(c)AL-DHAIFALLAH14361 EE 3561 : Computational Methods Unit 5 : Interpolation Dr. Mujahed AlDhaifallah (Term 351) Read Chapter 18, Sections.
Curve Fitting with Polynomial Models Essential Questions
Objectives Use finite differences to determine the degree of a polynomial that will fit a given set of data. Use technology to find polynomial models for.
Interpolation - Introduction
1 Approximating functions, polynomial interpolation (Lagrange and Newton’s divided differences) formulas, error approximations.
High Accuracy Differentiation Formulas
Polynomial Interpolation
Interpolation Estimation of intermediate values between precise data points. The most common method is: Although there is one and only one nth-order.
Chapter 18.
Lecture 25 – Power Series Def: The power series centered at x = a:
Numerical Integration Formulas
Interpolation.
Starting problems Write a tangent line approximation for each:
Chapter 18.
INTERPOLATION Prof. Samuel Okolie, Prof. Yinka Adekunle & Dr
Chapter 23.
Taylor Polynomials & Approximation (9.7)
Today’s class Multiple Variable Linear Regression
MATH 2140 Numerical Methods
Computers in Civil Engineering 53:081 Spring 2003
Interpolasi Pertemuan - 7 Mata Kuliah : Analisis Numerik
POLYNOMIAL INTERPOLATION
11.1 – Polynomial Approximations of Functions
Numerical Integration:
Numerical Computation and Optimization
MATH-321 In One Slide MATH-321 & MATLAB Command.
Nonlinear Fitting.
INTERPOLATION For both irregulary spaced and evenly spaced data.
SKTN 2393 Numerical Methods for Nuclear Engineers
Curving Fitting with 6-9 Polynomial Functions Warm Up
Theory of Approximation: Interpolation
Presentation transcript:

Interpolation Used to estimate values between data points difference from regression - goes through data points no error in data points

Most common method is polynomial interpolation Given n+1 data points, a unique n th order polynomial fits them. Polynomial interpolation determines a’s of this polynomial A number of methods

Newton divided difference interpolating polynomials Start with linear interpolation

x0x0 xx1x1 f(x 0 ) f 1 (x) f(x 1 ) From similar triangles

Can rearrange to get linear interpolation formula Example: Interpolate exp(2) using 1) exp(1) and exp(6) and 2) exp(1.5) and exp (2.5) 1) 2)

Quadratic interpolation - need three points Use parabola This is the same as with

To get b’s 1) set x=x 0 in quadratic 2) use b 0 and x=x 1 in quadratic

3) use b 0 and b 1 and x=x 2 b 0 is a constant (0th order) b 1 gives slope (finite difference) b 2 give curvature (difference of finite differences)

Example: interpolate exp(2) using exp(1), exp(3) and exp(4)

Example: interpolate exp(2) using exp(1), exp(1.5) and exp(2.5)

General form for Newton’s interpolating polynomials Bracketed functions are finite differences

First finite difference Second finite difference The difference of two finite differences

The nth finite difference An interative proceedure 1) make all first order finite differences; save f(x 0 ) for b 0 2) make second order from firsts; save f[x 1,x 0 ] for b 1 3) continue to nth order, saving needed ones

Example: estimate exp(2) using 6 points - 0,1, 3, 4, 5, 6 Do first differences, get b 1

Use firsts to get seconds and save b 2

Use seconds to get thirds and get b 3

Use thirds to get fourths and b 4 Use fourths to get the fifth finite difference and b 5

So

Blow up

Error for Newton’s polynomial - estimate from Thinking of interpolation like a Taylor series

Example: use exp(2.5)=12.18 Calculate

Matlab code Excel code