Inferring the contiguity matrix for spatial autoregressive analysis with\n applications to house price prediction

Somwrita Sarkar, Sanjay ChawlaarXiv 2016 · DOI

Abstract

Inference methods in traditional statistics, machine learning and data mining assume that data is generated from an independent and identically distributed (iid) process. Spatial data exhibits behavior for which the iid assumption must be relaxed. For example, the standard approach in spatial regression is to assume the existence of a contiguity matrix which captures the spatial autoregressive properties of the data. However all spatial methods, till now, have assumed that the contiguity matrix is given apriori or can be estimated by using a spatial similarity function. In this paper we propose a convex optimization formulation to solve the spatial autoregressive regression (SAR) model in which both the contiguity matrix and the non-spatial regression parameters are unknown and inferred from the data. We solve the problem using the alternating direction method of multipliers (ADMM) which provides a solution which is both robust and efficient. While our approach is general we use data from housing markets of Boston and Sydney to both guide the analysis and validate our results. A novel side effect of our approach is the automatic discovery of spatial clusters which translate to submarkets in the housing data sets.

Introduction

In traditional statistics, data points are often assumed to be independent and identically distributed (iid). However, spatial data—such as real estate prices—violates this assumption because a property's value is inherently tied to its neighbors, a principle known as Tobler’s First Law of Geography.

To handle this, researchers use Spatial Autoregressive (SAR) models that rely on a contiguity matrix ($W$). This matrix defines which locations influence one another. Historically, $W$ has been a "black box" manually set by researchers based on simple geography (e.g., physical distance). This approach is flawed as it misses long-range dependencies, such as neighborhoods connected by specific transit lines. This paper introduces a convex optimization framework to infer this matrix $W$ directly from the data alongside standard regression parameters.

Methodology: The ADMM Framework

The authors propose a formulation where both the contiguity matrix $W$ and the regression coefficients $eta$ are unknown. They adapt the SAR model:

$$y = \rho Wy + X\beta + \epsilon$$

To solve this, they frame the search for $W$ as a convex optimization problem. Because there are far more potential connections than data points, they apply $L1$ regularization to enforce sparsity, forcing the model to identify only the most significant spatial relationships. The optimization is performed using the Alternating Direction Method of Multipliers (ADMM), which iteratively updates spatial weights and non-spatial features.

The learned contiguity matrix $W$ and its spectral properties reveal underlying spatial clusters in the data, effectively identifying housing submarkets in the Boston dataset.

A novel side effect of this approach is the ability to perform spectral clustering on the inferred matrix $W$. By analyzing the eigenvalues and eigenvectors, the model automatically discovers hidden spatial clusters or "submarkets" without requiring prior geographic labels.

Experimental Results

The model was validated on two major datasets: the classic Boston Housing Dataset and a modern, large-scale Sydney Housing Dataset (2015).

Comparative price prediction performance for Sydney LGAs (a) and suburbs (b), demonstrating the superior predictive power of the ADMM approach over standard OLS.

In the Boston dataset, the predictive power ($R^2$) increased from 0.79 (OLS) to 0.88 (ADMM). The results were even more pronounced in the Sydney suburbs dataset, where $R^2$ jumped from 0.68 to 0.87. This improvement suggests that the learned $W$ matrix captures omitted variables—such as local school quality or neighborhood amenities—that are not present in the standard feature set.

Key Insights and Conclusion

By learning the contiguity matrix directly from data, the model captures "long-distance" connections between suburbs that share similar socio-economic profiles or transport links. Furthermore, the ADMM approach remains computationally efficient, making it viable for large-scale applications with millions of locations.

While the model relies on the assumption of sparsity in spatial connections, it provides a robust path forward for spatial analysis, offering both improved prediction accuracy and the automated discovery of urban submarket structures.

Summary updated

Abstract

Inference methods in traditional statistics, machine learning and data mining\nassume that data is generated from an independent and identically distributed\n(iid) process. Spatial data exhibits behavior for which the iid assumption must\nbe relaxed. For example, the standard approach in spatial regression is to\nassume the existence of a contiguity matrix which captures the spatial\nautoregressive properties of the data. However all spatial methods, till now,\nhave assumed that the contiguity matrix is given apriori or can be estimated by\nusing a spatial similarity function. In this paper we propose a convex\noptimization formulation to solve the spatial autoregressive regression (SAR)\nmodel in which both the contiguity matrix and the non-spatial regression\nparameters are unknown and inferred from the data. We solve the problem using\nthe alternating direction method of multipliers (ADMM) which provides a\nsolution which is both robust and efficient. While our approach is general we\nuse data from housing markets of Boston and Sydney to both guide the analysis\nand validate our results. A novel side effect of our approach is the automatic\ndiscovery of spatial clusters which translate to submarkets in the housing data\nsets.\n
BibTeX
@misc{sarkar2016inferring,
  author = {Somwrita Sarkar and Sanjay Chawla},
  title = {{Inferring the contiguity matrix for spatial autoregressive analysis with\textbackslash\{\}n applications to house price prediction}},
  year = {2016},
  eprint = {1607.01999},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1607.01999},
}
Figure