Available with Geostatistical Analyst license.

The semivariogram and covariance functions are theoretical quantities that you cannot observe, so you estimate them from your data using what are called the empirical semivariogram and empirical covariance functions. Often, you can gain insight into the quantities by looking at the way they are estimated. Suppose you take all pairs of data that are a similar distance and direction from each other.

For all the pairs of locations **s**_{i} and **s*** _{j}* that are a similar distance and direction from each other, compute

`average[(z(s`_{i}) - z(s_{j}))^{2}]

where z(**s**_{i}) is the measured value at location **s**_{i}.

If all the pairs of locations **s**_{i} and **s**_{j} are close to each other,
it's expected that z(**s**_{i}) and z(**s**_{j}) will be similar in value, so when you take the differences and square them,
the average should be small. As **s**_{i} and **s**_{j} get farther apart, it's expected that their values will become more dissimilar,
so when you take their differences and square them, the average will get larger.

In the covariance function, for all the pairs of locations **s**_{i} and **s**_{j} that are a similar distance and direction from each other, the software computes

average [(Z(**s**_{i})-)(Z(**s**_{ j})-)],

where *z*(**s**_{i}) is the measured value at location **s**_{i} and
is the mean of all of the data. Now, if all the pairs **s**_{i} and **s**_{j} are close to each other, it's expected either that both z(**s**_{i}) and z(**s**_{j})
will be above the mean or both will be below the mean. Either way, their product is positive, so when you average all of the products, you expect a positive value. If **s**_{i} and **s**_{j} are far apart, it's expected that about half the time the products will be negative and half the time they will be positive, so you expect their average to be near zero.