By Adam Mallen.  What is it?  How is it different from regression?  When would you use it?  What can go wrong?  How do we find the interpolating.

Slides:



Advertisements
Similar presentations
Polynomial Approximation PSCI 702 October 05, 2005.
Advertisements

Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
Numeriska beräkningar i Naturvetenskap och Teknik Today’s topic: Approximations Least square method Interpolations Fit of polynomials Splines.
Data mining and statistical learning - lecture 6
MATH 685/ CSI 700/ OR 682 Lecture Notes
Chapter 18 Interpolation The Islamic University of Gaza
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
1 Curve-Fitting Spline Interpolation. 2 Curve Fitting Regression Linear Regression Polynomial Regression Multiple Linear Regression Non-linear Regression.
Chapter 3, Interpolation and Extrapolation. Interpolation & Extrapolation (x i,y i ) Find an analytic function f(x) that passes through given N points.
ES 240: Scientific and Engineering Computation. InterpolationPolynomial  Definition –a function f(x) that can be written as a finite series of power functions.
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
Curve-Fitting Interpolation
1 Dr. Scott Schaefer Curves and Interpolation. 2/61 Smooth Curves How do we create smooth curves?
Curve-Fitting Regression
Curve-Fitting Polynomial Interpolation
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 23 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 24 Regression Analysis-Chapter 17.
CSE Interpolation Roger Crawfis.
1 Chapter 6 NUMERICAL DIFFERENTIATION. 2 When we have to differentiate a function given by a set of tabulated values or when a complicated function is.
Lagrange interpolation Gives the same results as Newton, but different method.
Chapter 6 Numerical Interpolation
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 Least.
CpE- 310B Engineering Computation and Simulation Dr. Manal Al-Bzoor
Computational Methods in Physics PHYS 3437 Dr Rob Thacker Dept of Astronomy & Physics (MM-301C)
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
CMPS1371 Introduction to Computing for Engineers NUMERICAL METHODS.
Scientific Computing Linear Least Squares. Interpolation vs Approximation Recall: Given a set of (x,y) data points, Interpolation is the process of finding.
Curve Fitting and Interpolation: Lecture (I)
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Curve Fitting and Regression EEE 244. Descriptive Statistics in MATLAB MATLAB has several built-in commands to compute and display descriptive statistics.
Chapter 8 Curve Fitting.
Chapter 14 Curve Fitting : Polynomial Interpolation Gab Byung Chae.
Curve-Fitting Regression
Scientific Computing Interpolation – Divided Differences Efficiency and Error Analysis.
1. Interpolating polynomials Polynomial of degree n,, is a linear combination of Definitions: (interval, continuous function, abscissas, and polynomial)
Introduction to Numerical Analysis I MATH/CMPSC 455 Interpolation.
Scientific Computing General Least Squares. Polynomial Least Squares Polynomial Least Squares: We assume that the class of functions is the class of all.
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.
Lecture 16 - Approximation Methods CVEN 302 July 15, 2002.
Jump to first page Chapter 3 Splines Definition (3.1) : Given a function f defined on [a, b] and a set of numbers, a = x 0 < x 1 < x 2 < ……. < x n = b,
Solving equations with polynomials – part 2. n² -7n -30 = 0 ( )( )n n 1 · 30 2 · 15 3 · 10 5 · n + 3 = 0 n – 10 = n = -3n = 10 =
Lecture 17: Polynomial interpolation. Runge example. Download rungepoly.m Runge phenomenon – polydomial wiggle associated rith high degree polynomial interpolation.
MODEL FITTING jiangyushan. Introduction The goal of model fitting is to choose values for the parameters in a function to best describe a set of data.
Math 4030 – 11b Method of Least Squares. Model: Dependent (response) Variable Independent (control) Variable Random Error Objectives: Find (estimated)
Principles of Extrapolation
By the end of this section, you will be able to: 1. Determine the number and type of roots for a polynomial equation; 2. Find the zeros of a polynomial.
Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression.
Fourier Approximation Related Matters Concerning Fourier Series.
Interpolation - Introduction
1 Approximating functions, polynomial interpolation (Lagrange and Newton’s divided differences) formulas, error approximations.
Computational Methods CMSC/AMSC/MAPL 460 Polynomial Interpolation Ramani Duraiswami, Dept. of Computer Science.
Curve-Fitting Spline Interpolation
Chapter 15 Curve Fitting : Splines
Chapter 12 Curve Fitting : Fitting a Straight Line Gab-Byung Chae
MATH 2140 Numerical Methods
Linear regression Fitting a straight line to observations.
3. LAGRANGE INTERPOLATION METHOD
Numerical Analysis Lecture 26.
Write Polynomial Functions and Models
Nonlinear Fitting.
Discrete Least Squares Approximation
SKTN 2393 Numerical Methods for Nuclear Engineers
Chapter 12: Data Analysis by linear least squares
Regression and Correlation of Data
3. LAGRANGE INTERPOLATION METHOD
Generalized Finite Element Methods
Theory of Approximation: Interpolation
Presentation transcript:

By Adam Mallen

 What is it?  How is it different from regression?  When would you use it?  What can go wrong?  How do we find the interpolating polynomial?  Can you do this in Matlab?  What else?

 The interpolating polynomial is the polynomial of least degree which passes through all the data points  Formally:  A unique solution to this problem is guaranteed

XY

XY

 Interpolation models must take on the exact values of the known data points  Regression models minimize the residuals  Given n+1 data points: ◦ The “best fit” polynomials of degree < n form regression models. ◦ The “best fit” polynomial of degree = n is the interpolating polynomial because the sum of the residuals is exactly zero.

 Regression models assume that measurements have noise.  Regression models estimate f(x) and may be used for forecasting future and past values.  Interpolation models may be suitable when measurements are believed to be exact.  Interpolation models estimate values between known data points.  NOT for forecasting

 Runge Phenomenon  Divergence for some selection of nodes  Splines can help solve these problems  However, … ◦ Splines may only be differentiable a certain number of times at the data points. ◦ Polynomials are infinitely differentiable ◦ Splines can be more complicated to compute and store.

 We can represent this system of equations as

 function result = poly_interp(x, y)  % x and y are column vectors with the x and y values of the data points   % there are n+1 data points  n = length(x) - 1;   % construct the Vandermonde matrix  V = zeros(n+1,n+1);  for i=1:n+1  for j=1:n+1  V(i,j) = x(i).^(j-1);  end %for   % solve the system of equations  alpha = V\y;   result = fliplr(alpha');  end

 Lagrange form of the interpolating Polynomial  Newton form of the interpolating Polynomial  Chebyshev nodes  Hermite interpolation problem  Harmonic function interpolation  Lebesgue constants