- Introduced by
- Diggle, Tawn & Moyeed; Kitanidis; Handcock & Stein
- Year
- 1990s–2000s
- Type
- Bayesian geostatistical interpolation with trend
- Family
- GIS / spatial
What does it do?
Bayesian Universal Kriging (BUK) extends classical universal kriging by placing prior distributions on the trend coefficients and spatial covariance parameters, then propagating the full posterior uncertainty into predictions.
It interpolates spatially referenced continuous data while estimating a large-scale trend driven by covariates together with small-scale spatial dependence. The resulting prediction intervals account for both parameter uncertainty and interpolation uncertainty.
The intuition behind the method
Classical universal kriging fits a trend surface, interpolates the residuals, and treats the estimated trend coefficients and variogram parameters as if they were known. BUK treats those quantities as uncertain. Given the observed data and prior beliefs about the trend and the spatial correlation, it asks what the full probability distribution of the value at an unobserved location is. Because that distribution includes uncertainty about the model's parameters, its prediction intervals typically carry more uncertainty than plug-in classical intervals and are often wider. Whether they are well calibrated should be checked with holdout or simulation studies rather than assumed.
History
Universal kriging extends ordinary kriging by allowing the mean to vary through spatial covariates. Bayesian geostatistical treatments of this model are associated with Diggle, Tawn & Moyeed, Kitanidis, and Handcock & Stein, mainly in the 1990s–2000s; the specific publications for these attributions are not given here. The main references are Diggle & Ribeiro (2007) and Banerjee, Carlin & Gelfand (2015).
When to use it
Choose Bayesian Universal Kriging when you have georeferenced continuous measurements, such as pollution levels, soil properties or temperature, and spatial covariates such as elevation or land-use type that plausibly explain large-scale variation. It fits best when sample sizes are small to moderate, when classical variogram estimation is unreliable, when prior scientific knowledge about correlation ranges should be formally used, or when credible intervals are needed for decisions. Do not use it when the number of observations is beyond a few thousand without approximation methods, when predictions are needed in real time, when no spatial trend is present (ordinary kriging is then sufficient), or when the outcome is non-Gaussian, such as counts or proportions, without a suitable extension.
Limitations and considerations
- Computationally intensive: MCMC requires inverting the n×n covariance matrix at each iteration, which scales as O(n³) and makes exact inference impractical beyond a few thousand observations.
- Sensitive to the prior specification for the range and nugget parameters when data are sparse or irregularly distributed.
- Requires choosing and justifying a parametric covariance family (Matérn, exponential, etc.); misspecification can bias predictions.
- MCMC chains must be checked for convergence and mixing; poorly mixing chains give unreliable posterior summaries.
- More complex to implement and interpret than classical universal kriging, and it requires familiarity with Bayesian computation.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Provides full predictive distributions, so credible intervals reflect uncertainty in both the trend coefficients and the covariance parameters.
- Incorporates spatial covariates as fixed-effect trend terms in f(s)ᵀβ, which can improve prediction where those covariates are informative about the mean.
- Prior information about plausible correlation ranges or nugget ratios can be encoded formally, which can stabilise estimation when data are sparse.
- Posterior predictive checks give a way to assess model fit within the Bayesian workflow.
- Models the mean trend separately from the spatially correlated residual δ(s), so a non-constant mean is handled explicitly rather than absorbed into the covariance.
Applications
- Environmental monitoring: mapping pollution or soil contamination with a trend driven by covariates such as land use, and reporting credible intervals to inform remediation decisions.
- Soil and agronomic mapping: interpolating soil properties from sparse field samples, with topography or other field covariates in the trend.
- Climate and weather fields: estimating temperature or precipitation at unobserved locations, with covariates such as elevation in the mean.
- Epidemiology and resource estimation: mapping disease risk or ore grades where covariates such as population density or geology enter the trend and uncertainty must be reported.
How it works
How it works
The observed process Z(s) is decomposed into a large-scale mean f(s)ᵀβ, a linear function of spatial covariates, plus a zero-mean stationary spatial error δ(s) with spatial autocorrelation, and an independent nugget noise term ε. This is the structural assumption of universal kriging.
Formula
Z(\mathbf{s}) = \mathbf{f}(\mathbf{s})^\top \boldsymbol{\beta} + \delta(\mathbf{s}) + \varepsilonPrior distributions are assigned to the trend coefficients β, the partial sill σ², the nugget variance, and the range parameter φ that governs spatial correlation. A diffuse normal prior on β and inverse-gamma priors on variances are common starting points. The prior on φ usually matters most when data are sparse, so domain knowledge about plausible correlation ranges is often incorporated there.
Formula
\boldsymbol{\beta} \sim N(\mathbf{m}, \mathbf{V}), \quad \sigma^2 \sim \text{Inv-Gamma}(a, b), \quad \tau^2 \sim \text{Inv-Gamma}(c, d), \quad \phi \sim p(\phi)The spatial dependence is parameterised by a correlation function C(h; φ), such as Gaussian, Matérn or exponential, with range φ and sill σ². Because the trend-model step includes an independent nugget term ε, the semivariogram includes a nugget variance τ² for h > 0, giving γ(h) = τ² + σ²[1 − C(h; φ)] with γ(0) = 0 by convention. C must be a correlation function, so that C(0) = 1. This function controls how quickly spatial correlation decays with distance h.
Formula
\gamma(h) = \tau^2 + \sigma^2 \left[1 - C(h;\phi)\right] \quad (h > 0), \qquad \gamma(0) = 0
The joint posterior of all parameters is proportional to the likelihood of the observed data times the prior. Because the posterior is rarely analytically tractable, Markov chain Monte Carlo (MCMC) methods, such as Gibbs sampling or Metropolis-Hastings, are used to draw samples from it. Convergence should be checked before results are reported: trace plots should look stationary and well mixed, the Gelman-Rubin statistic R-hat should be close to 1 (a common convention rather than a strict rule), and the effective sample size should be adequate for the posterior summaries of interest. Prior sensitivity is checked by refitting with alternative priors, especially on φ and the nugget variance τ², and comparing the resulting predictions.
Formula
p(\boldsymbol{\beta}, \sigma^2, \phi \mid \mathbf{Z}) \propto p(\mathbf{Z} \mid \boldsymbol{\beta}, \sigma^2, \phi)\, p(\boldsymbol{\beta}, \sigma^2, \phi)The predictive distribution at a new location s₀ is obtained by integrating the conditional prediction over the posterior distribution of the parameters θ. In practice this integral is approximated by averaging the conditional predictive distribution over posterior draws. A credible interval for the prediction is read from the lower and upper equal-tailed quantiles of these predictive draws. Averaging over draws makes the predictive spread reflect both interpolation uncertainty and parameter uncertainty.
Formula
p(Z(\mathbf{s}_0) \mid \mathbf{Z}) = \int p(Z(\mathbf{s}_0) \mid \boldsymbol{\theta}, \mathbf{Z})\, p(\boldsymbol{\theta} \mid \mathbf{Z})\, d\boldsymbol{\theta}Common pitfalls
- Using diffuse priors on the range parameter when data are sparse can leave the range poorly identified, so the predictive intervals may depend heavily on the prior.
- Neglecting to check MCMC convergence diagnostics (Gelman-Rubin R-hat, trace plots) before reporting results.
- Comparing the posterior predictive interval with a classical kriging standard error can be misleading, because the two intervals reflect different sources of uncertainty: the Bayesian interval marginalises over parameter uncertainty, while the classical one usually conditions on estimated parameters.
- Applying BUK to non-Gaussian outcomes such as counts or proportions without a generalized linear model extension violates the Gaussian likelihood on which the model is built.
- Preferential sampling: if monitoring sites were chosen because of the values observed there (for example, near industrial sources), a likelihood that ignores the sampling design can bias both the trend and the predictions.
Frequently asked questions
How does Bayesian Universal Kriging differ from classical Universal Kriging?
Classical universal kriging treats variogram parameters as fixed known quantities (estimated separately, for example via REML or method-of-moments) and then conditions on them. BUK places prior distributions on those parameters and marginalises over them, so prediction intervals are wider but better calibrated: they capture uncertainty from parameter estimation as well as interpolation uncertainty.
What covariance function should I choose?
The Matérn covariance family is commonly preferred because its smoothness parameter ν controls how differentiable the spatial process is. ν can be fixed at a chosen value or estimated from the data. Joint estimation of ν and the range φ from limited data may be weakly identified, so the posterior for these parameters should be checked.
Can Bayesian Universal Kriging handle very large datasets?
Exact BUK with MCMC scales as O(n³) per iteration and becomes impractical beyond a few thousand observations. Approximation strategies include predictive-process models, nearest-neighbour Gaussian processes (NNGP), and low-rank spatial basis functions, which reduce computational cost while retaining the Bayesian uncertainty propagation.
Do I need informative priors to get good results?
Not necessarily. Weakly informative priors are one common option; for example, one may constrain the spatial range to be no larger than the diameter of the study region. This is a modelling choice rather than a standard rule, and its suitability depends on the data and the study question. Very diffuse priors on variance and range can, depending on the specific prior and likelihood, lead to improper or very slowly mixing posteriors, so posterior and convergence checks are needed in either case.
When should I prefer Bayesian Ordinary Kriging over Bayesian Universal Kriging?
Choose Bayesian Ordinary Kriging when a constant mean is a reasonable assumption and no useful spatial covariates are available. BUK adds complexity and requires meaningful covariates; if trend covariates are weak or collinear, the simpler ordinary kriging variant will likely perform comparably with less risk of over-parameterisation.
Related methods
Sources
Diggle, P. J., & Ribeiro, P. J. (2007). Model-Based Geostatistics. Springer.
ISBN: 978-0387329079Banerjee, S., Carlin, B. P., & Gelfand, A. E. (2015). Hierarchical Modeling and Analysis for Spatial Data (2nd ed.). CRC Press.
ISBN: 978-1439819173