All Topics  
Interpolation

 

   Email Print
   Bookmark   Link






 

Interpolation



 
 
In the mathematical
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
 subfield of numerical analysis
Numerical analysis

Numerical analysis is the study of algorithms for the problems of continuous mathematics .One of the earliest mathematical writings is the Babylonian tablet YBC 7289, which gives a sexagesimal numerical approximation of , the length of the diagonal in a unit square....
, interpolation is a method of constructing new data points within the range of a discrete set of known data points.

In engineering
Engineering

Engineering is the discipline and profession of applying Technology and science knowledge and utilizing natural laws and physical resources in order to design and implement materials, structures, machines, devices, systems, and process that safely realize a desired objective and meet specified criteria....
 and science
Science

In its broadest sense, science refers to any systematic knowledge or practice. In its more usual restricted sense, science refers to a system of acquiring knowledge based on scientific method, as well as to the organized body of knowledge gained through such research....
 one often has a number of data points, as obtained by sampling
Sampling (statistics)

Sampling is that part of statistical practice concerned with the selection of individual observations intended to yield some knowledge about a population of concern, especially for the purposes of statistical inference....
 or experimentation, and tries to construct a function which closely fits those data points. This is called curve fitting
Curve fitting

Curve fitting is finding a curve which has the best fit to a series of data points and possibly other constraints. This section is an introduction to both interpolation and regression analysis....
 or regression analysis
Regression analysis

In statistics, regression analysis is a collective name for techniques for the modeling and analysis of numerical data consisting of values of a dependent variable and of one or more independent variables ....
. Interpolation is a specific case of curve fitting, in which the function must go exactly through the data points.

A different problem which is closely related to interpolation is the approximation of a complicated function by a simple function.






Discussion
Ask a question about 'Interpolation'
Start a new discussion about 'Interpolation'
Answer questions from other users
Full Discussion Forum



Recent Posts









Encyclopedia


In the mathematical
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
 subfield of numerical analysis
Numerical analysis

Numerical analysis is the study of algorithms for the problems of continuous mathematics .One of the earliest mathematical writings is the Babylonian tablet YBC 7289, which gives a sexagesimal numerical approximation of , the length of the diagonal in a unit square....
, interpolation is a method of constructing new data points within the range of a discrete set of known data points.

In engineering
Engineering

Engineering is the discipline and profession of applying Technology and science knowledge and utilizing natural laws and physical resources in order to design and implement materials, structures, machines, devices, systems, and process that safely realize a desired objective and meet specified criteria....
 and science
Science

In its broadest sense, science refers to any systematic knowledge or practice. In its more usual restricted sense, science refers to a system of acquiring knowledge based on scientific method, as well as to the organized body of knowledge gained through such research....
 one often has a number of data points, as obtained by sampling
Sampling (statistics)

Sampling is that part of statistical practice concerned with the selection of individual observations intended to yield some knowledge about a population of concern, especially for the purposes of statistical inference....
 or experimentation, and tries to construct a function which closely fits those data points. This is called curve fitting
Curve fitting

Curve fitting is finding a curve which has the best fit to a series of data points and possibly other constraints. This section is an introduction to both interpolation and regression analysis....
 or regression analysis
Regression analysis

In statistics, regression analysis is a collective name for techniques for the modeling and analysis of numerical data consisting of values of a dependent variable and of one or more independent variables ....
. Interpolation is a specific case of curve fitting, in which the function must go exactly through the data points.

A different problem which is closely related to interpolation is the approximation of a complicated function by a simple function. Suppose we know the function but it is too complex to evaluate efficiently. Then we could pick a few known data points from the complicated function, creating a lookup table
Lookup table

In computer science, a lookup table is a data structure, usually an array or associative array, often used to replace a runtime computation with a simpler array indexing operation....
, and try to interpolate those data points to construct a simpler function. Of course, when using the simple function to calculate new data points we usually do not receive the same result as when using the original function, but depending on the problem domain and the interpolation method used the gain in simplicity might offset the error.

It should be mentioned that there is another very different kind of interpolation in mathematics, namely the "interpolation of operators". The classical results about interpolation of operators are the Riesz-Thorin theorem
Riesz-Thorin theorem

In mathematics, the Riesz-Thorin theorem, often referred to as the Riesz-Thorin Interpolation Theorem or the Riesz-Thorin Convexity Theorem is a result about interpolation of operators....
 and the Marcinkiewicz theorem
Marcinkiewicz theorem

In mathematics, the Marcinkiewicz interpolation theorem, discovered by J?zef Marcinkiewicz, is a result about interpolation of operators acting on lp space spaces and related spaces....
. There also are many other subsequent results.

Definition


From inter meaning between and pole, the points or nodes. Any means of calculating a new point between two or more existing data points is interpolation.

There are many methods for doing this, many of which involve fitting some sort of function to the data and evaluating that function at the desired point. This does not exclude other means such as statistical methods of calculating interpolated data.

One of the simplest forms of interpolation is to take the arithmetic mean
Arithmetic mean

In mathematics and statistics, the arithmetic mean of a list of numbers is the sum of all of the list divided by the number of items in the list....
 of the value of two adjacent points to find the mid point. This will give the same result as a linear function evaluated at the midpoint.

Given a sequence
Sequence

In mathematics, a sequence is an ordered list of objects . Like a Set , it contains Element , and the number of terms is called the length of the sequence....
 of n distinct numbers xk called nodes and for each xk a second number yk, we are looking for a function f so that

A pair xk,yk is called a data point and f is called an interpolant for the data points.

When the numbers yk are given by a known function f, we sometimes write fk.

Example

For example, suppose we have a table like this, which gives some values of an unknown function f.
  x  f(x)
0 0
1 0 . 8415
2 0 . 9093
3 0 . 1411
4 −0 . 7568
5 −0 . 9589
6 −0 . 2794
Interpolation provides a means of estimating the function at intermediate points, such as x = 2.5.

There are many different interpolation methods, some of which are described below. Some of the concerns to take into account when choosing an appropriate algorithm
Algorithm

In mathematics, computing, linguistics and related subjects, an algorithm is a sequence of finite instructions, often used for calculation and data processing....
 are: How accurate is the method? How expensive is it? How smooth
Smooth function

In mathematical analysis, a differentiability class is a classification of function according to the properties of their derivatives. Higher order differentiability classes correspond to the existence of more derivatives....
 is the interpolant? How many data points are needed?


Piecewise constant interpolation

The simplest interpolation method is to locate the nearest data value, and assign the same value. In one dimension, there are seldom good reasons to choose this one over linear interpolation, which is almost as cheap, but in higher dimensions, in multivariate interpolation
Multivariate interpolation

In numerical analysis, multivariate interpolation or spatial interpolation is interpolation on functions of more than one variable.The function to be interpolated is known at given points and the interpolation problem consist of yielding values at arbitrary points ....
, this can be a favourable choice for its speed and simplicity.


Linear interpolation

One of the simplest methods is linear
Linear

The word linear comes from the Latin word linearis, which means created by lines.In mathematics, a linear map or function f is a function which satisfies the following two properties......
 interpolation (sometimes known as lerp). Consider the above example of determining f(2.5). Since 2.5 is midway between 2 and 3, it is reasonable to take f(2.5) midway between f(2) = 0.9093 and f(3) = 0.1411, which yields 0.5252.

Generally, linear interpolation takes two data points, say (xa,ya) and (xb,yb), and the interpolant is given by: at the point (x,y).

Linear interpolation is quick and easy, but it is not very precise. Another disadvantage is that the interpolant is not differentiable
Derivative

In calculus, a branch of mathematics, the derivative is a measure of how a function changes as its input changes. Loosely speaking, a derivative can be thought of as how much a quantity is changing at a given point....
 at the point xk.

The following error estimate shows that linear interpolation is not very precise. Denote the function which we want to interpolate by g, and suppose that x lies between xa and xb and that g is twice continuously differentiable. Then the linear interpolation error is In words, the error is proportional to the square of the distance between the data points. The error of some other methods, including polynomial interpolation and spline interpolation (described below), is proportional to higher powers of the distance between the data points. These methods also produce smoother interpolants.


Polynomial interpolation

Polynomial interpolation is a generalization of linear interpolation. Note that the linear interpolant is a linear function
Linear function

In mathematics, the term linear function can refer to either of two different but related concepts: a first-degree polynomial function of one variable; or a map between two vector spaces that preserves vector addition and scalar multiplication....
. We now replace this interpolant by a polynomial
Polynomial

In mathematics, a polynomial is an expression constructed from variables and constants, using the operations of addition, subtraction, multiplication, and constant non-negative whole number exponents....
 of higher degree
Degree (mathematics)

In mathematics, there are several meanings of degree depending on the subject....
.

Consider again the problem given above. The following sixth degree polynomial goes through all the seven points: Substituting x = 2.5, we find that f(2.5) = 0.5965.

Generally, if we have n data points, there is exactly one polynomial of degree at most n−1 going through all the data points. The interpolation error is proportional to the distance between the data points to the power n. Furthermore, the interpolant is a polynomial and thus infinitely differentiable. So, we see that polynomial interpolation solves all the problems of linear interpolation.

However, polynomial interpolation also has some disadvantages. Calculating the interpolating polynomial is computationaly expensive (see computational complexity
Computational Complexity

Computational Complexity may refer to:*Computational complexity theory*Computational Complexity ...
) compared to linear interpolation. Furthermore, polynomial interpolation may not be so exact after all, especially at the end points (see Runge's phenomenon
Runge's phenomenon

In the mathematics field of numerical analysis, Runge's phenomenon is a problem that occurs when using polynomial interpolation with polynomials of high degree....
). These disadvantages can be avoided by using spline interpolation.


Spline interpolation


Remember that linear interpolation uses a linear function for each of intervals [xk,xk+1]. Spline interpolation uses low-degree polynomials in each of the intervals, and chooses the polynomial pieces such that they fit smoothly together. The resulting function is called a spline
Spline (mathematics)

In mathematics, a spline is a special Function defined piecewise by polynomials.In interpolation problems, spline interpolation is often preferred to polynomial interpolation because it yields similar results, even when using low degree polynomials, while avoiding Runge's phenomenon for higher degrees....
.

For instance, the natural cubic spline is piecewise
Piecewise

In mathematics, a piecewise-defined function is a function whose definition is dependent on the value of the independent variable. Mathematically, a real number-valued function f of a real variable x is a relationship whose definition is given differently on disjoint subsets of its domain ....
 cubic and twice continuously differentiable. Furthermore, its second derivative is zero at the end points. The natural cubic spline interpolating the points in the table above is given by

In this case we get f(2.5)=0.5972.

Like polynomial interpolation, spline interpolation incurs a smaller error than linear interpolation and the interpolant is smoother. However, the interpolant is easier to evaluate than the high-degree polynomials used in polynomial interpolation. It also does not suffer from Runge's phenomenon
Runge's phenomenon

In the mathematics field of numerical analysis, Runge's phenomenon is a problem that occurs when using polynomial interpolation with polynomials of high degree....
.


Interpolation via Gaussian processes

Gaussian process
Gaussian process

In the mathematical theory of probability, a Gaussian process is a stochastic process t ?T for which any finite linear combination of sampling will be normal distribution ....
 is a powerful non-linear interpolation tool. Many popular interpolation tools are actually equivalent to particular Gaussian processes. Gaussian processes can be used not only for fitting an interpolant that passes exactly through the given data points but also for regression, i.e. for fitting a curve through noisy data. In the geostatistics community Gaussian process regression is also known as Kriging
Kriging

Kriging is a group of geostatistics techniques to interpolation the value of a random field at an unobserved location from observations of its value at nearby locations....
.

Other forms of interpolation


Other forms of interpolation can be constructed by picking a different class of interpolants. For instance, rational interpolation is interpolation by rational function
Rational function

In mathematics, a rational function is any function which can be written as the ratio of two polynomial functions....
s, and trigonometric interpolation
Trigonometric interpolation

In mathematics, trigonometric interpolation is interpolation with trigonometric polynomials. Interpolation is the process of finding a function which goes through some given data points....
 is interpolation by trigonometric polynomial
Trigonometric polynomial

In the mathematical subfields of numerical analysis and mathematical analysis, a trigonometric polynomial is a finite linear combination of functions sin and cos with n a natural number....
s. The discrete Fourier transform
Discrete Fourier transform

In mathematics, the discrete Fourier transform is one of the specific forms of Fourier analysis. It transforms one function into another, which is called the frequency domain representation, or simply the DFT, of the original function ....
 is a special case of trigonometric interpolation. Another possibility is to use wavelet
Wavelet

A wavelet is a mathematical function used to divide a given function or continuous signal into different scale components. Usually one can assign a frequency range to each scale component....
s.

The Whittaker–Shannon interpolation formula
Whittaker–Shannon interpolation formula

The Whittaker?Shannon interpolation formula is a method to reconstruct a continuous-time bandlimited signal from a set of equally spaced samples....
 can be used if the number of data points is infinite.

Multivariate interpolation
Multivariate interpolation

In numerical analysis, multivariate interpolation or spatial interpolation is interpolation on functions of more than one variable.The function to be interpolated is known at given points and the interpolation problem consist of yielding values at arbitrary points ....
 is the interpolation of functions of more than one variable. Methods include bilinear interpolation
Bilinear interpolation

In mathematics, bilinear interpolation is an extension of linear interpolation for interpolation functions of two variables on a regular grid. The key idea is to perform linear interpolation first in one direction, and then again in the other direction....
 and bicubic interpolation
Bicubic interpolation

In mathematics, bicubic interpolation is an extension of cubic interpolation for interpolation data points on a two dimensional regular grid. The interpolated surface is Smooth function than corresponding surfaces obtained by bilinear interpolation or nearest-neighbor interpolation....
 in two dimensions, and trilinear interpolation
Trilinear interpolation

Trilinear interpolation is a method of multivariate interpolation on a Three dimensional space regular grid. It approximates the value of an intermediate point within the local axial rectangular prism linearly, using data on the lattice points....
 in three dimensions.

Sometimes, we know not only the value of the function that we want to interpolate, at some points, but also its derivative. This leads to Hermite interpolation
Hermite interpolation

Hermite interpolation is a method closely related to the Newton polynomial method of interpolation in numerical analysis, that allows us to consider given derivatives at data points, as well as the data points themselves....
 problems.

Related concepts


The term extrapolation
Extrapolation

In mathematics, extrapolation is the process of constructing new data points outside a discrete set of known data points. It is similar to the process of interpolation, which constructs new points between known points, but the results of extrapolations are often less meaningful, and are subject to greater uncertainty....
 is used if we want to find data points outside the range of known data points.

In curve fitting
Curve fitting

Curve fitting is finding a curve which has the best fit to a series of data points and possibly other constraints. This section is an introduction to both interpolation and regression analysis....
 problems, the constraint that the interpolant has to go exactly through the data points is relaxed. It is only required to approach the data points as closely as possible. This requires parameterizing the potential interpolants and having some way of measuring the error. In the simplest case this leads to least squares
Least squares

The method of least squares or ordinary least squares is used to solve overdetermined systems. Least squares is often applied in statistical contexts, particularly regression analysis....
 approximation.

Approximation theory
Approximation theory

In mathematics, approximation theory is concerned with how function s can best be approximation with simpler function , and with quantitatively characterization the approximation error introduced thereby....
 studies how to find the best approximation to a given function by another function from some predetermined class, and how good this approximation is. This clearly yields a bound on how well the interpolant can approximate the unknown function.

External links

  • : Theory and applications of Gaussian Processes
  • : Applet showing various interpolation methods, with movable points