Bayesian Multiscale Geographically Weighted Regression

Statistics
Introduced by
Fotheringham, Yang & Kang (MGWR); Bayesian extension by Li and co-authors
Year
2017-2020
Type
Spatially varying coefficient regression
Family
GIS / spatial

What does it do?

Bayesian Multiscale Geographically Weighted Regression (Bayesian MGWR) is a spatially varying coefficient approach that combines the multiscale formulation of MGWR with Bayesian inference.

In MGWR each predictor has its own bandwidth, so each relationship can operate at its own geographic scale. The Bayesian version places priors on the local coefficients and summarises them with posterior distributions rather than point estimates alone. Bayesian MGWR is not a single standardised model: the prior structure and sampler depend on the implementation.

The intuition behind the method

Classical GWR uses one bandwidth, which forces all predictors to act at the same geographic scale. MGWR, as introduced by Fotheringham, Yang and Kang, gives each predictor its own bandwidth, so the data can indicate whether a process is very local or more regional. The Bayesian variant adds a probability statement: for each coefficient at each location it returns a posterior distribution, so a map shows both the estimated effect and how uncertain it is. A useful way to read the output is as one uncertainty-aware surface per predictor, rather than a single best-fit surface.

History

Multiscale GWR was introduced by Fotheringham, Yang and Kang in 2017 in the Annals of the American Association of Geographers, to address the limitation that classical GWR forces all predictors to share one bandwidth. The authors described it as similar in intent to Bayesian nonseparable spatially varying coefficient models, while potentially offering a more flexible and scalable framework. Calibration in MGWR is by back-fitting. FastGWR (Li, Fotheringham, Li and Oshan) is a scalable implementation of classical GWR. The origin of a specific Bayesian MGWR formulation is not established here, and implementations vary.

When to use it

Choose Bayesian MGWR for georeferenced data with a continuous outcome when you suspect that predictor effects vary across space and that different predictors act at different geographic scales, and when uncertainty about local effects matters for the question. For example, you might ask whether a socioeconomic effect is local while a climatic effect is regional. Do not use it when spatial variation in effects is not suspected, since a global regression or spatial lag model is simpler and easier to interpret. It is also a poor choice when the number of locations is small, because local coefficients become poorly identified; when computing time is limited, given the cost of MCMC; or when only a single average effect is of interest.

Limitations and considerations

  • Sampling local coefficients and bandwidths jointly is computationally demanding, and runtimes increase with the number of locations and predictors.
  • Where data are thin, the priors on the bandwidths and coefficient covariances strongly shape the local surfaces, so results should be checked for sensitivity to these choices.
  • Each predictor produces its own coefficient surface with its own uncertainty, so communicating many maps of intervals and sign probabilities requires careful presentation.
  • Local identification depends on the spatial density of observations; sparse coverage produces wide credible intervals in those areas.
  • The cited sources describe classical MGWR and a scalable classical GWR algorithm, not a Bayesian MGWR package, so the sampler often has to be built for the specific model.

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

Strengths

  • Each predictor has its own bandwidth, so differences in spatial scale between predictors can be detected, which a single-bandwidth GWR cannot represent.
  • Posterior distributions give credible intervals and sign probabilities for each local coefficient, supporting statements about where an effect is reliably present.
  • The zero-mean Gaussian priors stabilise local estimates in parts of the study area where observations are sparse.
  • Model comparison and posterior predictive checks can be carried out with Bayesian tools such as WAIC or LOO-CV.

Applications

  • Public health: examining whether socioeconomic predictors of disease operate at local or regional scales, with uncertainty maps of the local effects.
  • Urban economics: estimating how the effects of neighbourhood amenities or transit access on property values vary in strength and spatial scale.
  • Environmental science: studying whether land-cover predictors of air quality or biodiversity act at different ecological scales.
  • Criminology: comparing the geographic reach of poverty and policing predictors of crime.
  • Agricultural and climate research: assessing whether temperature and precipitation effects on crop yield operate at different spatial scales.

How it works

How it works

1

At each location the outcome is modelled as a linear combination of predictors whose coefficients vary over space. The displayed equation is simplified: it omits the intercept (which can be treated as one more spatially varying coefficient, with x_i0 = 1) and the spatial weights. In GWR-type estimation, local estimates are obtained by weighting observations by their distance from the focal location with a kernel (commonly Gaussian or bi-square). A likelihood must also be stated; a common assumption is independent normal errors, epsilon_i ~ N(0, sigma^2), but this is a modelling choice of the implementation.

Formula
y_i = \sum_k \beta_k(u_i,v_i)\, x_{ik} + \varepsilon_i
2

MGWR assigns each predictor its own bandwidth, forming a bandwidth vector in which each element indicates the spatial scale at which that process operates (Fotheringham, Yang and Kang, 2017). In classical MGWR this vector is found by a back-fitting algorithm. In a Bayesian formulation the bandwidths can instead be treated as uncertain and sampled together with the coefficients. The form of the bandwidth prior is implementation-specific and must be stated explicitly by whoever specifies the model.

3

Each local coefficient vector is given a zero-mean Gaussian prior with covariance matrix Sigma_k, which penalises large departures from zero and stabilises estimates where data are thin. The displayed formula does not show how Sigma_k depends on the bandwidth or how nearby locations are linked. The intended spatial structure (nearby locations having similar coefficients) therefore has to be specified explicitly. Priors for the error variance and the bandwidths are also needed to complete the model.

Formula
p(\beta_k) \propto \exp\!\left(-\frac{1}{2}\beta_k^{\top} \Sigma_k^{-1} \beta_k\right)
4

Inference targets the joint posterior of the local coefficients, bandwidth parameters and error variance given the data, typically using Markov Chain Monte Carlo (MCMC). Because these quantities are estimated jointly, convergence must be checked before the output is summarised.

5

From the posterior draws, each local coefficient is summarised by its posterior mean, a credible interval, and the posterior probability that it is positive or negative. These summaries state directly how strongly the data support a sign at a given location, which classical local t-statistics do not provide in the same form.

Common pitfalls

  • If all predictors end up with nearly identical bandwidths, the model behaves like single-bandwidth GWR and the multiscale purpose is lost; check each predictor's posterior bandwidth separately.
  • Reporting only posterior means hides the uncertainty that the Bayesian approach provides; show credible intervals or sign probabilities alongside the estimates.
  • Reporting results without MCMC convergence diagnostics such as R-hat and effective sample size can give unreliable posterior summaries.
  • A credible interval that includes zero indicates an uncertain effect, not a zero effect; avoid reading it as evidence of no relationship.
  • Unmodelled spatial confounding can produce spurious spatial structure in local coefficients; check residual spatial autocorrelation and consider whether relevant covariates are missing.

Frequently asked questions

How is Bayesian MGWR different from standard GWR?

Standard GWR uses one bandwidth for all predictors and reports point estimates. Bayesian MGWR gives each predictor its own bandwidth and returns posterior distributions, so each local coefficient comes with a credible interval rather than a single estimate.

What sample size do I need for Bayesian MGWR?

There is no fixed threshold. Local coefficients need enough nearby observations to be identified; with few locations or sparse coverage, credible intervals become wide and the priors have strong influence on the results. In that situation a Bayesian global regression or spatial lag model may be more appropriate.

Do I need to specify priors for the bandwidths?

If the bandwidths are sampled, yes, they need priors, and the choice is implementation-specific. Whatever prior is used, run a sensitivity analysis to see how much the local surfaces change when the prior is varied, especially where data are sparse.

How do I know if spatial non-stationarity is present at all?

As a heuristic, compare predictive fit (for example WAIC or LOO-CV) between Bayesian MGWR and a global Bayesian regression, and inspect the estimated bandwidths and the credible intervals of the local coefficients. If the local surfaces are essentially flat and fit does not improve, a simpler model may be adequate.

Which software supports Bayesian MGWR?

The MGWR method (Fotheringham, Yang and Kang, 2017) and a scalable Python implementation of classical GWR (Li et al.) are documented in the literature. A Bayesian MGWR model is usually implemented with general probabilistic tools such as Stan or PyMC. Check the documentation of any platform to confirm which model it actually fits.

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. Li, Z., Fotheringham, A. S., Li, W., & Oshan, T. (2020). Fast Geographically Weighted Regression (FastGWR): a scalable algorithm to investigate spatial process heterogeneity in millions of observations. International Journal of Geographical Information Science, 33(1), 155-175.

    Open DOI reference