Lecture 30—Monday, March 26, 2012

Topics

What are spatial data?

Formally spatial data entail recording an attribute’s value, z, along with the attribute’s location, s. We represent this as Z(s), where typically domain. D is called the spatial domain and will usually be a subset of the Cartesian plane. In data analysis there are two basic approaches to dealing with spatially referenced data and they influence what our sample size is.

  1. Treat the spatial dimension as a nuisance. If we take n spatially referenced samples then due to possible spatial correlation among sites our observations are unlikely to be independent. Hence our sample size is less than we hoped for and statistical power is reduced.
  2. Treat the spatial process generating the data as the primary focus of the study. If we take n spatially referenced samples then in terms of the spatial process we are trying to study we have a sample of size 1. Our estimates of the function Z(s) at different locations defines a three-dimensional spatial surface of which our sample is a single realization. What’s random from this viewpoint are the attribute values obtained at given locations, not the locations themselves. The randomness arises from measurement error, temporal changes in the spatial surface, etc., not from where we chose to sample.

In the nuisance point of view spatial correlation reduces our ability to draw valid inferences from our data. In a typical statistical experiment, say a simple linear regression, we manipulate the levels of a variable x of different experimental units while observing the value of a second variable y (that we call the response). But in an observational study, which we carry out because an experiment might be too difficult to perform or too unrealistic, we often use the natural variability in x as a surrogate for experimental manipulation. The natural variability is captured by obtaining observational units from different spatial locations. What does such a study allow us to conclude? Because we didn't randomly assign treatments to we can't legitimately infer that x causes y. Furthermore if x and y are seen to vary together it could be because an unmeasured spatially varying variable is affecting both of them.

Spatial location can serve as a catch-all for all the unmeasured variables in an analysis. Tobler’s law of geography (Tobler 1970) states “Everything is related to everything else, but near things are more related than distant things.” So we expect the spatial dimension to be important in most observational studies.

Types of spatial data

Three distinct categories of spatial data are recognized: geostatistical data, lattice data, and point process data (spatial point patterns).

Geostatistical data

The spatial domain D here is fixed and continuous. With geostatistical data the number of locations at which observations can be made is uncountable. Between any two sample locations si and sj are an infinite (in theory) number of other potential sample points. How we choose to obtain a sample from D has no bearing on whether the data are geostatistical or not. We can lay down a grid and sample at the intersection of grid lines, or we can randomly select points. Furthermore the attribute we measure, Z(s), can be categorical or continuous.

Lattice data

Here the set D is fixed but this time is only countable (and usually finite). Lattice data are sometimes called areal data. Examples of lattice data include the following.

Because lattice data have areal extent there is no way to obtain additional sample points between contiguous lattice units.

Point process data

Unlike geostatistical and lattice data the domain D for point process data is random. With point process data the focus is on the locations at which the process occurs. The set of spatial locations of a plant species, i.e., the places where the plant species is observed to grow, is an example of a point process. Instead of analyzing the Z process (the attributes of the points) we analyze the D process (the locations of the points). Having said that it is possible for the points to have additional attributes yielding what's called a marked point process.

Converting one type of spatial data into another

Geostatistical → point process. Geostatistical data under certain circumstances can be treated as point process data. Suppose we define

dichotomize

Now suppose we record the locations where U(s) = 1. These locations are clearly random and comprise a point process data set.

Geostatistical → lattce. We can choose to aggregate geostatistical data by area and summarize the results over the area thus generating lattice data.

Lattice → geostatistical. Going from lattice to geostatistical data is harder. Typically we have to pretend that the value of Z(s) on a lattice occurs at the center of the lattice units and then treat D as if it were continuous so that intermediate values are possible.

How are spatial data used?

Point process data

  1. With point process data the first question is typically are the points distributed randomly? This amounts to looking at the distances between neighbors. For geostatistical data such a question would be nonsensical because the locations of points are determined by design.
  2. If there is more than one point process present, the next obvious question is are the two processes related to each other in some way?

Geostatistical data

  1. Typically the goal with geostatistical data is to characterize the spatial process that produced the data and to predict values at locations not in the sample.
  2. In regression the spatial process is often used to account for any lingering statistical dependence in the response after the basic regression model has been formulated.

Lattice data

  1. The same objectives hold for lattice data as for geostatistical data except now questions of spatial connectivity and neighborhood structure arise too.

Measuring spatial variation

Non-spatial measures of variation

The variance, denoted variance or to emphasize the identity of the variable in question, is the average squared deviation about the mean.

variance

An equivalent formula is the following.

pairwise variance

In this formula the variance is the average squared differences among all pairs of observations. The multiplier of one half accounts for the fact that the double sum counts each of these squared differences twice. Many spatial statistics use versions of this second variance formula.

The covariance generalizes the variance to the case of two variables measured on each observation. The covariance quantifies the direction and extent to which the two variables co-vary on average.

covariance

To improve interpretability the covariance is often standardized by dividing it by the product of the square root of the variances of each variable. This yields the Pearson correlation coefficient r, which has a range of –1 to 1.

As we'll see these formulas can be extended in various ways with spatial data.

Stationarity and the replication problem

One of the purposes of a spatial analysis is to characterize the nature of the spatial process. This is made difficult by the fact that technically we have no replication of the process. A sample of a spatial process is a sample of size one regardless of how many spatial locations we've measured. Spatial data are like multivariate non-spatial data in which we obtain multiple measurements on the same individual. But spatial data pose a unique problem not shared by non-spatial data.

The standard "solution" is to substitute replication in the data for replication of the data. An assumption that is made in spatial analysis is that the spatial process under study repeats itself over its domain D. Such a spatial process is said to be stationary. For a stationary process the absolute coordinates at which we observe the process are unimportant. All that matters are the orientated distances between the points. If in addition the process is invariant to the direction of the displacement in that only the magnitude of the displacement matters, then the process is said to be isotropic.

In a stationary process if we translate the entire set of coordinates by a specific amount in a specified direction, the entire process remains the same. This is the same assumption we make in time series analysis in order to estimate lag correlations over the entire time series.

Types of stationarity

Strong stationarity

The proper way to view spatial data is as multivariate data. Suppose we observe a spatial process at locations s1, s2, ..., sk. The behavior of the spatial process Z(s) can be completely characterized by its joint probability distribution function.

probability

A very strong form of stationarity is one that requires that the joint probability distribution function be invariant under translation. Let h be any displacement vector. Formally strong stationarity is defined as follows.

strong stationarity

Second-order stationarity

For most applications strong stationarity is too restrictive a requirement. A weaker form of stationarity requires only that the moments of the joint distribution don’t change under translation. This is called second-order stationarity. Formally two conditions are required for second-order stationarity.

If it turns out isotropy, where norm of h is the norm of the vector h, so that the covariance depends on the size of the displacement but not on its direction from s, the spatial process is said to be both second order stationary and isotropic.

Intrinsic stationarity

A technique often used in time series analysis to remove absolute time references and to obtain stationarity is differencing, i.e., constructing the new variable   Z(s) – Z(s+h). This leads to a third definition of stationarity, intrinsic stationarity. Formally a spatial process is intrinsic stationary if it has a constant mean and the variance of the differences of Z at pairs of locations only depends on h, the displacement between the locations. This leads us to the definition of the semivariogram, γ(h).

semivariance

Because it derives from the weakest form of stationarity and is more generally applicable, the semivariogram is the preferred tool for characterizing geostatistical spatial processes.

Although the semivariogram is less intuitive than the covariogram, it turns out the two are related and so it is easy to move from one to the other. If an intrinsic stationary process has the additional property of second-order stationarity, then the covariogram C(h) and semivariogram γ(h) are related as follows.

semivariance

By definition C(0) is just the variance of the spatial process.

Note: the terms semivariogram and variogram are often used interchangeably in the literature. Technically the semivariogram is as defined above, while the variogram is twice this quantity. The reason the distinction is important is that the semivariogram has the nice relationship to the covariogram shown above. Typically when someone speaks of the variogram (particularly in software documentation) they are actually referring to the semivariogram.

Cited Reference

Tobler, W. 1970. A computer movie simulating urban growth in the Detroit region. Economic Geography 46: 234–240.

Course Home Page


Jack Weiss
Phone: (919) 962-5930
E-Mail: jack_weiss@unc.edu
Address: Curriculum for the Environment and Ecology, Box 3275, University of North Carolina, Chapel Hill, 27599
Copyright © 2012
Last Revised--March 28, 2012
URL: https://sakai.unc.edu/access/content/group/2842013b-58f5-4453-aa8d-3e01bacbfc3d/public/Ecol562_Spring2012/docs/lectures/lecture30.htm