- Introduced by
- Donald Shepard
- Year
- 1968
- Type
- Deterministic spatial interpolation
- Family
- Geostatistics
What does it do?
Inverse distance weighting (IDW) estimates a value at an unsampled location as a weighted average of nearby measured points, with closer points receiving larger weights.
It is deterministic: the weights depend only on distance, so no statistical model of spatial correlation is fitted. Shepard introduced the method in 1968 as a two-dimensional interpolation function for irregularly spaced data, and it is widely implemented in GIS software for mapping continuous fields such as rainfall, elevation or pollution from scattered samples.
The intuition behind the method
Suppose you have air-quality readings at a few dozen stations and want a smooth pollution map. A reasonable guess at any unmeasured point is a blend of the nearby readings — but stations right next door should count more than ones far away. IDW formalizes exactly this: it weights each known point by the inverse of its distance raised to a power, then averages. Crank the power up and only the very nearest points matter (sharp, bullseye-like surfaces); turn it down and distant points contribute too (smoother surfaces). Unlike kriging it uses no statistical model of spatial correlation — it is a transparent distance-decay average.
History
Donald Shepard introduced inverse distance weighting in a 1968 paper in the Proceedings of the 23rd ACM National Conference (pp. 517–524), describing it as a two-dimensional interpolation function for irregularly spaced data. It is a deterministic alternative to the geostatistical kriging family, which models spatial correlation explicitly and yields prediction variances.
When to use it
Choose IDW when you need a quick, transparent interpolation of a continuous variable from a reasonably dense and fairly even set of samples, and you do not want to fit a variogram or assume a spatial covariance model. IDW is also a reasonable choice for exploratory mapping, or when there are too few samples to fit a variogram reliably. Its predictions are weighted averages of observed values, so they stay within the observed range, and the method is simple to explain and reproduce. Do not rely on it when you need prediction uncertainty, must model spatial correlation or directional (anisotropic) structure explicitly, or work with strongly clustered or sparse samples, where the power and neighbourhood choices have large effects. In those cases a kriging method (ordinary, universal, or cokriging) is the statistically grounded alternative.
Limitations and considerations
- Produces 'bullseye' artefacts: an isolated sample generates concentric patterns around its location because its weight dominates nearby predictions.
- Cannot predict beyond the minimum and maximum of the observed values, so an unsampled peak higher than any measured value cannot be represented.
- Gives no prediction variance, unlike kriging.
- Results depend on the power p and the search neighbourhood, and uneven sampling shifts estimates toward densely sampled areas.
- Assumes distance acts equally in all directions (isotropy), so directional trends are not captured; anisotropic kriging is the usual alternative in that case.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Simple, fast, and easy to explain — a transparent distance-decay average.
- Requires no distributional assumptions or variogram modelling.
- Exact interpolator: the surface honours the measured sample values.
- Predictions stay within the observed value range, avoiding wild extrapolation.
Applications
- Mapping rainfall, temperature, and other climate variables from weather stations.
- Interpolating air- and water-quality measurements across a region.
- Building elevation or soil-property surfaces from point samples.
- Quick exploratory surfaces before committing to geostatistical modelling.
- Filling gaps in environmental monitoring networks.
How it works
How it works
Each sampled point receives a weight equal to one over its distance d to the prediction location, raised to the power p. A larger p makes the weights fall off faster with distance, concentrating influence on the nearest neighbours; p = 2 is a common default. Here d is the distance between the prediction location and the sample, measured in a projected coordinate system with consistent units, or as geodesic distance for latitude/longitude data over large areas, because the distance definition directly changes the weights. The expression is undefined when the prediction location coincides with a sample (d = 0), so implementations conventionally return the measured value at that sample instead.
Formula
w_i(x_0) = \dfrac{1}{d(x_0, x_i)^{p}}The estimate at the unsampled location is the weighted average of the sampled values using those weights, normalized so the weights sum to one. The predicted surface passes exactly through the sample points (IDW is an exact interpolator) and lies within the range of the observed values (no extrapolation beyond observed min/max).
Formula
\hat{z}(x_0) = \dfrac{\sum_{i=1}^{n} w_i(x_0)\, z(x_i)}{\sum_{i=1}^{n} w_i(x_0)}To keep computation local and avoid distant points dominating by sheer numbers, the average usually uses only the k nearest neighbours or all points within a search radius r. The choice of neighbourhood and power p are the method's tuning parameters, often selected by cross-validation.
Formula
\text{use } k \text{ nearest or all points within radius } rCommon pitfalls
- Leaving the power at a default without cross-validating it against the data.
- Using all points globally, letting clusters of distant samples bias estimates.
- Expecting realistic surfaces from sparse or highly clustered samples.
- Treating IDW output as having quantified uncertainty when it has none.
- Computing distances in unprojected latitude/longitude coordinates over large areas, where distortion alters the weights.
Frequently asked questions
How does IDW differ from kriging?
IDW is deterministic: it weights samples purely by distance and makes no statistical model of spatial correlation, so it gives no uncertainty estimate. Kriging models the spatial correlation through a variogram, producing both predictions and a prediction variance, and can incorporate trend (universal kriging) or covariates (cokriging). IDW is simpler and faster; kriging is statistically richer.
What does the power parameter p control?
It controls how quickly a point's influence decays with distance. A high power concentrates weight on the nearest samples, producing sharper, more localized surfaces with pronounced bullseyes; a low power spreads influence to farther points, giving smoother surfaces. The power is commonly tuned by cross-validation.
Why does my IDW map have bullseyes?
IDW is an exact interpolator that strongly weights the nearest sample, so an isolated data point creates concentric circular patterns around itself. Denser, more even sampling and a lower power reduce this effect.
Related methods
Sources
Shepard, D. (1968). A two-dimensional interpolation function for irregularly-spaced data. Proceedings of the 23rd ACM National Conference, 517–524.
Open DOI referenceLi, J., & Heap, A. D. (2008). A review of spatial interpolation methods for environmental scientists. Geoscience Australia Record 2008/23.
Open publication reference