Local Kriging (Moving-Window Kriging)

Statistics
Introduced by
Haas, T. C.
Year
1990
Type
Spatial interpolation (local variant)
Family
GIS / spatial

What does it do?

Local Kriging is a spatially adaptive geostatistical interpolation method that restricts each prediction to a moving neighborhood of nearby observations, fitting a variogram model locally within that window.

This allows spatial covariance structure to vary across the study region rather than imposing a single global variogram, making it better suited to large or non-stationary spatial fields.

The intuition behind the method

Standard kriging fits one variogram to the entire dataset and uses it everywhere. Local Kriging instead draws a window around each prediction location, keeps only the nearby data points inside that window, estimates a variogram from them, and solves the kriging equations locally. This is analogous to fitting a local regression rather than a global one: the resulting surface adapts to how spatial correlation actually changes from place to place, which matters whenever the landscape, pollution gradient, or resource concentration behaves differently in different sub-regions.

History

Haas (1990) describes kriging with automated variogram modeling within a moving window, published in Atmospheric Environment. It is the earliest work cited on this page for the moving-window approach. Local kriging is listed among the kriging methods in a comparison table of R packages for spatial interpolation (Applied Spatial Statistics and Econometrics Data Analysis in R, p. 457).

When to use it

Use Local Kriging when the spatial covariance structure changes across the domain (non-stationarity), when the dataset is large enough that a global variogram would mask important local patterns, or when different sub-regions have clearly different nugget or range characteristics. It is especially valuable in environmental monitoring, mining, and atmospheric sciences over large or heterogeneous areas. Do not use it when the observations within a plausible window are too few to fit a variogram reliably, which is common when sampling is sparse or strongly clustered, or when stationarity can be safely assumed. In those cases a single global variogram model is more stable and cheaper to compute.

Limitations and considerations

  • Requires sufficient observations within each window; sparse data cause unreliable local variogram fits.
  • Computationally expensive compared to global kriging because a variogram must be fitted and a kriging system solved at every prediction location.
  • Window size (bandwidth) is a tuning parameter with no universally optimal choice; too small a window yields noisy variograms, too large loses local adaptivity.
  • Discontinuities or artifacts can appear at window boundaries if the local variogram structure changes abruptly.
  • Automatic variogram fitting within small windows can fail or produce degenerate parameter estimates.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Accounts for spatial non-stationarity by fitting variogram parameters locally rather than globally.
  • Adapts prediction weights to the local covariance structure, which can improve accuracy over heterogeneous regions.
  • Produces location-specific uncertainty estimates (kriging variance) that reflect local data density.
  • Scalable through parallel computation, because each window is an independent kriging problem.
  • For a kriging model without a nugget effect, predictions reproduce the observed values exactly; with a nugget effect, predictions are smoothed and need not pass through the data.

Applications

  • Interpolating air pollutant concentrations over large regions where emission sources create non-stationary spatial patterns.
  • Estimating ore grades or mineral concentrations in mining where deposit structure varies across the block model.
  • Mapping soil properties (pH, organic carbon, moisture) across heterogeneous agricultural or forest landscapes.
  • Spatial interpolation of climate variables (temperature, precipitation) over topographically complex terrain.
  • Groundwater contaminant mapping when plume characteristics differ across an aquifer.
  • Ecological habitat suitability modeling where species-environment relationships vary spatially.

How it works

How it works

1

For each target prediction location, a spatial neighborhood is defined, typically a circle or ellipse with a fixed radius or a fixed number of nearest neighbors. Only observations falling within this window are used in the later steps, which excludes distant data that may reflect different spatial structure.

2

A variogram model (spherical, exponential, Gaussian, etc.) is fitted automatically to the pairs of observations within the current window. Because this is repeated for every prediction location, the nugget, sill, and range parameters can vary spatially, which allows the method to capture local non-stationarity.

3

The kriging system is set up from the local covariance matrix C (between sampled points) and the covariance vector c_0 (between sampled points and the prediction location). The weights are obtained by solving λ = C⁻¹ c_0, the form given in the formula for this step. This is the simple kriging form: the local mean is treated as known, so the weights are not constrained to sum to one. Ordinary kriging, which estimates the mean, adds a sum-to-one constraint and therefore solves a different, augmented system.

Formula
\lambda = C^{-1} c_0
4

The predicted value at the target location is the weighted sum of the neighboring observations, Z-hat(s_0) = Σ λ_i Z(s_i). The weights are not a similarity score. They are the solution of the kriging system, so their size depends on the local covariance structure and on how the sampled points are arranged relative to each other and to the prediction location.

Formula
\hat{Z}(s_0) = \sum_{i=1}^{n} \lambda_i Z(s_i)
5

The variance σ²_K = c(0) − c_0ᵀ C⁻¹ c_0 is the simple kriging variance at the target location, a model-based uncertainty measure. Because the variogram is fitted locally, it reflects local data density and covariance structure. It does not include the extra uncertainty from estimating the mean, so it is generally smaller than the ordinary kriging variance computed from the same covariance model.

Formula
\sigma^2_K = c(0) - c_0^{\top} C^{-1} c_0

Common pitfalls

  • Choosing a window size without sensitivity analysis — always compare predictions under two or three window sizes to check stability.
  • Using automatic variogram fitting without inspecting the fitted models for at least a sample of windows; degenerate fits propagate silently into predictions.
  • Interpreting the local kriging variance as an absolute measure of accuracy without accounting for variogram estimation error.
  • Applying Local Kriging to clustered or highly irregular sampling designs where many windows will be nearly empty.

Frequently asked questions

How is Local Kriging different from ordinary kriging?

Ordinary kriging fits a single variogram to the entire dataset and uses global weights for every prediction. Local Kriging re-fits the variogram within a moving neighborhood around each target point, so the spatial covariance model can differ from one prediction location to another. This makes it more flexible in non-stationary settings but more computationally demanding.

How do I choose the window size?

More observations per window generally give a more stable variogram fit, so each window should contain enough points to support the fit. Cross-validation (leave-one-out or k-fold) is the usual way to compare prediction errors across candidate window sizes or neighbor counts. Also inspect the fitted variogram in a sample of windows, and compare predictions under two or three window sizes to check stability.

Can Local Kriging handle categorical or binary data?

Standard Local Kriging is designed for continuous spatial variables. For categorical outcomes, indicator kriging applied locally is the appropriate extension, though it requires fitting separate indicator variograms for each category within each window.

Is Local Kriging the same as Geographically Weighted Regression (GWR)?

No. GWR is a regression model that estimates locally varying relationships between a response variable and predictors using a spatial kernel weighting scheme. Local Kriging is a pure interpolation method based on spatial covariance (variogram) structure with no predictors beyond the spatial locations of observations. They address different questions and rely on different theoretical frameworks.

What software supports Local Kriging?

A comparison table of R packages for spatial interpolation lists local kriging among its kriging methods (Applied Spatial Statistics and Econometrics Data Analysis in R, p. 457). Check each package's documentation to confirm that it performs moving-window prediction before relying on it, since support differs between packages.

Related methods

Sources

  1. Haas, T. C. (1990). Kriging and automated variogram modeling within a moving window. Atmospheric Environment, 24(7), 1759-1769.

    Open DOI reference
  2. Goovaerts, P. (1997). Geostatistics for Natural Resources Evaluation. Oxford University Press.

    ISBN: 9780195115383
  3. Applied Spatial Statistics and Econometrics Data Analysis in R, p. 457