- Introduced by
- Journel & Huijbregts; developed further by Goovaerts and Chiles & Delfiner
- Year
- 1970s–1990s
- Type
- Geostatistical interpolation (local/moving-window variant)
- Family
- GIS / spatial
What does it do?
Local Ordinary Kriging (LOK) is a geostatistical interpolation method that estimates values at unsampled locations from a moving spatial neighborhood of nearby observations, not from the full dataset.
Each prediction uses only the points inside its local window, and the variogram is refitted there, so spatial dependence can differ across the study area while each kriging system stays small. Local stationarity, meaning no systematic trend within the window, is still assumed.
The intuition behind the method
Consider estimating rainfall at an unmeasured point. Instead of using every weather station in a country, you consider only the stations nearest to that point. Local Ordinary Kriging works the same way: it moves a spatial window to each prediction target, selects the observations inside that window, fits a variogram to them to describe how similarity declines with distance, and computes a weighted average. Closer observations receive larger weights, and the weights sum to one, which keeps the estimate unbiased. Because the variogram is refitted in each window, the resulting surface can follow local data density and local spatial structure.
History
Kriging is named after D.G. Krige, whose empirical work on ore-grade estimation in South African gold mining in the 1950s motivated the approach. Georges Matheron gave it its formal theoretical basis in the 1960s. The local, moving-window form is a later practical adaptation of the global method, suited to large datasets where applying a single global system or variogram uniformly across the whole study area is impractical.
When to use it
Choose LOK when you have continuous, georeferenced point measurements (for example soil properties, pollutant concentrations, temperature, or elevation) and need predictions on a grid together with an uncertainty map. It is most useful when the dataset is too large for a single global kriging system, or when spatial correlation is unlikely to be constant across the whole study area. Do not use it when the local window holds too few neighbors for a stable variogram fit, when a large-scale trend dominates the field (use universal kriging or regression-kriging instead), or when the variable is categorical rather than continuous.
Limitations and considerations
- The local variogram is estimated only from the points in one window, so it can be unstable when that window contains few point pairs, which in turn produces unreliable weights. No universal minimum applies; the adequate number of pairs depends on the data.
- The neighborhood size, the search strategy (radius, nearest neighbors, or anisotropic ellipse), and the variogram model family are analyst choices, and each can change the output.
- Refitting a variogram at every prediction location adds total computation compared with a single global variogram fit, so the efficiency gain depends on how many locations are predicted.
- Far from any observation, the prediction reverts toward the local mean and the kriging variance approaches the marginal variance, so the surface carries little information in data-sparse areas.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Refits the variogram within each moving window, so the spatial dependence model can differ between parts of the study area.
- Solves a small kriging system for each prediction rather than one system over all observations, which keeps each prediction inexpensive on large datasets.
- Returns a kriging variance with each prediction, giving a location-by-location uncertainty map.
- The sum-to-one constraint makes the estimator unbiased without requiring the local mean to be known.
Applications
- Soil property mapping (organic carbon, pH, heavy metals) from point survey data across heterogeneous landscapes.
- Interpolation of climate variables (precipitation, temperature) where spatial correlation structure shifts across regions.
- Groundwater head or contaminant concentration mapping in hydrogeological surveys.
- Air quality surface generation from monitoring station networks for regulatory exposure assessment.
- Mining resource estimation when ore grade spatial structure varies across a deposit.
- Interpolation of seismic or geophysical attributes across large survey grids.
How it works
How it works
A search neighborhood is defined for each prediction location, either as a fixed radius, as a fixed number of nearest neighbors, or as an anisotropic ellipse. Only observations inside this window are used for the prediction at that location, so the neighborhood adapts to the local configuration of data. The neighborhood size has to be chosen for each dataset. It should contain enough point pairs to estimate the variogram at the lags of interest, and a radius near the practical range of the global variogram is a reasonable starting point.
A variogram (semivariogram) is estimated from the selected local points using the method-of-moments estimator shown in the formula. For each lag h, the set N(h) collects the pairs of points separated by approximately h, and the estimate is half the mean squared difference between the values in those pairs. A valid parametric model (spherical, exponential, or Gaussian) is then fitted to this empirical variogram.
Formula
\hat{\gamma}(h) = \frac{1}{2|N(h)|}\sum_{N(h)}[z(\mathbf{x}_i)-z(\mathbf{x}_j)]^2The ordinary kriging system imposes an unbiasedness constraint, namely that the weights sum to one. The constraint is imposed with a Lagrange multiplier, and the system minimizes the estimation variance. The predicted value at the target is a weighted linear combination of the local observations, with weights derived from the fitted variogram.
Formula
\hat{Z}(\mathbf{x}_0) = \sum_{i=1}^{n}\lambda_i Z(\mathbf{x}_i),\quad \sum_{i=1}^{n}\lambda_i = 1The kriging weights are obtained by solving a linear system that contains the variogram values between every pair of local data points and between each data point and the target. Points that are close to the target and do not duplicate one another's spatial information receive the largest weights.
With the weights in hand, the predicted value and its kriging variance are computed. The kriging variance gives a location-by-location uncertainty map, which non-geostatistical interpolators such as inverse distance weighting do not provide in this form.
Common pitfalls
- Using a neighborhood with too few observations produces highly variable variogram estimates and unstable kriging weights.
- Not checking the fitted variogram within each window: a poor fit feeds systematic error into every nearby prediction.
- Accepting local fits without checking the number of point pairs per lag and the number of neighbors per window, or whether the fitted parametric model is valid (positive definite). Report these counts and flag windows where the fit is weak.
- Using an isotropic search window when spatial dependence is direction-dependent distorts the variogram fit and the kriging weights, and therefore the predictions.
- Reading the kriging variance as a calibrated confidence interval without checking coverage. The variance is only as reliable as the assumed variogram model.
- Applying LOK where a global trend dominates. Remove the trend first (regression-kriging) or use universal kriging, which models the trend explicitly.
Frequently asked questions
How is Local Ordinary Kriging different from global Ordinary Kriging?
Global ordinary kriging estimates one variogram from all the data and solves one large kriging system. Local ordinary kriging restricts each prediction to a moving spatial neighborhood, refits the variogram locally, and solves a much smaller system at each location. Each prediction is therefore cheaper, and the local fit can follow spatial correlation that changes across the study area, although refitting at many locations adds its own cost.
How do I choose the neighborhood size?
There is no fixed rule, and the appropriate size depends on the data. Choose a neighborhood that contains enough point pairs to estimate the variogram at the lags you need. A radius close to the practical range of the global variogram is one reasonable starting point. Leave-one-out cross-validation, comparing prediction error across candidate neighborhood sizes, is the most principled check.
Can I use LOK when my data have a spatial trend?
Not directly. LOK assumes local stationarity, meaning no systematic trend within the window. If a trend is present, remove it first with a regression or polynomial surface and then apply kriging to the residuals (regression-kriging), or use universal kriging, which models the trend explicitly.
What does the kriging variance tell me?
The kriging variance measures prediction uncertainty based on the distance to nearby observations and the variogram model. It is small near data points and grows away from them. It is not a classical confidence interval unless the data follow a Gaussian process, so cross-validation of actual coverage is recommended.
Is LOK the same as geographically weighted regression?
No. Both use spatial windows, but LOK is a geostatistical interpolator for a single regionalized variable and derives its weights from a covariance (variogram) model. Geographically weighted regression is a local regression method that estimates spatially varying relationships between a response and predictors. They address different problems.
Related methods
Sources
Chiles, J.-P., & Delfiner, P. (1999). Geostatistics: Modeling Spatial Uncertainty. Wiley.
ISBN: 978-0471083153Goovaerts, P. (1997). Geostatistics for Natural Resources Evaluation. Oxford University Press.
ISBN: 978-0195115383