How it Works
Kriging treats observed values at known locations as realisations of a spatial random field. The semivariogram quantifies how variance grows with distance. Ordinary kriging then solves a system of equations to find optimal interpolation weights that minimise estimation variance subject to the unbiasedness constraint.
The canvas shows a colour-coded interpolation surface updated in real-time as you change the variogram parameters. Sample points are shown as circles; click to add new ones.
Frequently Asked Questions
What is kriging?
Kriging is a geostatistical interpolation method that estimates values at unsampled locations as a weighted average of nearby samples, where weights are derived from a variogram model describing spatial autocorrelation. It is the BLUP (Best Linear Unbiased Predictor) for spatial data.
What is a variogram?
A variogram γ(h) measures the spatial variance between pairs of observations separated by distance h. It quantifies how similar values are at different separations: γ(h) = 0.5 × E[(Z(x+h) − Z(x))²]. The experimental variogram is fitted by a theoretical model (spherical, exponential, Gaussian).
What is the exponential variogram model?
The exponential variogram γ(h) = C₀ + C(1 − e^{−h/a}) has three parameters: nugget C₀ (variance at zero distance due to measurement error), sill C (total variance reached at large distances), and range a (scale of spatial autocorrelation).
What is ordinary kriging?
Ordinary kriging estimates the unknown value at a point as a weighted sum of nearby samples, with weights summing to 1 (unbiasedness constraint), using the variogram to minimise the estimation variance. It assumes a constant but unknown mean over the search neighbourhood.
How does kriging differ from IDW interpolation?
Inverse Distance Weighting (IDW) assigns weights purely by distance (w ∝ 1/d^p). Kriging uses the variogram structure to determine statistically optimal weights, accounting for data clustering and providing error estimates (kriging variance).
What is the nugget effect?
The nugget C₀ is the y-intercept of the variogram, representing variability at very short distances. It arises from measurement error or micro-scale variation at scales finer than the sampling interval. A large nugget indicates noisy data.
What is the range of a variogram?
The range (a) is the distance at which the variogram levels off at the sill. Points closer than the range show positive spatial autocorrelation; beyond the range, values are essentially spatially independent.
What is universal kriging?
Universal kriging extends ordinary kriging by modelling a non-stationary trend in the mean (e.g., a polynomial drift). It separates the large-scale trend from the stationary residuals, then kriging the residuals to reconstruct the full surface.
What does kriging variance represent?
Kriging variance (σ²k) is the expected squared error of the kriging estimate. Importantly, it depends on the variogram model and the configuration of sample points—not on the data values themselves—making it a purely geometric measure of uncertainty.
What are typical applications of spatial interpolation in GIS?
Spatial interpolation is used in hydrology (rainfall mapping), environmental monitoring (pollution surfaces), mining (ore grade estimation), agriculture (soil property mapping), and meteorology (temperature and pressure field reconstruction).