If is stationary, then has exactly the same increments and semivariogram, but is generally nonconstant. Thus existence of a stationary covariance model for a semivariogram does not imply stationarity of every process with that semivariogram. Adding an independent random constant also leaves the semivariogram unchanged while changing the covariogram.
Covariogram 2026-10-05
The covariogram is the displacement-dependent covariance of a second-order stationary field. It is an even positive-definite kernel. A semivariogram determines differences , but not an arbitrary constant covariance component.
Empirical semivariogram 2026-10-05
For a distance bin , the empirical semivariogram is . A nonconstant drift adds half its squared pairwise differences to the expected raw semivariogram. Residual semivariograms estimate spatial dependence after adjusting for the drift.
Geostatistics Created 2026-10-05 Updated 2026-10-06
Geostatistics models spatial dependence for estimation and prediction. A mean or drift describes systematic variation, while a covariogram or semivariogram describes residual dependence. Kriging combines the two for spatial prediction.
An intrinsically stationary random field has constant mean and finite increment variances depending only on displacement. Its semivariogram is . Second-order stationarity implies this property, but the converse can fail: subtracting the value at a fixed origin from a stationary field preserves increments and makes marginal variance vary with location.
Kriging Created 2026-10-05 Updated 2026-10-18
Kriging predicts an unobserved value of a spatial random field by combining observations according to their covariances. Nearest-neighbor interpolation uses the closest sample; kriging also asks how strongly each sample is related to the target and how much information the samples share with one another. Two nearby, highly correlated samples need not provide twice the information of one. The different forms of kriging depend on whether the mean is known, an unknown constant, or an unknown regression drift.
Write for the observation random vector, for its realized values, and for the prediction target. Assume finite second moments, and define
Here is the observation covariance matrix, assumed to be a positive-definite matrix in the formulas below. A covariance function supplies its entries and the target covariance vector . For a second-order stationary random field, the covariogram depends on displacement, and the semivariogram satisfies . The intrinsically stationary random field formulation permits kriging using a semivariogram even when a stationary covariogram is unavailable; the finite covariance formulation below is a convenient important case.
For a linear combination predicting with zero bias, the error variance equals its mean squared error:
Ordinary kriging and universal kriging minimize this quadratic form subject to their mean constraints. Their optimality is among the specified linear predictors with zero bias under the chosen statistical model; covariance information alone does not establish optimality among arbitrary nonlinear predictors. The Gaussian random field interpretation supplies additional conclusions in simple kriging.
The reported error variance assumes a chosen covariance function, its statistical parameters, observation locations, and a mean structure. It omits uncertainty in fitted covariance parameters and does not validate the trend. A repeated-sampling mean squared error need not equal the error variance conditional on each realized data vector.[ref]
In 1963, Georges Matheron presented kriging for estimating average ore grades in mining panels from weighted samples taken inside and outside a panel. This setting in geostatistics explains why prediction targets can be averages over regions as well as values at points.[ref]
Nugget effect 2026-10-05
The nugget is the discontinuity of a distance semivariogram at zero. Independent location-specific noise of variance contributes covariance at zero displacement and zero covariance at nonzero displacement, so its semivariogram is .
Ordinary kriging Created 2026-10-05 Updated 2026-10-18
Ordinary kriging assumes for an unknown constant . A predictor has zero bias for every precisely when , where is the all-ones vector. Ordinary kriging minimizes the error variance subject to this constraint, giving the best linear unbiased predictor. Its explicit system is
The sign of the last term follows from the displayed convention . To derive the system, differentiate . To prove the minimum, let solve it and let be another feasible choice. Then , so
A positive-definite matrix makes equality possible only for . This argument uses second moments, not a normal distribution assumption. Ordinary kriging is the special case of universal kriging with and .
For an original one-dimensional teaching example, observe at , and predict at . Choose unit marginal variance, exact observations without measurement noise, an unknown constant mean, and the exponential covariance function
The exponential covariance function corresponds to a stationary Ornstein-Uhlenbeck process, so it gives a valid covariance model. Its semivariogram is . The resulting matrix and vector are
Solving the displayed system gives
These values can be checked directly: the weights sum to one and . Substitution into gives . Nearest-neighbor interpolation must choose between the two equally close samples at one and three, returning either three or two; their error variances under this model are both . Thus the benefit is quantified under the chosen model, without knowing the unobserved target value.
Figure 1.
Ordinary kriging combines three samples and reports uncertainty under a fixed exponential covariance model
. Details.
The upper panel applies the same ordinary kriging calculation at each target location. The lower panel shows the square root of its error variance, in the units of the observations. It is zero at the exact observation locations and rises between and beyond them. No confidence interval is inferred from a variance alone; a probability distribution assumption is needed to attach a coverage level.
The weights are not required to be positive. Keep the same observations and target, but replace the covariogram by the smoother Gaussian kernel . Then
The negative coefficient compensates for dependence between samples; the constraint eliminating bias still holds. Kriging is not generally a convex combination, and its prediction need not stay between the observed values. A smaller model-based error variance does not establish that one covariance function is better supported by these three observations.
Figure 2.
Changing the covariance model changes the ordinary kriging weights and can make a weight negative
. Details.
There is a literal domain error in the printed formula. A semivariogram indexed by a signed displacement must satisfy , since reversing the two observations leaves the squared increment unchanged. For positive or , the displayed positive-lag value is nonzero whereas the displayed negative-lag value is zero. Thus the claim on all of is false as written.
Interpret the argument as a nonnegative distance, or use the even extension of the Gaussian semivariogram. For and , the intended model is
It admits the covariogram
The Gaussian kernel is a positive-definite kernel, as can be seen from the Fourier transform of a Gaussian: in one dimension
and the nonnegative spectral density makes every finite covariance quadratic form nonnegative. In higher dimensions use the product Gaussian density. Adding independent Gaussian white noise of variance adds the diagonal nugget covariance. Thus a zero-mean stationary Gaussian random field exists with this covariance, and gives the corrected semivariogram.
For nonzero structured variance, the nugget effect is the right limit at zero, the sill of a semivariogram is , and the range of a semivariogram is infinite if defined as the distance at which the sill is exactly reached. A 95-percent practical range solves :
The scale is sometimes called the range parameter; it is neither the exact range nor the 95-percent practical range. If , there is no nontrivial structured range.
The fact that a semivariogram does not determine stationarity is a further distinction: a semivariogram specifies increment variation, not a unique process or absolute covariance. Adding an independent random constant adds a constant to without changing . More strongly, subtracting from a stationary field preserves its semivariogram but generally makes its variance depend on . The corrected statement is that this semivariogram admits a second-order stationary model, with the displayed covariance using the usual convention at large distance; it does not force every compatible process to be stationary.
The first binned empirical semivariogram rises strongly through the displayed distances, approximately quadratically, with no visible sill. The spatial data plot shows higher depth at larger . A stationary residual covariance should not be asked to explain that deterministic drift.
For a model with stationary zero-mean residual field, each raw squared difference has expectation
With linear drift , the added term is . Its average within distance bins can grow with separation, producing the shape seen in the first plot. The empirical semivariogram uses half the average squared difference over the pairs in each bin, so removing only a common intercept does not remove this drift contribution.
The formula depth ~ y estimates and removes a linear drift before computing a residual empirical semivariogram. The second graph levels off near with a fitted zero nugget and a finite scale, making the Gaussian residual covariance a plausible working model. Estimate the drift and fit spatial dependence to residuals rather than the raw depth differences. Estimated residuals are not the true errors, so their semivariogram has estimation effects; sparse long-distance bins are also noisy. These graphs support the model but do not establish stationarity or isotropy.
The subpart refers to svgm and svgm2, while the code calls the objects smvg and smvg2. Also the printed code omits the line that fits gauss.model2 before plotting or using it. The supplied output must be interpreted as the result of that missing residual-variogram fit, rather than as an executable complete script.
The universal kriging model has a linear drift in and a zero-mean Gaussian residual field:
The Gau range parameter in this software is , since its semivariogram uses . The output gives , , and , hence . The exact Gaussian range is infinite; the 95-percent practical range is approximately in the coordinate distance units.
The BLUE=TRUE option asks for the best linear unbiased estimator of the drift, rather than the full field kriging prediction. Thus the two printed fitted trends give at and at . Therefore
There is no coefficient in the drift. The reported variances and are the variances of the corresponding estimated trend values, not full-field prediction variances. They do not determine the slope variance without its covariance with the intercept. The interpolated map can still vary with through the correlated residual prediction, even though the fitted deterministic drift depends only on .
Let have rows and let be the spatial covariance matrix with . Conditional on chosen covariance parameters, the best linear unbiased estimator of the drift coefficients is the generalized least squares estimator
The printed procedure first estimates the linear drift from depth ~ y, constructs a binned residual empirical semivariogram, fits a Gaussian semivariogram to it, and then uses the fitted covariance in generalized least squares trend estimation and universal kriging. The missing fit could be supplied as
gauss.model2 <- fit.variogram(smvg2, vgm(0.5, "Gau", 1, 0))
where those arguments are initial values, not the reported final estimates. Such semivariogram fitting typically minimizes a weighted sum of squared discrepancies between binned empirical values and model values; it is not automatically a joint Gaussian likelihood maximization. One can iterate: form residuals using the current drift, refit the covariance model, recompute the generalized least squares drift, and repeat until changes are small. The displayed commands themselves show a single sequence, not evidence that such iteration occurred.
A likelihood-based alternative estimates the two blocks coherently from
Substitute to obtain a profile log-likelihood, maximize over and with a positive-definite matrix , and recover the drift coefficients from the optimizing covariance. Restricted maximum likelihood adds the design determinant term and uses in place of in the normalizing term, up to a fixed-design constant. It can reduce bias from estimating the drift before the covariance. A zero fitted nugget is a legitimate boundary estimate, not proof that measurement error is absent. Estimate drift using covariance-weighted regression, and spatial dependence from drift-adjusted variation, with the two stages or likelihood explicitly distinguished.
Range of a semivariogram 2026-10-05
The exact range is a separation beyond which the semivariogram reaches its sill. A Gaussian semivariogram with nonzero structured variance approaches its sill asymptotically and therefore has infinite exact range. Software range parameters may instead specify a scale.
Semivariogram 2026-10-05
For an intrinsically stationary random field, the semivariogram is . It is even and vanishes at zero. With constant mean, a second-order stationary field has . An isotropic model writes it as a function of nonnegative distance.
Sill of a semivariogram 2026-10-05
The sill is the large-distance level of a semivariogram when that limit exists. For covariance tending to zero, the sill is the total marginal variance; a nugget plus a structured component has total sill . A nonzero constant covariance component is invisible to the semivariogram.