
Inverse distance weighting (IDW) is a type of
deterministic method for
multivariate interpolation
In numerical analysis, multivariate interpolation or multidimensional interpolation is interpolation on ''multivariate functions'', having more than one variable or defined over a multi-dimensional domain. A common special case is bivariate inter ...
with a known homogeneously scattered set of points. The assigned values to unknown points are calculated with a
weighted average
The weighted arithmetic mean is similar to an ordinary arithmetic mean (the most common type of average), except that instead of each of the data points contributing equally to the final average, some data points contribute more than others. The ...
of the values available at the known points. This method can also be used to create spatial weights matrices in
spatial autocorrelation analyses (e.g.
Moran's ''I'').
The name given to this type of method was motivated by the
weighted average
The weighted arithmetic mean is similar to an ordinary arithmetic mean (the most common type of average), except that instead of each of the data points contributing equally to the final average, some data points contribute more than others. The ...
applied, since it resorts to the inverse of the distance to each known point ("amount of proximity") when assigning weights.
Definition of the problem
The expected result is a discrete assignment of the unknown function
in a study region:
:
where
is the study region.
The set of
known data points can be described as a list of
tuple
In mathematics, a tuple is a finite sequence or ''ordered list'' of numbers or, more generally, mathematical objects, which are called the ''elements'' of the tuple. An -tuple is a tuple of elements, where is a non-negative integer. There is o ...
s:
:
The function is to be "smooth" (continuous and once differentiable), to be exact (
) and to meet the user's intuitive expectations about the phenomenon under investigation. Furthermore, the function should be suitable for a computer application at a reasonable cost (nowadays, a basic implementation will probably make use of
parallel resources).
Shepard's method
Historical reference
At the Harvard Laboratory for Computer Graphics and Spatial Analysis, beginning in 1965, a varied collection of scientists converged to rethink, among other things, what are now called
geographic information system
A geographic information system (GIS) consists of integrated computer hardware and Geographic information system software, software that store, manage, Spatial analysis, analyze, edit, output, and Cartographic design, visualize Geographic data ...
s.
The motive force behind the Laboratory,
Howard Fisher, conceived an improved computer mapping program that he called SYMAP, which, from the start, Fisher wanted to improve on the interpolation. He showed Harvard College freshmen his work on SYMAP, and many of them participated in Laboratory events. One freshman, Donald Shepard, decided to overhaul the interpolation in SYMAP, resulting in his famous article from 1968.
Shepard's algorithm was also influenced by the theoretical approach of
William Warntz and others at the Lab who worked with spatial analysis. He conducted a number of experiments with the exponent of distance, deciding on something closer to the gravity model (exponent of -2). Shepard implemented not just basic inverse distance weighting, but also allowed barriers (permeable and absolute) to interpolation.
Other research centers were working on interpolation at this time, particularly University of Kansas and their SURFACE II program. Still, the features of SYMAP were state-of-the-art, even though programmed by an undergraduate.
Basic form
Given a set of sample points
, the IDW interpolation function
is defined as:
:
where
:
is a simple IDW weighting function, as defined by Shepard,
[ x denotes an interpolated (arbitrary) point, x''i'' is an interpolating (known) point, is a given distance (]metric
Metric or metrical may refer to:
Measuring
* Metric system, an internationally adopted decimal system of measurement
* An adjective indicating relation to measurement in general, or a noun describing a specific type of measurement
Mathematics
...
operator) from the known point x''i'' to the unknown point x, ''N'' is the total number of known points used in interpolation and is a positive real number, called the power parameter.
Here weight decreases as distance increases from the interpolated points. Greater values of assign greater influence to values closest to the interpolated point, with the result turning into a mosaic of tiles (a Voronoi diagram
In mathematics, a Voronoi diagram is a partition of a plane into regions close to each of a given set of objects. It can be classified also as a tessellation. In the simplest case, these objects are just finitely many points in the plane (calle ...
) with nearly constant interpolated value for large values of ''p''. For two dimensions, power parameters cause the interpolated values to be dominated by points far away, since with a density of data points and neighboring points between distances to , the summed weight is approximately
:
which diverges for and . For ''M'' dimensions, the same argument holds for . For the choice of value for ''p'', one can consider the degree of smoothing desired in the interpolation, the density and distribution of samples being interpolated, and the maximum distance over which an individual sample is allowed to influence the surrounding ones.
''Shepard's method'' is a consequence of minimization of a functional related to a measure of deviations between tuple
In mathematics, a tuple is a finite sequence or ''ordered list'' of numbers or, more generally, mathematical objects, which are called the ''elements'' of the tuple. An -tuple is a tuple of elements, where is a non-negative integer. There is o ...
s of interpolating points and ''i'' tuples of interpolated points , defined as:
:
derived from the minimizing condition:
:
The method can easily be extended to other dimensional spaces and it is in fact a generalization of Lagrange approximation into a multidimensional spaces. A modified version of the algorithm designed for trivariate interpolation was developed by Robert J. Renka and is available in Netlib a
algorithm 661
in the TOMS Library.
Example in 1 dimension
Modified Shepard's method
Another modification of Shepard's method calculates interpolated value using only nearest neighbors within ''R''-sphere (instead of full sample). Weights are slightly modified in this case:
:
When combined with fast spatial search structure (like kd-tree), it becomes efficient ''N'' log ''N'' interpolation method suitable for large-scale problems.
Additional weightings
Additional weightings can be incorporated into the Inverse Distance Weighting (IDW) method to enhance interpolation accuracy by incorporating more relevant information. These additional weightings act as multipliers to the basic inverse distance weighting function. The decision to use additional weightings should be guided by cross-validation to ensure optimal performance. For example:
* Elevation
The elevation of a geographic location (geography), ''location'' is its height above or below a fixed reference point, most commonly a reference geoid, a mathematical model of the Earth's sea level as an equipotential gravitational equipotenti ...
difference – applied for wind
Wind is the natural movement of atmosphere of Earth, air or other gases relative to a planetary surface, planet's surface. Winds occur on a range of scales, from thunderstorm flows lasting tens of minutes, to local breezes generated by heatin ...
speed interpolation.
* CUTHI – is used when data is non-homogeneously distributed with clusters and when IDW exhibits the bullseye effect.
See also
* Field (geography)
* Gravity model
* Kernel density estimation
In statistics, kernel density estimation (KDE) is the application of kernel smoothing for probability density estimation, i.e., a non-parametric method to estimate the probability density function of a random variable based on '' kernels'' as ...
* Spatial analysis
Spatial analysis is any of the formal Scientific technique, techniques which study entities using their topological, geometric, or geographic properties, primarily used in Urban design, Urban Design. Spatial analysis includes a variety of techni ...
* Tobler's first law of geography
* Tobler's second law of geography
* Kriging
In statistics, originally in geostatistics, kriging or Kriging (), also known as Gaussian process regression, is a method of interpolation based on Gaussian process governed by prior covariances. Under suitable assumptions of the prior, kriging g ...
References
External links
Source code for IDW interpolation and CUTHI
{{DEFAULTSORT:Inverse Distance Weighting
Geostatistics
Multivariate interpolation