Geographically weighted regression (GWR) is a spatial statistical technique that recognizes that traditional ‘global’ regression models may be limited when spatial processes vary with spatial context. GWR captures process spatial heterogeneity by allowing effects to vary over space. To do this, GWR calibrates an ensemble of local linear models at any number of locations using ‘borrowed’ nearby data. This provides a surface of location-specific parameter estimates for each relationship in the model that is allowed to vary spatially, as well as a single bandwidth parameter that provides intuition about the geographic scale of the processes. A recent extension to this framework allows each relationship to vary according to a distinct spatial scale parameter, and is therefore known as multiscale (M)GWR. This paper introduces mgwr, a Python-based implementation of MGWR that explicitly focuses on the multiscale analysis of spatial heterogeneity. It provides novel functionality for inference and exploratory analysis of local spatial processes, new diagnostics unique to multi-scale local models, and drastic improvements to efficiency in estimation routines. We provide two case studies using mgwr, in addition to reviewing core concepts of local models. We present this in a literate programming style, providing an overview of the primary software functionality and demonstrations of suggested usage alongside the discussion of primary concepts and demonstration of the improvements made in mgwr.
Models designed to capture spatially varying processes are now employed extensively in the social and environmental sciences. The main strength of such models is their ability to represent relationships that vary across locations through locally varying parameter estimates. However, local models of spatial processes also provide information on the nature of these spatially varying relationships through the estimation of a ‘bandwidth’ parameter. This paper examines bandwidth at a conceptual, operational and empirical level within the framework of geographically weighted regression, one of the more frequently employed local spatial models. We outline how bandwidth relates to three characteristics of spatial processes: variation, dependence and strength.
11 February 2020 in Annals of the American Association of Geographers
Bandwidth, a key parameter in geographically weighted regression models, is closely related to the spatial scale at which the underlying spatially heterogeneous processes being examined take place. Generally, a single optimal bandwidth (geographically weighted regression) or a set of covariate-specific optimal bandwidths (multiscale geographically weighted regression) is chosen based on some criterion, such as the Akaike information criterion (AIC), and then parameter estimation and inference are conditional on the choice of this bandwidth. In this article, we find that bandwidth selection is subject to uncertainty in both single-scale and multiscale geographically weighted regression models and demonstrate that this uncertainty can be measured and accounted for. Based on simulation studies and an empirical example of obesity rates in Phoenix, we show that bandwidth uncertainties can be quantitatively measured by Akaike weights and confidence intervals for bandwidths can be obtained. Understanding bandwidth uncertainty offers important insights about the scales over which different processes operate, especially when comparing covariate-specific bandwidths. Additionally, unconditional parameter estimates can be computed based on Akaike weights accounts for bandwidth selection uncertainty.
A recent paper in this journal proposed a form of geographically weighted regression (GWR) that is termed parameter-specific distance metric geographically weighted regression (PSDM GWR). The central focus of the PSDM generalization of the GWR framework is that it allows the kernel function that weights nearby data to be specified with a distinct distance metric. As with the recent paper on Multiscale GWR (MGWR), the PSDM framework presents a form of GWR that also allows for parameter-specific bandwidths to be computed. As a result, a secondary focus of the PSDM GWR framework is to reduce the computational overhead associated with searching a massive parameter space to find a set of optimal parameter-specific bandwidths and parameter-specific distance metrics. In this comment, we discuss several concerns with the PSDM GWR framework in terms of model interpretability, complexity, and computational efficiency. We also recommend some best practices when using these models, suggest how to more holistically assess model variations, and set out an agenda to constructively focus future research endeavors.