Ordinary Kriging

Statistics
Introduced by
Georges Matheron (formalising D.G. Krige's empirical work)
Year
1963
Type
Geostatistical interpolation
Family
GIS / spatial

What does it do?

Ordinary Kriging (OK) is a geostatistical method for interpolating a continuous spatial variable at unsampled locations.

Its weights come from the spatial covariance structure of the data, as summarised by the variogram, and the resulting predictor is the best linear unbiased predictor under the assumed stationarity model. Unlike simpler distance-based methods, it also returns a kriging variance, a prediction uncertainty at each interpolated point.

The intuition behind the method

Imagine you have rainfall gauges scattered across a region and need to estimate rainfall at an unmonitored spot. Ordinary Kriging says: nearby gauges matter more, but not simply because they are close — it learns the actual pattern of spatial dependence from your data first (via the variogram), then uses that pattern to weight each gauge optimally. The further the unmonitored spot is from any gauge, and the weaker the spatial correlation, the larger the uncertainty estimate it returns alongside the prediction.

History

Ordinary Kriging descends from the empirical work of D.G. Krige, who sought to estimate gold ore grades at unsampled locations. Georges Matheron formalised the underlying theory of geostatistics in 1963; his paper summarises its principles and criticises classical statistical methods for ore estimation. The method later spread to hydrology, soil science, climatology and environmental monitoring. Cressie's 1993 book is a standard later reference on statistics for spatial data.

When to use it

Choose Ordinary Kriging for spatially referenced continuous data, such as soil contaminant concentrations, groundwater heads or temperature fields, when you want an unbiased interpolation with an uncertainty estimate at each location. It fits when the mean is unknown but constant across the study area, and when the variogram depends only on the separation distance between points (the intrinsic hypothesis). Do not use it when the mean shows a clear spatial trend; Universal Kriging models that trend explicitly. It is a poor choice when the sample is too small to estimate a variogram reliably, when the field is strongly anisotropic and hard to model, or when the data violate stationarity and cannot be transformed to meet it.

Limitations and considerations

  • Requires a reliable variogram model; poor variogram fitting propagates errors into all predictions.
  • Assumes spatial stationarity (constant mean, and a variogram that depends only on separation distance), which is often violated in practice.
  • Kriging variance reflects only sample configuration and the variogram model, so it can underestimate true uncertainty if the model is wrong.
  • Computationally intensive for very large datasets (solving the kriging system scales as O(n³)), although local kriging neighbourhoods mitigate this.
  • Does not incorporate secondary variables; Co-Kriging is designed for that case.

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

Strengths

  • Gives the best linear unbiased predictor under the stationarity assumptions; the sum-to-one constraint makes the predictor unbiased by construction.
  • Returns a kriging variance at every interpolated location, which reflects sample configuration and the fitted variogram rather than the observed values.
  • Weights come from the fitted spatial dependence structure rather than a fixed distance-decay function, so the estimated correlation directly shapes the prediction.
  • With a zero nugget, predicted values reproduce the observed data at sampled locations; with a nonzero nugget the predictor is smoothed and no longer reproduces the observations exactly.
  • Well-supported in widely used open-source tools (R gstat, Python pykrige, ArcGIS Geostatistical Analyst).

Applications

  • Soil science: mapping soil nutrient concentrations, pH, or contaminant levels between sample points.
  • Hydrogeology: interpolating groundwater levels or hydraulic head surfaces from borehole measurements.
  • Climatology and meteorology: spatial interpolation of temperature, precipitation, or air quality across monitoring networks.
  • Mining and petroleum engineering: estimating ore grades or reservoir properties at undrilled locations.
  • Environmental monitoring: mapping pollutant concentrations in air, water, or sediment.

How it works

How it works

1

The variogram γ(h) is half the expected squared difference between values separated by lag h. The empirical variogram estimates it from pairs of observations grouped by separation distance. It shows how dissimilarity grows with distance and describes the spatial dependence on which the kriging weights rely.

Formula
\gamma(h) = \frac{1}{2} \text{Var}[Z(s) - Z(s+h)]
2

A theoretical model (for example spherical, exponential or Gaussian) is fitted to the empirical variogram, estimating the nugget, sill and range. The nugget-to-sill ratio is the first diagnostic, because it shows how much of the total variance is unexplained at the smallest scales. Starting values for the sill, nugget and range can be supplied, and several candidate models can be tested; the examination should check the fitted model against the empirical variogram. Model choice and parameter estimation require judgement, and they strongly influence the interpolation. Cross-validation, discussed in the FAQ, is the practical basis for comparing candidate models.

3

The weights λ are obtained by solving a linear system built from the variogram values among the sample points and between the samples and the target location. The Lagrange multiplier μ enforces that the weights sum to one, which is the unbiasedness constraint of the predictor.

Formula
\begin{pmatrix} \Gamma & \mathbf{1} \\ \mathbf{1}^\top & 0 \end{pmatrix} \begin{pmatrix} \lambda \\ \mu \end{pmatrix} = \begin{pmatrix} \gamma_0 \\ 1 \end{pmatrix}
4

The predicted value at an unsampled location is the weighted sum of observed values, where each weight is determined by the fitted variogram model and the geometric arrangement of the sample points.

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

The kriging variance quantifies prediction uncertainty at each interpolated location. It depends on the sample configuration and the variogram model, not on the observed values, and it is generally smaller near densely sampled areas.

Formula
\sigma^2_{OK}(s_0) = \lambda^\top \gamma_0 + \mu

Common pitfalls

  • Fitting the variogram by eye without validation: always cross-validate the fitted model (leave-one-out CV) before relying on predictions.
  • Ignoring anisotropy: if spatial dependence differs by direction, fit a directional variogram rather than an omnidirectional one.
  • Treating kriging variance as a full probability interval when the Gaussian model is not verified — the variance is only meaningful under the assumed model.
  • Using too large or too small a search neighbourhood: too few neighbours produce local artefacts; too many violate local stationarity.
  • Checking for extreme or dominating values before kriging, and handling them deliberately. Outliers distort the variogram and inflate the nugget, and dominating values can bias the interpolation. The case study in the library source had values of 600 and 1500 alongside a dominant value of 5, and the data were cleaned by subsetting. Inspect, justify and document any removal or transformation.

Frequently asked questions

What is the difference between Ordinary Kriging and Inverse Distance Weighting?

Inverse Distance Weighting (IDW) assigns weights purely based on geometric distance, with no statistical foundation. Ordinary Kriging derives weights from the variogram — the actual spatial dependence of the data — making it statistically optimal under the assumed model. OK also provides uncertainty estimates; IDW does not.

How do I choose a variogram model (spherical, exponential, Gaussian)?

Fit candidate models to the empirical variogram and compare them using cross-validation (leave-one-out RMSE and mean error). In practice, the spherical and exponential models are most common; the Gaussian model implies very smooth fields and can be numerically unstable. Visual fit to the empirical variogram provides a first guide, but CV statistics should drive the final choice.

When should I use Universal Kriging instead of Ordinary Kriging?

When the mean of the variable shows a systematic spatial trend (e.g., elevation increasing from west to east), the stationarity assumption of OK is violated. Universal Kriging (Kriging with a trend) explicitly models this trend as a deterministic function of coordinates, then kriging is applied to the residuals.

What does the nugget effect represent?

The nugget is the discontinuity of the variogram at the origin: the limit of γ(h) as h approaches 0 from above, since γ(0) = 0 by definition. It captures measurement error and spatial variation at scales smaller than the minimum sample spacing. A large nugget relative to the sill (total variance) indicates weak spatial structure and leads to predictions that revert quickly toward the estimated mean.

Can Ordinary Kriging handle very large datasets?

Naively, solving the kriging system is O(n3) in the number of observations, which becomes prohibitive beyond a few thousand points. Practical solutions include using a local search neighbourhood (only the nearest k points contribute), or switching to Fixed Rank Kriging or other approximate methods designed for large n.

Related methods

Sources

  1. Matheron, G. (1963). Principles of geostatistics. Economic Geology, 58(8), 1246-1266.

    Open DOI reference
  2. Cressie, N. A. C. (1993). Statistics for Spatial Data (Revised ed.). Wiley-Interscience.

    ISBN: 978-0471002550