Interpolation Techniques
Interpolation Techniques
Interpolation
Class 07. Numerical Analysis
Interpolation techniques
We can se that the points are the sample data we randomly collected from
the salesman. However, we are interested in knowing the sales when the
temperature is 21 Celsius since it the mean annual temperature. We see
that we do not have that information at hand.
To solve this inconvenient, we can use linear interpolation between the
closest points or linear regression. The former is the topic of this unit. We
are going to explore some interpolation methods.
We use linear
interpolation to
estimate data
between known
points.
A. Lagrange interpolation
B. Newton differences
C. Splines
Interpolation
A function is said to interpolate a set of data points if it passes through
those points. Suppose that a set of (x, y) data points has been collected,
such as (0, 1), (2, 2), and (3, 4). There is a parabola that passes through the
three points, shown in Figure 1. This parabola is called the degree 2
interpolating polynomial passing through the three points
1 2 1
Figure 1. Points interpolate for the function P(x) = x − x + 1
2 2
Interpolation
Definition: the function y = P(x) interpolates the data points (x1, y1),...,
(xn, yn) if P(xi) = yi for each 1 ≤ i ≤ n.
A. P is required to be a function
B. x values have to be all distinct, there is not restriction in y.
C. We are using only polynomials.
D. Is there always a polynomial? If all x’s are distinct, the answer is
yes. No matter how many points are given, there is some
polynomial y = P(x) that runs through all the points.
n−1
Definition: Denote by f [x1 . . . xn] the coefficient of the x term in the
(unique) polynomial that interpolates (x1, f(x1)),…,(xn, f(xn)).
Using this definition, the following somewhat remarkable alternative
formula for the interpolating polynomial holds, called the Newton’s
divided difference formula
Moreover, the coefficients f [x1 . . . xk] from the above definition can be
recursively calculated as follows. List the data points in a table:
Now define the divided differences, which are the real numbers: