Case Study: Moran's I
In the previous section the value was introduced and then largely ignored. , or the spatial autoregressive term is a measure of the level of spatial autocorrelation that ranges from -1 to 1. Below is an example of lattice data (a regular grid of polygons) that would be perfectly negatively spatially autocorrelated (so ).

And here is another example with varying degrees of spatial autocorrelation:

The Moran's I statistics is a method for estimating , the level of spatial autocorrelation. Formally, Moran's I is formulated as:
,
where is the total number of spatial units indexed by and , is some variable of interest associated with each and is the mean of the variable, and is the now familiar spatial weights object.
One question in the assignment this week will ask you to compute a Moran's I score for a toy data set.