- Introduced by
- A. Stewart Fotheringham, Wei Yang, and Wei Kang
- Year
- 2017
- Type
- Local spatial regression
- Family
- GIS / spatial
What does it do?
Multiscale Geographically Weighted Regression (MGWR) is a local spatial regression framework that relaxes the single-bandwidth constraint of standard GWR by allowing each predictor to operate at its own spatial scale.
Each coefficient surface is calibrated with its own bandwidth, enabling the model to distinguish drivers that vary slowly across space from those that vary sharply.
The intuition behind the method
Standard GWR fits a separate regression at every location but forces all predictors to share the same geographic reach (bandwidth). MGWR removes that restriction: each predictor receives its own bandwidth. A predictor with a wide-area influence, such as a macro-economic trend, is assigned a large bandwidth and yields a smooth coefficient surface. A predictor with a purely local effect, such as proximity to a park, is assigned a narrow bandwidth and a more variable surface. Because the bandwidths are estimated from the data rather than fixed in advance, the model can indicate the geographic scale at which each process appears to operate, which a single shared bandwidth cannot do.
History
MGWR is an extension of geographically weighted regression (GWR), whose single shared bandwidth is a simplifying constraint. Fotheringham, Yang, and Kang (2017) proposed MGWR, which estimates a separate optimal bandwidth for each predictor, calibrated with a back-fitting algorithm. Oshan et al. (2019) provided the mgwr Python implementation.
When to use it
Use MGWR when you have georeferenced data with a continuous outcome, expect the relationships between predictors and that outcome to vary across space, and, crucially, when different predictors may operate at different spatial scales. It is well suited to urban analytics, epidemiology, ecology, and regional economics, where some drivers are local (neighbourhood-level) and others are regional. Prefer MGWR over standard GWR when a single shared bandwidth seems implausible. Do not use MGWR when spatial heterogeneity is not expected (OLS or global spatial models suffice), or when local samples are very small. As described on this page, MGWR is for continuous outcomes. Binary or count outcomes require a different generalised local model, which this page does not cover.
Limitations and considerations
- Computationally demanding: the per-predictor bandwidth search and the back-fitting loop cost more than standard GWR, and the cost grows with sample size and the number of predictors.
- Inference on local coefficients is approximate, so claims of significance for individual coefficient surfaces need a dedicated test rather than local statistics alone.
- Like GWR, it is designed for cross-sectional spatial data; temporal variation requires a separate framework.
- Collinear predictors can destabilise local estimates, especially where the bandwidth is narrow and few observations are nearby.
- The model assumes a local linear relationship at each location; if the true relationship is strongly nonlinear, the local estimates may be misleading.
- Adequate observations near each location are required, and residual spatial autocorrelation and multicollinearity should be checked on the fitted model. This page does not cover those diagnostics in detail.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Lets each predictor operate at its own spatial scale, estimated from the data, instead of the single bandwidth imposed by standard GWR.
- Produces local coefficient surfaces that show where each predictor's effect is strong, weak, or changes sign.
- Each predictor's bandwidth gives a measure of the geographic scale of its process; a very large bandwidth indicates a relationship that is close to spatially constant.
- In the simulated and empirical comparisons reported by Fotheringham et al. (2017), MGWR reproduced parameter surfaces with different levels of heterogeneity better than GWR and gave information on the scale of each process.
- A Python implementation (mgwr) is described by Oshan et al. (2019), which also introduces inference and diagnostics for multi-scale local models.
Applications
- Urban housing-price modelling, where structural attributes and neighbourhood amenities operate at different spatial scales.
- Public health analysis of disease determinants that vary from neighbourhood-level exposures to regional socio-economic gradients.
- Ecological modelling of species-environment relationships across landscapes with heterogeneous processes.
- Regional economics research decomposing agglomeration effects that span cities from local labour-market effects.
- Land-use and transportation planning, identifying where transit accessibility or zoning influences development intensity.
- Crime analysis distinguishing block-level opportunity factors from city-wide socio-demographic drivers.
How it works
How it works
At each observation location (u_i, v_i), a weighted local linear regression is estimated. The intercept and each slope coefficient β_k may vary across locations, and each coefficient is estimated using kernel weights built from its own bandwidth b_k. The output is a surface of estimates for each term rather than a single global value.
Formula
y_i = \beta_0(u_i,v_i) + \sum_{k=1}^{p} \beta_k(u_i,v_i)\,x_{ik} + \varepsilon_iEach predictor k receives its own bandwidth b_k, chosen by optimising a corrected Akaike Information Criterion (AICc). This bandwidth vector replaces the single shared bandwidth of standard GWR and is what distinguishes MGWR from GWR. The bandwidth estimated for each predictor indicates the spatial scale at which that process operates (Fotheringham et al., 2017).
The Gaussian distance-decay kernel in the formula converts a bandwidth into observation weights w_ij. Weights fall off with distance d_ij at a rate set by the bandwidth: a larger bandwidth gives a shallower decay, so that predictor borrows information from more distant observations. The formula shown applies to a fixed distance bandwidth. This page does not give the kernel used when the bandwidth is defined as a number of neighbours (adaptive bandwidth), so check the software documentation for that case.
Formula
w_{ij}(b_k) = \exp\!\left(-\frac{d_{ij}^2}{b_k^2}\right)Calibration and bandwidth vector selection use a back-fitting algorithm (Fotheringham et al., 2017). It updates the coefficient surfaces in turn and iterates until the estimates stop changing. This step is the main computational cost of the method, and the stability of the solution should be checked rather than assumed.
Inference on the local coefficients is approximate. The mgwr implementation provides a Monte Carlo test that assesses whether the spatial variability of a coefficient surface exceeds what would be expected by chance (Oshan et al., 2019). Local t-values are approximate and should not be read against standard thresholds alone.
Common pitfalls
- Treating a large bandwidth for a predictor as evidence of no spatial heterogeneity without formal testing; use the Monte Carlo significance test for each surface.
- Ignoring multicollinearity diagnostics: local collinearity can be more severe than global collinearity and is not captured by a single global VIF.
- Using MGWR with small samples: local estimates based on few nearby observations are unstable, so check local sample counts and the stability of the coefficient surfaces.
- Confusing the bandwidth unit (number of neighbours vs. distance) when interpreting the scale of each coefficient surface.
- Reading local t-statistics as if they followed standard reference distributions, since they are only approximate and inflate apparent significance when used this way.
Frequently asked questions
How does MGWR differ from standard GWR?
Standard GWR calibrates one bandwidth shared by all predictors, implying that every relationship varies at the same geographic scale. MGWR estimates a separate, optimised bandwidth for each predictor, so some relationships can be nearly global (large bandwidth, smooth surface) while others are highly local (narrow bandwidth, rapidly varying surface).
What does a large bandwidth for a predictor tell me?
A large bandwidth means the model needs to borrow information from many distant observations to estimate that predictor's coefficient, which indicates the relationship is spatially stationary or near-global. In the limit, an infinitely large bandwidth produces the same coefficient estimate as OLS for that predictor.
How do I test whether a coefficient surface shows genuine spatial variation?
Use the Monte Carlo significance test provided in the mgwr library (Oshan et al., 2019). It assesses whether the observed variability in a coefficient surface exceeds what would be expected by chance. Local t-values alone are approximate and should not be judged against 1.96 as if they were exact.
Can MGWR handle panel or longitudinal spatial data?
Standard MGWR is designed for cross-sectional data. Temporal extensions (e.g., GTWR or panel spatial models) exist but are separate frameworks. If your data have repeated observations over time, consider a spatial panel model or Geographically and Temporally Weighted Regression instead.
What sample size does MGWR require?
There is no fixed rule. Local regression becomes unreliable when few observations are available near each location, and the problem is worse with narrow bandwidths. Check the local sample counts and the stability of the coefficient surfaces, and treat results from small samples with caution.
Related methods
Sources
Fotheringham, A. S., Yang, W., & Kang, W. (2017). Multiscale geographically weighted regression (MGWR). Annals of the American Association of Geographers, 107(6), 1247-1265.
Open DOI referenceOshan, T. M., Li, Z., Kang, W., Wolf, L. J., & Fotheringham, A. S. (2019). mgwr: A Python implementation of multiscale geographically weighted regression for investigating process spatial heterogeneity and scale. ISPRS International Journal of Geo-Information, 8(6), 269.
Open DOI reference