- Introduced by
- Georges Matheron
- Year
- 1969
- Type
- Geostatistical interpolation with spatial trend
- Family
- Geostatistics
What does it do?
Universal kriging generalizes ordinary kriging to data whose mean varies systematically across space — a spatial trend or 'drift'.
It models the mean as a function of the coordinates (or covariates) and krigs the residuals, so it can interpolate variables that drift in a preferred direction, such as temperature falling with latitude or a pollutant gradient, while still returning prediction variances.
The intuition behind the method
Ordinary kriging assumes the average level of the variable is roughly constant across the area, with only local fluctuations. But many fields have a built-in slope — elevation rising toward mountains, temperature dropping northward. Forcing a constant-mean model onto such data distorts predictions. Universal kriging instead splits the value into two parts: a smooth large-scale trend (a polynomial in the coordinates or a function of covariates) plus spatially correlated residual wiggles. It estimates the trend and the residual correlation together, predicting the trend and kriging the leftover structure.
History
Universal kriging is part of the geostatistical framework associated with Georges Matheron. His summary of geostatistics (1963) sets out the principles for estimating ore grades and their errors, which underpin kriging-based prediction in general. Universal kriging extends the linear unbiased prediction of ordinary kriging to a mean that varies across space. Cressie (1993) provides a detailed general treatment of kriging with a trend.
When to use it
Use universal kriging when the variable has a systematic large-scale trend across the study area that violates the constant-mean assumption of ordinary kriging, such as a directional gradient, an elevation-driven pattern, or a drift that can be expressed as a function of coordinates or covariates. Ordinary and universal kriging with a planar trend often give very similar results, so an improvement from adding a trend should not be assumed. In one worked example, employee numbers across the Lubelskie voivodeship, the RMSE of universal kriging with a distance-based trend was about 0.02 lower than that of ordinary kriging, a difference that on its own gives little reason to prefer the trend model. Whether the trend improves predictions should therefore be checked, for example by comparing the two models on held-out observations. It is also worth checking whether the variation is mainly spatial at all, since kriging of any kind adds little when most of the variation is non-spatial. Do not use universal kriging when the mean is effectively constant, since ordinary kriging is simpler and avoids extra trend parameters. Be cautious when the trend form is uncertain, because a poorly chosen form can be over- or under-specified. When a known, exhaustively sampled covariate drives the mean, kriging with external drift, a special case of the method, is the natural alternative. Extrapolating the fitted trend beyond the sampled area is risky.
Limitations and considerations
- Requires choosing a trend model, risking mis-specification.
- Trend and residual-variogram estimation are intertwined and need care (REML).
- Extrapolating the fitted trend beyond the data range is unreliable.
- More complex and assumption-laden than deterministic interpolators.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Handles non-stationary means (spatial trend/drift) that ordinary kriging cannot.
- Retains kriging's uncertainty quantification via prediction variances.
- Flexible trend specification using coordinates or covariates.
- Reduces to ordinary kriging when the trend is constant.
Applications
- Interpolating temperature or precipitation with latitudinal/elevation gradients.
- Mapping pollutant concentrations with a directional drift.
- Geological and mining surfaces with regional trends.
- Soil and groundwater properties varying systematically across a landscape.
- Any geostatistical mapping where a covariate drives the mean (external drift).
How it works
How it works
The mean is modelled as a linear combination of known basis functions of location (e.g., low-order polynomials in the coordinates) or external covariates, capturing the systematic large-scale drift. The remaining spatially correlated residual is assumed second-order stationary.
Formula
Z(x) = m(x) + \varepsilon(x),\quad m(x) = \sum_k \beta_k f_k(x)
The variogram is modelled on the residuals after removing the trend, since the raw variogram is contaminated by the drift. The residuals depend on the trend coefficients, so the trend and the residual variogram are estimated jointly, either iteratively or by restricted maximum likelihood (REML).
Formula
\gamma_\varepsilon(h)\ \text{from detrended residuals}Prediction is a weighted linear combination of observations, with weights solving an augmented kriging system that enforces unbiasedness with respect to every trend basis function. As with all kriging, the output includes a prediction and a kriging variance at each location.
Formula
\hat{Z}(x_0) = \sum_i \lambda_i Z(x_i),\ \text{s.t. unbiasedness on each } f_kCommon pitfalls
- Estimating the variogram from raw (un-detrended) data, biasing the residual structure.
- Over-fitting a high-order trend polynomial that behaves wildly at the edges.
- Extrapolating the trend into unsampled regions far from data.
- Using universal kriging when the mean is actually constant, adding needless complexity.
- Expecting a clear accuracy gain over ordinary kriging from a simple planar trend without a held-out comparison; in the worked example the RMSE difference was only about 0.02.
Frequently asked questions
How does universal kriging differ from ordinary kriging?
Ordinary kriging assumes a constant (but unknown) mean across the area; universal kriging models the mean as a spatial trend (a function of coordinates or covariates) and krigs the residuals. Use universal kriging when the data show a systematic large-scale gradient that the constant-mean assumption would distort.
What is kriging with external drift?
It is a special case of universal kriging where the trend is driven by a known, exhaustively sampled covariate (such as elevation from a DEM) rather than by polynomials of the coordinates. It is a convenient way to fold a strong auxiliary variable into the mean structure.
Why must the variogram be modelled on residuals?
Because the trend inflates and distorts the raw variogram, mixing large-scale drift with local correlation. The spatial correlation of interest is in the residuals after removing the trend, so the residual variogram — estimated jointly with the trend, often by REML — is what the kriging system needs.
Related methods
Sources
Matheron, G. (1963). Principles of geostatistics. Economic Geology, 58(8), 1246–1266.
Open DOI referenceCressie, N. A. C. (1993). Statistics for Spatial Data (Revised ed.). John Wiley & Sons.
ISBN: 978-0-471-00255-0Kopczewska, K. (2021). Applied Spatial Statistics and Econometrics: Data Analysis in R, p. 429