Skip to main content
QUICK REVIEW

[Paper Review] Scalable GWR: A linear-time algorithm for large-scale geographically weighted regression with polynomial kernels

Daisuke Murakami, Narumasa Tsutsumida|arXiv (Cornell University)|May 1, 2019
Spatial and Panel Data AnalysisEconomics, Econometrics and Finance54 references9 citations
TL;DR

This paper proposes Scalable GWR (ScaGWR), a linear-time algorithm for large-scale geographically weighted regression using polynomial kernels. By pre-compressing data matrices before leave-one-out cross-validation, ScaGWR achieves linear computational growth with sample size, enabling efficient calibration on datasets with up to one million observations without parallelization, while producing a more stable empirical Bayesian estimator than conventional GWR.

ABSTRACT

Although a number of studies have developed fast geographically weighted regression (GWR) algorithms for large samples, none of them has achieved linear-time estimation, which is considered a requisite for big data analysis in machine learning, geostatistics, and related domains. Against this backdrop, this study proposes a scalable GWR (ScaGWR) for large datasets. The key improvement is the calibration of the model through a pre-compression of the matrices and vectors whose size depends on the sample size, prior to the leave-one-out cross-validation, which is the heaviest computational step in conventional GWR. This pre-compression allows us to run the proposed GWR extension so that its computation time increases linearly with the sample size. With this improvement, the ScaGWR can be calibrated with one million observations without parallelization. Moreover, the ScaGWR estimator can be regarded as an empirical Bayesian estimator that is more stable than the conventional GWR estimator. We compare the ScaGWR with the conventional GWR in terms of estimation accuracy and computational efficiency using a Monte Carlo simulation. Then, we apply these methods to a US income analysis. The code for ScaGWR is available in the R package scgwr. The code is embedded into C++ code and implemented in another R package, GWmodel.

Motivation & Objective

  • To address the lack of linear-time geographically weighted regression (GWR) algorithms for big data in machine learning and geostatistics.
  • To reduce the computational burden of leave-one-out cross-validation, the most expensive step in conventional GWR.
  • To enable scalable GWR estimation on large datasets—up to one million observations—without requiring parallelization.
  • To improve estimator stability by formulating ScaGWR as an empirical Bayesian estimator.
  • To provide a practical, efficient, and scalable solution through integration into the R package scgwr.

Proposed method

  • Pre-compressing the data matrix and weight vectors prior to leave-one-out cross-validation to reduce computational load.
  • Using polynomial kernels to model spatially varying relationships efficiently.
  • Applying matrix approximation techniques to compress the design matrix and response vector, reducing their dependence on sample size.
  • Formulating the ScaGWR estimator as an empirical Bayes estimator to enhance stability over conventional GWR.
  • Implementing the algorithm in C++ and embedding it in the R package scgwr for high-performance computing.
  • Leveraging the structure of polynomial kernels to achieve linear-time complexity in sample size.

Experimental results

Research questions

  • RQ1Can geographically weighted regression be scaled to large datasets with linear-time complexity in sample size?
  • RQ2How can the computational bottleneck of leave-one-out cross-validation in GWR be mitigated for big data?
  • RQ3Does pre-compression of data matrices and vectors improve both speed and stability of GWR estimation?
  • RQ4Can ScaGWR maintain high estimation accuracy while achieving linear-time performance on datasets with up to one million observations?
  • RQ5Is the ScaGWR estimator more stable than conventional GWR due to its empirical Bayesian formulation?

Key findings

  • ScaGWR achieves linear-time computation with respect to sample size, enabling efficient estimation on datasets with up to one million observations without parallelization.
  • The pre-compression of data matrices and vectors reduces the computational cost of leave-one-out cross-validation, which is the primary bottleneck in conventional GWR.
  • ScaGWR produces a more stable estimator than conventional GWR by virtue of its empirical Bayesian formulation.
  • Monte Carlo simulations show that ScaGWR maintains high estimation accuracy comparable to conventional GWR while being significantly faster.
  • The method was successfully applied to a US income analysis, demonstrating scalability and practical utility on real-world large-scale spatial data.
  • The R package scgwr, which includes the C++-optimized ScaGWR implementation, is publicly available for reproducible research and integration into spatial analysis workflows.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.