3. Point and Polygonal Data
When the data are irregularly distributed in space (either as point processes or polygonal areas), notations and representations have to change. The spatial process is now defined as
; where the index
s also applies to the planar coordinates
(latitude and longitude) of the polygon centers (geometric or political), see
Figure 1c,d. These variables are irregularly distributed in the plane but have a fixed (non-stochastic) nature; moreover, they may influence the level of the process
, according to spatial trends. Thus, the SAR(1) model becomes
where
refers to the unit which is
closest to the
s-th term, and the vector of regressors
may include exogenous covariates.
Unlike the previous section, the adjacency matrix
has an irregular structure, which depends on the rule of contiguity. The most common rule is to put each observation
in relation to its nearest neighbor (NN) term
, according to the Euclidean distance:
. Furthermore, under the unilateral constraint, the north-west (NW) direction may be followed as in the lattice case. However, polygonal data have not a lexicographic order; hence, the unilateral constraint may simply be defined along the north direction. In this setting, the observations
are ordered according to the shortest distance from the northern border, i.e. according to the inverse of the latitude
. Such ordering may be denoted by
or simply
, and each equation of the model (13a) can be written in sequential form, as a time series model
where
is the north NN of
. The property E
as in time series is the basis for unbiased LS estimation and forecasting. However, it does not hold in the simple NN linkage, even when data are ordered along the latitude.
As an illustration of NN matrices, we simulate
N=30 random points with
and consider
q=3 contiguous terms, see Figure f6. Under the north ordering of data, the entries of matrices are concentrated around the null main diagonal diag(
)=
, and with the unilateral constraint the array is lower triangular. In order to obtain non-sparse matrices, LeSage and Pace (2004) ordered data according to the sum
, but just used the simple NN rule. The matrices
in Figure f6 yield SAR(3) models, but if they are combined as
they provide constrained SAR(3,1). The analogous of the lattice model (4a) then becomes
The econometric literature often discusses models with autocorrelated errors, such as , e.g. Kelejian and Prucha (2007). Apart from estimation difficulties, it should be noted that they are encompassed by unconstrained SAR(2); indeed, the combined system involves just 2 spatial lags. In place of , it is better to insert into the model (13b) a lagged term on the exogenous part , that corresponds to in the model with errors. This is the Durbin model (LeSage and Pace, 2009), which is useful when are autocorrelated, i.e. have a non-random pattern.
When the matrix
is lower triangular, the transfer function
is always nonsingular and its inverse admits a convergent power expansion
This expression shows that the process
, in the location
s-th, depends on the values of the inputs
and shocks
in the north locations (
), and with weights
which decline with the distance. To appreciate this diffusion effect, note that when
is strictly lower triangular, then also
is lower triangular but with nonzero entries shifted away from the main diagonal. Hence,
reflects the second-order contiguity (the neighbors of the neighbors), and so forth for
the null matrix. The same feature, however, does
not hold in non-triangular matrices, such as those based on the simple NN.
Figure 6.
Contiguity matrices and planar graphs of N=30 random centroids on the unit square [0,1]. Panels: (a,c) North nearest neighbors (NN); (b,d) Multidirection NN. Matrices: first NN (blue); second NN (red); third NN (green).
Figure 6.
Contiguity matrices and planar graphs of N=30 random centroids on the unit square [0,1]. Panels: (a,c) North nearest neighbors (NN); (b,d) Multidirection NN. Matrices: first NN (blue); second NN (red); third NN (green).
The unilateral model (14) corresponds to a time-series AR with
unequally spaced observations. This feature is more clear in the presence of multiple lagged terms
; the suitable treatment is to weight the observations by the inverse Euclidean distance
. The analog of the constrained model (15), with north NN linkage and with row normalization, is then given by
this also admits a vector representation as (13b) with triangular matrix
, having
q decreasing coefficients per row.
Alternatively, since the inverse distances decay too fast, one can use the exponential weights , with 01. In vector form, one has to define the diagonal matrices where contain the k-th north NN distances of the centroids. These arrays must be multiplied by the k-lag contiguity matrices , then summed as and finally normalized by rows. The resulting model is nonlinear in the parameters and requires iterative algorithms; however, the value of may be selected a-priori in the range [.9, 1), then the estimators compute the suitable value of .
3.1. Estimation Methods
Writing the models (14)-(16) in vector form, as
, with
and
, where
is the average of
q-north NN terms, then the LS estimator of the parameters
is given by
its unbiasedness follows from E
by the sequential structure of the models, in particular E
in the unilateral model.
To see what happens in detail, consider the LS estimator in matrix form
with regressors
, the crucial term is
. From Eq. (13c)
this term vanishes only if the trace (tr) of
is 0, because
Now,
in general holds if
is strictly lower triangular, because
is itself triangular with null diagonal.
As regards the convergence of LS estimator, multiplying Eq. (17) by
, under regularity conditions (stability and existence of second-order moments) one has that
, the covariance matrix of
. Whereas
which is 0 if
is triangular. Finally, under regularity conditions (
positive definite,
and
stationary) one has
where the convergence is in distribution (D), see Yao and Brockwell (2006).
For multilateral SAR models (
non-triangular), the LS is generally biased and inconsistent, and alternative estimators must be sought. The ML method may be suitable if the sample size
N is moderate and the observations have Gaussian distribution. This estimator maximizes the log-likelihood function
which requires
, i.e. the stability condition
(LeSage and Pace, 2009, p.63). This requirement is not necessary in the LS method; moreover, numerical issues may arise in the optimization of Eq. (19), when computing
, with the eigenvalues
of
. This techniques cannot be applied to triangular matrices, because
=0 for all
i.
Another method which is suitable for parameter estimates in multilateral is that of generalized moments (GM, Kelejian and Prucha, 1999); it arises by applying the instrumental variables (IV) method to the LS estimator (17). The first step is the definition of valid IVs: on the basis of the predictor decomposition , they may be given by . This provides the projection matrix and the regressors , which lead to the IV estimator . This solution is also of GM-type, as minimizes the functional , with the empirical moments and . In the following, we check the effectiveness of ML and GM estimators with simulation experiments.
3.2. Forecasting Functions
In forecasting, we have
L out-of-sample units with value
, whose coordinates and regressors
are known for all
. Their locations
may be inside or outside the observed region; in both cases they are placed at the end of the data matrix
. If the data are ordered in a certain direction (e.g. north-south with
), and all
L units are outside the observed region, and in the same direction, then the weight matrix is
nearly block-diagonal:
, where
is overlapped to
for the contiguity of
L units with the in-sample ones. In the other cases, it has a more complex structure, with triangular sub-matrices under the unilateral constraint
In any case, the estimation of parameters
is performed with in-sample data
and the matrix
; the other blocks will be used in forecasting.
The forecasting function of
depends on the SAR representation used for
; Kelejian and Prucha (2007) also considered models with autocorrelated errors
. In the reduced (MA) form (13c), the in-sample (fitted values) and out-of-sample forecasts are jointly computed as
where the contiguity matrix may have
q-entries per row (the spatial lags) and may use non-uniform (IDW) weights. The matrix solution (20) is nearly automatic, but in absence of exogenous variables it provides constant forecasts.
The second predictor comes from the structural (AR) representation (13b); it is not automatic and must be managed sequentially by rows as Eq. (13a)
where
are the
l-th rows of the matrices
. Note that for non-triangular
, Eq. (21) involves missing values in the running vector
. If these values are provided by Eq. (20), then the vector of observations and forecasts at
l-th step becomes
and, at the end
, it will only contain the improved forecasts (21).
LeSage and Pace (2004) and Goulard et al. (2017) also discussed solutions based on the best linear unbiased predictor (BLUP) of Goldberger. This approach arises from the conditional mean and variance of Gaussian random vectors:
where
is a subvector the predictor in Eq. (20) and
come from the partition of the joint covariance matrix of
, given by
The solution (22)-(23) requires a
double matrix inversion: first
and next
; in the presence of large
N, this may introduce approximation errors. To reduce numerical instability, one may partition the simpler array
and exploit the algebric relationship
(see LeSage and Pace, 2008). The latter involves a single matrix inversion
, of a submatrix of lower size
. Finally, the conditional variance
of the BLUP estimator may provide the dispersion of the forecasts (22)
this matrix requires the estimation of the variance
, which can be carried out with the in-sample residuals
of Eqs. (20).
As a final remark, notice that all formulae displayed until now can be extended to unconstrained SAR(
q) models, by replacing the IR matrix with one of order
q-th. For the predictors (20),(21) this yields the following dispersion
where the
k-th lag contiguity matrices
have size
.
3.3. Simulations and Applications
To compare the various estimators, we perform simulation experiments of SAR models (13)-(16) on a random grid of N=150 points, unformly distributed in the unit square: , as in Figure f6c. We generate realizations of the process with independent inputs Uniform and Normal; parameters ; contiguity matrices with q=1,3 lags, with north NN and simple NN links. Subsequently, M=500 replications are fitted with LS, ML, GM estimators and relative biases, relative RMSE and p-values of Normality test were computed for the coefficents and then averaged. Note that relativization (e.g. bias) allows to sum the individual statistics so as to directly compare the various methods.
The results are reported in Table
Section 2.2, where "variable grid" means that at each replication the centroids change and "variable weights" indicates that IDW are used in the matrices
. The Durbin model includes a lagged term on the exogenous part, as
, with coefficients
. The software used for ML and GM estimatess is the Matlab package of LeSage and Pace (2009); it fits the Durbin model only with the ML method. Main conclusions from Table
Section 2.2 are that ML and GM methods do not improve the LS estimates in the case of unidirectional (triangular)
matrices. However, they significantly outperform LS in the multidirectional (e.g. simple NN) case; in particular, the ML method is the best. However, these results are not homogeneous as regards unbiasedness and efficiency of estimates, where the GM estimator may locally have smaller bias.
Forecasting. Unlike estimation, prediction evaluation of SAR methods cannot be based on pre-specified models and contiguity matrices, but it must refer to data generated from autonomous sources. As in the lattice case, we considered the random surfaces (11), sampled at random points
, with
; however, the results are too favourable to unilateral SAR models. We then turn to the real USGS (2007) data in
Figure 4, with
n=340,
m=455; we sample
N=150 cells and withhold for forecasting
L=30 outside, see
Figure 7a. The fitted model is SAR (15) with
q=3 and
, and forecast functions (20)-(22); the unilateral model is estimated with LS and the multilateral one with ML.
As a final application, we consider original point data concerning the measurement of stable isotopes of oxygen (O) and hydrogen (H) in the ground water. Mapping isoscapes is useful for physical monitoring of the hydrological cycle and for archeological and forensic investigations, regarding the path of people movement. We consider the datasets of Gautam et al. (2020), recorded in South-Korea in 2010, with N=130; and Moreiras Reynaga et al. (2021), recorded in Mexico in 2007, with N=234. We estimate SAR model (15) with q=3 for and = latitude, longitude, to forecast about 20% of observations; the results are in Tab. 6 and Fig. 8. They confirm the better performance of unilateral SAR models with the AR algorithm (21), especially when the data have significant autocorrelation (i.e. large ) and marked spatial trends (significant ). The reduction of MAPE staristics in Tab. 6 ranges from -18% in Korea to -38% in Mexico.
Table 6.
Parameter estimates (and T-statistics) and MAPE forecast statistics of the SAR model (15) with q=3 applied to the water isotope data of South Korea H (first block) and Mexico O (second block).
Table 6.
Parameter estimates (and T-statistics) and MAPE forecast statistics of the SAR model (15) with q=3 applied to the water isotope data of South Korea H (first block) and Mexico O (second block).
| Model |
Method |
|
|
|
|
|
|
|
|
| Unilateral |
LS (17) |
123.7 |
0.337 |
-0.557 |
-2.51 |
4.28 |
0.069 |
0.065 |
0.065 |
|
T-stat.,
|
" |
(1.70) |
(4.72) |
(-1.04) |
(-3.37) |
0.478 |
. |
. |
. |
| Multilat. |
ML (19) |
97.9 |
0.622 |
-0.376 |
-1.98 |
3.53 |
0.080 |
0.079 |
0.079 |
|
T-stat.,
|
" |
(1.69) |
(9.46) |
(-0.86) |
(-3.41) |
0.645 |
. |
. |
. |
| Unilateral |
LS (17) |
4.30 |
0.636 |
0.089 |
0.093 |
1.28 |
0.377 |
0.369 |
0.370 |
|
T-stat.,
|
" |
(1.69) |
(8.17) |
(3.19) |
(2.72) |
0.336 |
. |
. |
. |
| Multilat. |
ML (19) |
-0.85 |
0.479 |
0.053 |
0.101 |
1.26 |
0.600 |
0.597 |
0.588 |
|
T-stat.,
|
" |
(-0.36) |
(7.41) |
(1.88) |
(2.89) |
0.351 |
. |
. |
. |
Figure 8.
Water isotopes data and SAR forecasts (22): Red=out-of-sample data, Green= forecasts with triangular; Black=forecasts with multilateral. Panels: a) South-Korea sample locations; b) Latitudinal view of Hydrogen isotope; c) Mexico sample locations; d) Longitudinal view of Oxigen isotope.
Figure 8.
Water isotopes data and SAR forecasts (22): Red=out-of-sample data, Green= forecasts with triangular; Black=forecasts with multilateral. Panels: a) South-Korea sample locations; b) Latitudinal view of Hydrogen isotope; c) Mexico sample locations; d) Longitudinal view of Oxigen isotope.