Multiscale Geographically Weighted Regression (MGWR)

Statistics
Introduced by
Fotheringham, Yang & Kang
Year
2017
Type
Spatially varying coefficient regression

What does it do?

Multiscale Geographically Weighted Regression (MGWR), introduced by Fotheringham, Yang and Kang in 2017, is a spatial regression model in which each coefficient can vary across space at its own spatial scale.

It extends Geographically Weighted Regression (GWR), which uses one common bandwidth for all coefficients, by giving each predictor a separate bandwidth. As a result, some relationships can operate locally while others remain nearly constant across the study area.

The intuition behind the method

Picture fitting a separate regression at each location, where nearby observations carry more weight than distant ones. Standard GWR forces every coefficient to change at one shared spatial scale. MGWR asks, for each predictor separately, how far around a location its influence should be drawn from. One driver might matter only within a short distance while another behaves similarly everywhere, and MGWR estimates both scales within a single model.

History

Fotheringham, Yang and Kang proposed MGWR in 2017 as a multiscale extension of GWR. Where GWR uses one bandwidth for all coefficients, MGWR estimates a separate bandwidth for each covariate by back-fitting, so each process can operate at its own scale. An open-source Python implementation, mgwr, is described by Oshan and colleagues in 2019.

When to use it

Choose MGWR for cross-sectional data with geographic coordinates, a continuous outcome, and a sample of at least about 80 observations, especially when you suspect that different predictors operate at different spatial scales. It is most useful when a single GWR bandwidth seems too restrictive, for example when some effects are clearly local and others appear broadly stable. Because each coefficient may settle at its own scale, a globally constant coefficient is a valid result rather than a failure. Do not use MGWR when records lack coordinates, when relationships appear uniform across space (a global model such as OLS may suffice), or when the sample is so large that the back-fitting computation becomes impractical. Computation time rises substantially with sample size and the number of predictors, so budget for long runtimes on large datasets.

Limitations and considerations

  • Requires geographic coordinates for every observation, because each weight depends on spatial distance.
  • Computationally heavier than GWR: a separate bandwidth is searched for each coefficient inside a back-fitting loop, so runtime grows substantially with sample size and the number of predictors.
  • The model estimates one bandwidth per coefficient, so the search space grows with the number of predictors, and each local coefficient rests only on the observations weighted near the target location.
  • Local coefficient estimates are point estimates and should not be read as individually tested for significance. Judging whether a coefficient surface genuinely varies in space requires an additional inference procedure. Inspect the local estimates together with the selected bandwidths and a global benchmark such as OLS.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Lets each coefficient follow its own spatial scale, which can yield more accurate estimates than GWR when some effects are local and others global. The Fotheringham et al. simulations with known parameter surfaces report this pattern.
  • The bandwidth selected for each predictor summarises the spatial scale over which that process varies, under the kernel and bandwidth type used, so the bandwidth becomes an interpretable result in its own right.
  • When a relationship does not vary across space, its selected bandwidth tends to be very large, and the coefficient surface then becomes close to constant.

Applications

  • Empirical analysis of the Irish famine data set used by Fotheringham et al. (2017) to compare GWR and MGWR when processes may operate at different scales.
  • Modelling house prices where some drivers (such as local amenities) act over short distances and others (such as regional economic conditions) act broadly.
  • Studying health, social, or environmental outcomes that respond to predictors operating at mixed spatial scales.
  • Exploring how the strength of a relationship changes across a study region and at what distance each effect fades.

How it works

How it works

1

The outcome at location i is a linear function of the predictors, but each coefficient β_j(u_i, v_i) may change with the geographic coordinates (u_i, v_i). A predictor whose coefficient is nearly constant across the map acts globally, while one whose coefficient varies strongly across the map acts locally.

Formula
y_i = \beta_{0}(u_i,v_i) + \sum_{j=1}^{k} \beta_{j}(u_i,v_i)\, x_{ij} + \varepsilon_i
2

Each coefficient surface is estimated by locally weighted least squares, where the weight matrix W_j(b_j) downweights observations far from the target location according to a bandwidth b_j specific to predictor j. The displayed formula is the weighted least-squares step for a single surface and is not a closed-form solution for the full model. In the complete procedure, a back-fitting algorithm cycles through the predictors, re-estimating one surface at a time and selecting each bandwidth separately, and it iterates until the estimates converge. The kernel function and the bandwidth type (fixed distance or adaptive nearest-neighbour count) are settings that should be reported with the results. The units and interpretation of a bandwidth depend on these choices, so bandwidths should be compared only within the same specification.

Formula
\hat{\beta}_{j} = \big(X^{\top} W_j(b_j) X\big)^{-1} X^{\top} W_j(b_j)\, y

Common pitfalls

  • Applying MGWR without geographic coordinates. Without coordinates, use a non-spatial model such as OLS, because GWR also requires coordinates.
  • Over-interpreting local coefficient swings that may reflect sparse data near a location or collinearity among predictors in that neighbourhood.
  • Running MGWR on very large samples without budgeting for the long back-fitting computation.
  • Reading a coefficient whose selected bandwidth is very large as a model failure, rather than as a meaningful global effect.

Frequently asked questions

How is MGWR different from GWR?

GWR uses a single bandwidth, forcing every coefficient to vary at the same spatial scale. MGWR estimates a separate bandwidth for each predictor, so each relationship can act at its own scale, some local and some nearly global.

Do I need geographic coordinates?

Yes. MGWR weights observations by spatial proximity, so each record must carry coordinates. Without them, use a non-spatial model such as OLS, since GWR and MGWR both rely on distance-based weights.

Why is MGWR slow on large datasets?

It uses a back-fitting algorithm that repeatedly re-estimates each coefficient surface and searches for a separate optimal bandwidth per predictor. The cost grows quickly with sample size and the number of predictors, so large samples can take a long time to run.

What does a large bandwidth for a predictor mean?

A very large bandwidth means that predictor's coefficient changes little across the study area and is close to constant, while a small bandwidth means the effect is strongly local and varies from place to place. These values should be interpreted under the kernel and bandwidth type used.

Related methods

Sources

  1. 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 reference
  2. Oshan, T. M., Li, Z., Kang, W., Wolf, L. J. & Fotheringham, A. S. (2019). mgwr: A Python Implementation of Multiscale Geographically Weighted Regression. Journal of Open Source Software, 4(42), 1670.

    Open publication reference