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.
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).
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