In geostatistics the spatial correlation is analyzed by the variogram instead of a correlogram or covariogram (Bivand et al. 2008). If the random function Z(s), is intrinsic stationarity, which means it has a constant mean (E(Z(s))=μ), then the variogram is defined as
2γ(h)=E[(Z(si)−Z(si+h))2],where Z(si) is the value of a target variable at some sampled location and Z(si+h)) is the value of the neighbor at distance si+h. In other words, the covariance between values of Z(s) at any two locations depends on only their relative locations or, equivalently, on their spatial separation distance, h, also denoted as spatial lag. The quantity 2γ(s) is known as the variogram and the function γ(h) is called the semivariogram which is simply written as
γ(h)=12E[(Z(si)−Z(si+h))2].Suppose that there are n point observations, this yields n⋅(n−1)/2 pairs for which a semivariance can be calculated (Hengl 2007).
When data locations are irregularly spaced, there is generally little to no replication of lags among the data locations. To obtain quasi-replication of lags, we partition the lag space into lag classes or bins. Then, Nh is the number of lags that fall into the bin hj. The more bins that are used, the smaller they are and the better the lags are approximated by hj, but the fewer the number of observed lags belonging to hj. One popular rule of thumb is to require Nh to be at least 30 and to require the length of hj to be less than half the maximum lag length among data locations (Gelfand at al. 2010).
If we assume isotropy, which is direction independence of semivariance, the variogram can be estimated from Nh sample data pairs z(si),z(si+h) for a number of distances (or distance intervals) ˆhj by
ˆγ(ˆhj)=12NhNh∑i=1(Z(si)−Z(si+h))2,∀h∈ˆhj.This estimate is called the sample variogram or experimental variogram.
Citation
The E-Learning project SOGA-Py was developed at the Department of Earth Sciences by Annette Rudolph, Joachim Krois and Kai Hartmann. You can reach us via mail by soga[at]zedat.fu-berlin.de.
Please cite as follow: Rudolph, A., Krois, J., Hartmann, K. (2023): Statistics and Geodata Analysis using Python (SOGA-Py). Department of Earth Sciences, Freie Universitaet Berlin.