
Data Analysis:
Interpolation and Curve
Fitting I
Dr. Cem Özdo
˘
gan
LOGIK
Interpolation and
Curve Fitting
Interpolating Polynomials
Interpolation versus Curve
Fitting
Fitting a Polynomial to
Data
Lagrangian Polynomials
Neville’s Method
12.19
Lagrangian Polynomials VII
•
Error of Int erpo lation; When we fit a polynomial P
n
(x) to
some data points, it will pass exactly through those points
,
• but between those points P
n
(x) will not be precisely the
same as the function f (x) that generated the po ints (unless
the function is that polynomial) .
• How much is P
n
(x) different from f (x)?
• How large is the error of P
n
(x)?
•
It is most important that you never fit a polynomial of a
degree higher than 4 or 5 to a set of points.
•
If you need to fit to a set of more than six points, be sure to
break up the set into subsets
and fit separate polynomials
to these.
•
You cannot fi t a function that is discontinuous or one
whose derivative is discontinuous with a polynomial.