Join count statistics are a method of spatial analysis used to assess the degree of association, in particular the autocorrelation, of categorical variables distributed over a spatial map. They were originally introduced by Australian statistician P. A. P. Moran. Join count statistics have found widespread use in econometrics, remote sensing and ecology. Join count statistics can be computed in a number of software packages including PASSaGE, GeoDA, PySAL and spdep.
Binary data
Given binary data xi∈{0,1} distributed over N spatial sites, where the neighbour relations between regions i and j are encoded in the spatial weight matrix
wij={1i neighbor of j0otherwise the join count statistics are defined as
J=JBB+JBW+JWW Where
JBB=12∑ij,i≠jwijxixj JBW=12∑ij,i≠jwij(xi−xj)2 JWW=12∑ij,i≠jwij(1−xi)(1−xj) J=12∑ij,i≠jwij The B,W subscripts refer to 'black'=1 and 'white'=0 sites. The relation J=JBB+JBW+JWW implies only three of the four numbers are independent. Generally speaking, large values of JBB and JWW relative to JBW imply autocorrelation and relatively large values of JBW imply anti-correlation. To assess the statistical significance of these statistics, the expectation under various null models has been computed. For example, if the null hypothesis is that each sample is chosen at random according to a Bernoulli process with probability
p=number of black cellsN=N1N then Cliff and Ord show that
E(JBB)=12S0p2 var(JBB)=p2(1−p)4([S1(1−p)+S2p]) E(JBW)=S0p(1−p) var(JBW)=p(1−p)4[4S1+S2(1−4p(1−p))] where
S0=∑ijwij S1=12∑ij(wji+wij)2 S2=∑i(∑jwji+∑jwij)2 However in practice an approach based on random permutations is preferred, since it requires fewer assumptions.
Local join count statistic Anselin and Li introduced the idea of the local join count statistic, following Anselin's general idea of a Local Indicator of Spatial Association (LISA). Local Join Count is defined by e.g.
JBBi=xi∑jwijxj with similar definitions for BW and WW. This is equivalent to the Getis–Ord statistics computed with binary data. Some analytic results for the expectation of the local statistics are available based on the hypergeometric distribution but due to the multiple comparisons problem a permutation based approach is again preferred in practice.
Extension to multiple categories
When there are k≥2 categories join count statistics have been generalised
Jrs=12∑ijIr(xi)Is(xj) Where Ir(xi)=δr,xi is an indicator function for the variable xi belonging to the category r. Analytic results are available or a permutation approach can be used to test for significance as in the binary case.
References

