# Variogram

__: Spatial statistics function__

**Short description**In spatial statistics the theoretical **variogram**, denoted [math]\displaystyle{ 2\gamma(\mathbf{s}_1,\mathbf{s}_2) }[/math], is a function describing the degree of spatial dependence of a spatial random field or stochastic process [math]\displaystyle{ Z(\mathbf{s}) }[/math]. The **semivariogram** [math]\displaystyle{ \gamma(\mathbf{s}_1,\mathbf{s}_2) }[/math] is half the variogram.

In the case of a concrete example from the field of gold mining, a variogram will give a measure of how much two samples taken from the mining area will vary in gold percentage depending on the distance between those samples. Samples taken far apart will vary more than samples taken close to each other.

## Definition

The **semivariogram** [math]\displaystyle{ \gamma(h) }[/math] was first defined by Matheron (1963) as half the average squared difference between the values at points ([math]\displaystyle{ \mathbf{s}_1 }[/math] and [math]\displaystyle{ \mathbf{s}_2 }[/math]) separated at distance [math]\displaystyle{ h }[/math].^{[1]}^{[2]} Formally

- [math]\displaystyle{ \gamma(h)=\frac{1}{2V}\iiint_V \left[f(M+h) - f(M) \right]^2dV, }[/math]

where [math]\displaystyle{ M }[/math] is a point in the geometric field [math]\displaystyle{ V }[/math], and [math]\displaystyle{ f(M) }[/math] is the value at that point. The triple integral is over 3 dimensions. [math]\displaystyle{ h }[/math] is the separation distance (e.g., in meters or km) of interest. For example, the value [math]\displaystyle{ f(M) }[/math] could represent the iron content in soil, at some location [math]\displaystyle{ M }[/math] (with geographic coordinates of latitude, longitude, and elevation) over some region [math]\displaystyle{ V }[/math] with element of volume [math]\displaystyle{ dV }[/math]. To obtain the semivariogram for a given [math]\displaystyle{ \gamma(h) }[/math], all pairs of points at that exact distance would be sampled. In practice it is impossible to sample everywhere, so the empirical variogram is used instead.

The variogram is twice the semivariogram and can be defined, equivalently, as the variance of the difference between field values at two locations ([math]\displaystyle{ \mathbf{s}_1 }[/math] and [math]\displaystyle{ \mathbf{s}_2 }[/math], note change of notation from [math]\displaystyle{ M }[/math] to [math]\displaystyle{ \mathbf{s} }[/math] and [math]\displaystyle{ f }[/math] to [math]\displaystyle{ Z }[/math]) across realizations of the field (Cressie 1993):

- [math]\displaystyle{ 2\gamma(\mathbf{s}_1,\mathbf{s}_2)=\text{var}\left(Z(\mathbf{s}_1) - Z(\mathbf{s}_2)\right) = E\left[((Z(\mathbf{s}_1)-\mu(\mathbf{s}_1))-(Z(\mathbf{s}_2) - \mu(\mathbf{s}_2)))^2\right]. }[/math]

If the spatial random field has constant mean [math]\displaystyle{ \mu }[/math], this is equivalent to the expectation for the squared increment of the values between locations [math]\displaystyle{ \mathbf{s}_1 }[/math] and [math]\displaystyle{ s_2 }[/math] (Wackernagel 2003) (where [math]\displaystyle{ \mathbf{s}_1 }[/math] and [math]\displaystyle{ \mathbf{s}_2 }[/math] are points in space and possibly time):

- [math]\displaystyle{ 2\gamma(\mathbf{s}_1,\mathbf{s}_2)=E\left[\left(Z(\mathbf{s}_1)-Z(\mathbf{s}_2)\right)^2\right] . }[/math]

In the case of a stationary process, the variogram and semivariogram can be represented as a function [math]\displaystyle{ \gamma_s(h)=\gamma(0,0+h) }[/math] of the difference [math]\displaystyle{ h=\mathbf{s}_2-\mathbf{s}_1 }[/math] between locations only, by the following relation (Cressie 1993):

- [math]\displaystyle{ \gamma(\mathbf{s}_1,\mathbf{s}_2)=\gamma_s(\mathbf{s}_2-\mathbf{s}_1). }[/math]

If the process is furthermore isotropic, then the variogram and semivariogram can be represented by a function [math]\displaystyle{ \gamma_i(h):=\gamma_s(h e_1) }[/math] of the distance [math]\displaystyle{ h=\|\mathbf{s}_2-\mathbf{s}_1\| }[/math] only (Cressie 1993):

- [math]\displaystyle{ \gamma(\mathbf{s}_1,\mathbf{s}_2)=\gamma_i(h). }[/math]

The indexes [math]\displaystyle{ i }[/math] or [math]\displaystyle{ s }[/math] are typically not written. The terms are used for all three forms of the function. Moreover, the term "variogram" is sometimes used to denote the semivariogram, and the symbol [math]\displaystyle{ \gamma }[/math] is sometimes used for the variogram, which brings some confusion.^{[3]}

## Properties

According to (Cressie 1993, Chiles and Delfiner 1999, Wackernagel 2003) the theoretical variogram has the following properties:

- The semivariogram is nonnegative [math]\displaystyle{ \gamma(\mathbf{s}_1,\mathbf{s}_2)\geq 0 }[/math], since it is the expectation of a square.
- The semivariogram [math]\displaystyle{ \gamma(\mathbf{s}_1,\mathbf{s}_1)=\gamma_i(0)=E\left((Z(\mathbf{s}_1)-Z(\mathbf{s}_1))^2\right)=0 }[/math] at distance 0 is always 0, since [math]\displaystyle{ Z(\mathbf{s}_1)-Z(\mathbf{s}_1)=0 }[/math].
- A function is a semivariogram if and only if it is a conditionally negative definite function, i.e. for all weights [math]\displaystyle{ w_1,\ldots,w_N }[/math] subject to [math]\displaystyle{ \sum_{i=1}^N w_i=0 }[/math] and locations [math]\displaystyle{ s_1,\ldots,s_N }[/math] it holds:

- [math]\displaystyle{ \sum_{i=1}^N\sum_{j=1}^N w_{i}\gamma(\mathbf{s}_i,\mathbf{s}_j)w_j \leq 0 }[/math]

- which corresponds to the fact that the variance [math]\displaystyle{ var(X) }[/math] of [math]\displaystyle{ X=\sum_{i=1}^N w_i Z(x_i) }[/math] is given by the negative of this double sum and must be nonnegative.
^{[disputed – discuss]}

- If the covariance function of a stationary process exists it is related to variogram by
[math]\displaystyle{ 2\gamma(\mathbf{s}_1,\mathbf{s}_2)=C(\mathbf{s}_1,\mathbf{s}_1)+C(\mathbf{s}_2,\mathbf{s}_2)-2C(\mathbf{s}_1,\mathbf{s}_2) }[/math]

- If a stationary random field has no spatial dependence (i.e. [math]\displaystyle{ C(h)=0 }[/math] if [math]\displaystyle{ h\not= 0 }[/math]), the semivariogram is the constant [math]\displaystyle{ var(Z(\mathbf{s})) }[/math] everywhere except at the origin, where it is zero.
- [math]\displaystyle{ \gamma(\mathbf{s}_1,\mathbf{s}_2)=E\left[|Z(\mathbf{s}_1)-Z(\mathbf{s}_2)|^2\right]=\gamma(\mathbf{s}_2,\mathbf{s}_1) }[/math] is a symmetric function.
- Consequently, [math]\displaystyle{ \gamma_s(h)=\gamma_s(-h) }[/math] is an even function.
- If the random field is stationary and ergodic, the [math]\displaystyle{ \lim_{h\to \infty} \gamma_s(h) = var(Z(\mathbf{s})) }[/math] corresponds to the variance of the field. The limit of the semivariogram is also called its
*sill*. - As a consequence the semivariogram might be non continuous only at the origin. The height of the jump at the origin is sometimes referred to as
*nugget*or nugget effect.

### Parameters

In summary, the following parameters are often used to describe variograms:

*nugget*[math]\displaystyle{ n }[/math]: The height of the jump of the semivariogram at the discontinuity at the origin.*sill*[math]\displaystyle{ s }[/math]: Limit of the variogram tending to infinity lag distances.*range*[math]\displaystyle{ r }[/math]: The distance in which the difference of the variogram from the sill becomes negligible. In models with a fixed sill, it is the distance at which this is first reached; for models with an asymptotic sill, it is conventionally taken to be the distance when the semivariance first reaches 95% of the sill.

## Empirical variogram

Generally, an **empirical variogram** is needed for measured data, because sample information [math]\displaystyle{ Z }[/math] is not available for every location. The sample information for example could be concentration of iron in soil samples, or pixel intensity on a camera. Each piece of sample information has coordinates [math]\displaystyle{ \mathbf{s}=(x,y) }[/math] for a 2D sample space where [math]\displaystyle{ x }[/math] and [math]\displaystyle{ y }[/math] are geographical coordinates. In the case of the iron in soil, the sample space could be 3 dimensional. If there is temporal variability as well (e.g., phosphorus content in a lake) then [math]\displaystyle{ \mathbf{s} }[/math] could be a 4 dimensional vector [math]\displaystyle{ (x,y,z,t) }[/math]. For the case where dimensions have different units (e.g., distance and time) then a scaling factor [math]\displaystyle{ B }[/math] can be applied to each to obtain a modified Euclidean distance.^{[4]}

Sample observations are denoted [math]\displaystyle{ Z(\mathbf{s}_i)=z_i }[/math]. Samples may be taken at [math]\displaystyle{ k }[/math] total different locations. This would provide as set of samples [math]\displaystyle{ z_1,\ldots,z_k }[/math] at locations [math]\displaystyle{ \mathbf{s}_1,\ldots,\mathbf{s}_k }[/math]. Generally, plots show the semivariogram values as a function of sample point separation [math]\displaystyle{ h }[/math]. In the case of empirical semivariogram, separation distance bins [math]\displaystyle{ h \pm \delta }[/math] are used rather than exact distances, and usually isotropic conditions are assumed (i.e., that [math]\displaystyle{ \gamma }[/math] is only a function of [math]\displaystyle{ h }[/math] and does not depend on other variables such as center position). Then, the empirical semivariogram [math]\displaystyle{ \hat{\gamma}(h \pm \delta) }[/math] can be calculated for each bin:

- [math]\displaystyle{ \hat{\gamma}(h \pm \delta):=\frac{1}{2|N(h \pm \delta)|}\sum_{(i,j)\in N(h \pm \delta)} |z_i-z_j|^2 }[/math]

Or in other words, each pair of points separated by [math]\displaystyle{ h }[/math] (plus or minus some bin width tolerance range [math]\displaystyle{ \delta }[/math]) are found. These form the set of points [math]\displaystyle{ N(h \pm \delta) \equiv \{ (\mathbf{s}_i,\mathbf{s}_j): |\mathbf{s}_i,\mathbf{s}_j| = h \pm \delta; i,j=1,\ldots,N \} }[/math]. The number of these points in this bin is [math]\displaystyle{ |N(h \pm \delta)| }[/math]. Then for each pair of points [math]\displaystyle{ i,j }[/math], the square of the difference in the observation (e.g., soil sample content or pixel intensity) is found ([math]\displaystyle{ |z_i-z_j|^2 }[/math]). These squared differences are added together and normalized by the natural number [math]\displaystyle{ |N(h \pm \delta)| }[/math]. By definition the result is divided by 2 for the semivariogram at this separation.

For computational speed, only the unique pairs of points are needed. For example, for 2 observations pairs [[math]\displaystyle{ (z_a,z_b),(z_c,z_d) }[/math]] taken from locations with separation [math]\displaystyle{ h \pm \delta }[/math] only [[math]\displaystyle{ (z_a,z_b),(z_c,z_d) }[/math]] need to be considered, as the pairs [[math]\displaystyle{ (z_b,z_a),(z_d,z_c) }[/math]] do not provide any additional information.

## Variogram models

The empirical variogram cannot be computed at every lag distance [math]\displaystyle{ h }[/math] and due to variation in the estimation it is not ensured that it is a valid variogram, as defined above. However some Geostatistical methods such as kriging need valid semivariograms. In applied geostatistics the empirical variograms are thus often approximated by model function ensuring validity (Chiles&Delfiner 1999). Some important models are (Chiles&Delfiner 1999, Cressie 1993):

- The exponential variogram model
- [math]\displaystyle{ \gamma(h)=(s-n)(1-\exp(-h/(ra)))+n 1_{(0,\infty)}(h). }[/math]

- The spherical variogram model
- [math]\displaystyle{ \gamma(h)=(s-n)\left(\left(\frac{3h}{2r}-\frac{h^3}{2r^3}\right)1_{(0,r)}(h)+1_{[r,\infty)}(h)\right)+n1_{(0,\infty)}(h). }[/math]

- The Gaussian variogram model
- [math]\displaystyle{ \gamma(h)=(s-n)\left(1-\exp\left(-\frac{h^2}{r^2a}\right)\right) + n1_{(0,\infty)}(h). }[/math]

The parameter [math]\displaystyle{ a }[/math] has different values in different references, due to the ambiguity in the definition of the range. E.g. [math]\displaystyle{ a=1/3 }[/math] is the value used in (Chiles&Delfiner 1999). The [math]\displaystyle{ 1_A(h) }[/math] function is 1 if [math]\displaystyle{ h\in A }[/math] and 0 otherwise.

## Discussion

Three functions are used in geostatistics for describing the spatial or the temporal correlation of observations: these are the correlogram, the covariance and the **semivariogram**. The last is also more simply called **variogram**.

The variogram is the key function in geostatistics as it will be used to fit a model of the temporal/spatial correlation of the observed phenomenon. One is thus making a distinction between the *experimental variogram* that is a visualisation of a possible spatial/temporal correlation and the *variogram model* that is further used to define the weights of the kriging function. Note that the experimental variogram is an empirical estimate of the covariance of a Gaussian process. As such, it may not be positive definite and hence not directly usable in kriging, without constraints or further processing. This explains why only a limited number of variogram models are used: most commonly, the linear, the spherical, the Gaussian and the exponential models.

## Applications

The **empirical variogram** is used in geostatistics as a first estimate of the variogram model needed for spatial interpolation by kriging.

- Empirical variograms for the spatiotemporal variability of column-averaged carbon dioxide was used to determine coincidence criteria for satellite and ground-based measurements.
^{[4]} - Empirical variograms were calculated for the density of a heterogeneous material (Gilsocarbon).
^{[5]} - Empirical variograms are calculated from observations of strong ground motion from earthquakes.
^{[6]}These models are used for seismic risk and loss assessments of spatially-distributed infrastructure.^{[7]}

## Related concepts

The squared term in the variogram, for instance [math]\displaystyle{ (Z(\mathbf{s}_1) - Z(\mathbf{s}_2))^2 }[/math], can be replaced with different powers: A *madogram* is defined with the absolute difference, [math]\displaystyle{ |Z(\mathbf{s}_1) - Z(\mathbf{s}_2)| }[/math], and a *rodogram* is defined with the square root of the absolute difference, [math]\displaystyle{ |Z(\mathbf{s}_1) - Z(\mathbf{s}_2)|^{0.5} }[/math]. Estimators based on these lower powers are said to be more resistant to outliers. They can be generalized as a "variogram of order *α*",

- [math]\displaystyle{ 2\gamma(\mathbf{s}_1,\mathbf{s}_2)=E\left[\left|Z(\mathbf{s}_1)-Z(\mathbf{s}_2)\right|^\alpha\right] }[/math],

in which a variogram is of order 2, a madogram is a variogram of order 1, and a rodogram is a variogram of order 0.5.^{[8]}

When a variogram is used to describe the correlation of different variables it is called *cross-variogram*. Cross-variograms are used in co-kriging.
Should the variable be binary or represent classes of values, one is then talking about *indicator variograms*. Indicator variogram is used in indicator kriging.

## References

- ↑ Matheron, Georges (1963). "Principles of geostatistics".
*Economic Geology***58**(8): 1246–1266. doi:10.2113/gsecongeo.58.8.1246. ISSN 1554-0774. - ↑ Ford, David. "The Empirical Variogram". http://www.faculty.washington.edu/edford/Variogram.pdf.
- ↑ Bachmaier, Martin; Backes, Matthias (2008-02-24). "Variogram or semivariogram? Understanding the variances in a variogram".
*Precision Agriculture*(Springer Science and Business Media LLC)**9**(3): 173–175. doi:10.1007/s11119-008-9056-2. ISSN 1385-2256. - ↑
^{4.0}^{4.1}Nguyen, H.; Osterman, G.; Wunch, D.; O'Dell, C.; Mandrake, L.; Wennberg, P.; Fisher, B.; Castano, R. (2014). "A method for colocating satellite*X*_{CO2}data to ground-based data and its application to ACOS-GOSAT and TCCON".*Atmospheric Measurement Techniques***7**(8): 2631–2644. doi:10.5194/amt-7-2631-2014. ISSN 1867-8548. Bibcode: 2014AMT.....7.2631N. - ↑ Arregui Mena, J.D. (2018). "Characterisation of the spatial variability of material properties of Gilsocarbon and NBG-18 using random fields".
*Journal of Nuclear Materials***511**: 91–108. doi:10.1016/j.jnucmat.2018.09.008. Bibcode: 2018JNuM..511...91A. https://www.researchgate.net/publication/327537624. - ↑ Schiappapietra, Erika; Douglas, John (April 2020). "Modelling the spatial correlation of earthquake ground motion: Insights from the literature, data from the 2016–2017 Central Italy earthquake sequence and ground-motion simulations" (in en).
*Earth-Science Reviews***203**: 103139. doi:10.1016/j.earscirev.2020.103139. Bibcode: 2020ESRv..20303139S. https://strathprints.strath.ac.uk/71570/. - ↑ Sokolov, Vladimir; Wenzel, Friedemann (2011-07-25). "Influence of spatial correlation of strong ground motion on uncertainty in earthquake loss estimation" (in en).
*Earthquake Engineering & Structural Dynamics***40**(9): 993–1009. doi:10.1002/eqe.1074. - ↑ Olea, Ricardo A. (1991).
*Geostatistical Glossary and Multilingual Dictionary*. Oxford University Press. pp. 47, 67, 81. ISBN 9780195066890.

## Further reading

- Cressie, N., 1993, Statistics for spatial data, Wiley Interscience.
- Chiles, J. P., P. Delfiner, 1999, Geostatistics, Modelling Spatial Uncertainty, Wiley-Interscience.
- Wackernagel, H., 2003, Multivariate Geostatistics, Springer.
- Burrough, P. A. and McDonnell, R. A., 1998, Principles of Geographical Information Systems.
- Isobel Clark, 1979, Practical Geostatistics, Applied Science Publishers.
- Clark, I., 1979,
*Practical Geostatistics*, Applied Science Publishers. - David, M., 1978,
*Geostatistical Ore Reserve Estimation*, Elsevier Publishing. - Hald, A., 1952,
*Statistical Theory with Engineering Applications*, John Wiley & Sons, New York. - Journel, A. G. and Huijbregts, Ch. J., 1978
*Mining Geostatistics*, Academic Press. - Glass, H.J., 2003, Method for assessing quality of the variogram, The Journal of The South African Institute of Mining and Metallurgy.

## External links

- AI-GEOSTATS: an educational resource about geostatistics and spatial statistics
- Geostatistics: Lecture by Rudolf Dutter at the Technical University of Vienna

Original source: https://en.wikipedia.org/wiki/Variogram.
Read more |