- Introduced by
- LeSage & Fischer (building on Raftery et al. BMA framework, 1997)
- Year
- 2008
- Type
- Bayesian model combination with spatial structure
- Family
- Bayesian / computational
What does it do?
Spatial Bayesian model averaging (spatial BMA) extends Bayesian model averaging to georeferenced data where spatial dependence must be modelled.
Instead of selecting one spatial regression specification (which spatial weight matrix, which regressors, and whether dependence enters as a spatial lag or an error), it averages predictions and parameter estimates across all candidate models, weighting each by its posterior probability given the data.
The intuition behind the method
Specification uncertainty is common in spatial analysis. A spatial lag model, a spatial error model, or a nonspatial baseline may all be plausible, and the choice of spatial weight matrix and covariates is often weakly justified. Spatial BMA treats each candidate model as a hypothesis and assigns it a posterior probability. Quantities of interest, such as covariate effects or predictions for new locations, are then probability-weighted averages over the model space, so the reported uncertainty includes uncertainty about the model as well as parameter uncertainty within each model.
History
Spatial Bayesian model averaging applies the general Bayesian model averaging framework, in which posterior model probabilities weight the predictions of competing models, to spatial regression specifications such as lag, error and Durbin models. Benchmark priors for Bayesian model averaging are the subject of Fernandez, Ley and Steel (2001). LeSage and Pace (2009) provides a standard treatment of spatial econometric models.
When to use it
Use spatial BMA when (1) you are genuinely uncertain about the spatial specification, such as lag versus error versus Durbin structures, or about which regressors belong in the model; (2) the data are georeferenced and spatial autocorrelation is plausible; and (3) you want coefficient or spillover estimates that do not commit to a single model. Do not use spatial BMA when strong theory justifies one spatial model and a fixed variable set, since fitting that model directly is cheaper and simpler. Avoid it when the candidate model space cannot be defined sensibly, or when the spatial weights are entirely unknown and no sensitivity analysis is feasible.
Limitations and considerations
- Computationally demanding: the model space grows rapidly with the number of candidate regressors and spatial structures, so MC3 is needed for large spaces.
- Requires a spatial weight matrix even as a candidate; if every candidate W is misspecified, all averaged estimates can be biased.
- Each marginal likelihood involves the spatial log-determinant, so exact values may be unavailable; numerical approximations then enter the posterior weights and their accuracy must be checked.
- Averaged coefficients are hard to read in spatial lag and Durbin models, because the slope is not the marginal effect. Direct and indirect effects must be decomposed within each model before averaging.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Propagates specification uncertainty into inference, so parameter estimates and predictions are averaged over competing spatial structures and variable sets rather than conditioned on one chosen model.
- Posterior inclusion probabilities give a variable-relevance summary across the model space that does not rely on p-value thresholds.
- Carries uncertainty about direct and indirect (spillover) effects across models at the same time, when the decompositions are averaged with the posterior weights.
- Can treat alternative spatial weight matrices as a model dimension, so assumptions about spatial connectivity are tested rather than fixed in advance.
- Lowers the risk of building all conclusions on one possibly misspecified spatial model.
Applications
- Regional economics: averaging across spatial lag and error models to estimate robust determinants of regional growth or income convergence.
- Environmental science: identifying predictors of pollution or ecological outcomes at areal units while accounting for spatial dependence and model uncertainty.
- Epidemiology and public health: estimating disease risk factors across small areas with uncertain spatial correlation structures.
- Real estate and urban economics: hedonic price models with spatial spillovers where the correct neighbourhood weight matrix is unknown.
- Political science: cross-national or subnational studies where spatial diffusion of policies or outcomes is plausible but the diffusion mechanism is uncertain.
- Agricultural and land-use economics: yield or land-value models with spatial interactions across geographically defined units.
How it works
How it works
The candidate set is defined by combinations of spatial structure (lag, error, Durbin, or nonspatial), included regressors, and, optionally, a spatial weight matrix. A small set can be enumerated directly. For moderate-to-large sets of regressors, Markov chain Monte Carlo model composition (MC3) explores the space stochastically rather than checking all 2^p subsets of p regressors.
Formula
\mathcal{M} = \{M_1, M_2, \ldots, M_K\}Each candidate model receives a prior probability. One choice, and the one used here, is a Bernoulli prior with p = 0.5 on the inclusion of each regressor and equal prior probability across spatial structures. Coefficients within each model receive benchmark g-priors (Zellner-Siow or hyper-g), which make the marginal likelihoods tractable. Benchmark priors for Bayesian model averaging are the subject of Fernandez, Ley and Steel (2001). Because the choice of inclusion and g-priors can shift posterior weights, prior sensitivity should be checked.
Formula
p(M_k) \propto \text{prior on inclusion of regressors and spatial structure}Within each model, the marginal likelihood is obtained by integrating out the parameters. For the spatial lag model, y = rho*Wy + Xb + e, the integrand involves the spatial multiplier (I - rho*W) and its log-determinant. With conjugate-type priors this integral can sometimes be evaluated in closed form, but the log-determinant term may prevent an exact result, in which case a numerical approximation such as a Laplace approximation is used. The approximation error does not stay inside each model: it enters the marginal likelihoods and therefore the posterior model weights and every averaged quantity. Implementations may differ in the approximation they use, so reported weights should be checked for stability, for example by comparing against exact evaluation on a small model space where enumeration is feasible.
Formula
p(\mathbf{y} \mid M_k) = \int p(\mathbf{y} \mid \boldsymbol{\theta}, M_k)\, p(\boldsymbol{\theta} \mid M_k)\, d\boldsymbol{\theta}Bayes' rule gives each model a posterior weight proportional to its marginal likelihood times its prior, normalised so that the weights over all models sum to one. Models with poor fit or unnecessary complexity receive low weight.
Formula
p(M_k \mid \mathbf{y}) = \frac{p(\mathbf{y} \mid M_k)\, p(M_k)}{\sum_{j=1}^{K} p(\mathbf{y} \mid M_j)\, p(M_j)}Any quantity of interest, such as a coefficient, a prediction, or a spillover effect, is averaged using these posterior model weights. A posterior inclusion probability (PIP) for a regressor is the sum of the weights of all models that include it. PIPs near 1 indicate a regressor supported across spatial structures, while PIPs near 0.5 indicate substantial uncertainty about whether it belongs in the model.
Formula
p(\Delta \mid \mathbf{y}) = \sum_{k=1}^{K} p(\Delta \mid M_k, \mathbf{y})\, p(M_k \mid \mathbf{y})Common pitfalls
- Treating a high posterior inclusion probability as proof of causality. A PIP reflects predictive relevance under the chosen priors, not causal identification.
- Fixing a single spatial weight matrix and averaging only over regressors. This ignores spatial-structure uncertainty and can give false confidence in the results.
- Reporting averaged raw slope coefficients instead of average direct and indirect (spillover) effects.
- Running MC3 chains that are too short and reporting unconverged posterior model weights as if they were exact.
- Ignoring prior sensitivity. With many models, the choice of g-prior or inclusion prior can noticeably change the posterior weights.
Frequently asked questions
What is a posterior inclusion probability (PIP) and how should I interpret it?
A PIP for a variable is the sum of posterior weights of all models that include that variable. Under the median-probability rule, a PIP above 0.5 is the conventional threshold for including the variable in the final model. PIP values depend on the inclusion prior and the g-prior settings, so they should be reported together with those settings. Values near 1 indicate a robust predictor across spatial model structures; values near 0.5 signal genuine model uncertainty about whether the variable matters.
How does spatial BMA differ from just fitting a spatial lag model with LASSO or stepwise selection?
LASSO and stepwise selection pick one model and discard the rest, so all downstream inference conditions on that single model as if it were known to be correct. Spatial BMA retains all models and weights them, so uncertainty about the spatial structure and variable set is carried through to every estimate and prediction.
Which spatial weight matrices should I include as candidates?
Include matrices that reflect plausible connectivity theories for your substantive domain, such as contiguity (queen or rook), inverse distance with different bandwidth parameters, or k-nearest-neighbour matrices. Each added matrix enlarges the model space, so a short, justified list is preferable to many weakly motivated candidates, which add model space without adding information.
Do I still need to decompose direct and indirect effects when using spatial BMA?
Yes. In spatial lag or Durbin models, the slope coefficient is not the marginal effect because of feedback through the spatial multiplier. You must decompose impacts into average direct and average indirect (spillover) effects for each sampled model and then average those decompositions using the posterior model weights.
How do I assess convergence of the MC3 sampler over the model space?
Run at least two independent MC3 chains starting from different random models. Compare the PIPs and the posterior probabilities of the top-ranked models across chains, using a tolerance chosen in advance and reported with the results. If the chains give materially different PIPs or disagree on which models rank highest, the sampler has not converged and the chains should be lengthened before results are reported. Also report the cumulative posterior probability of the visited models. Models that are rarely sampled receive little weight in the averages, and this figure shows how much of the posterior mass the chains have reached.
Related methods
Sources
LeSage, J. P. & Pace, R. K. (2009). Introduction to Spatial Econometrics. CRC Press / Taylor & Francis.
ISBN: 978-1420064247Fernandez, C., Ley, E. & Steel, M. F. J. (2001). Benchmark priors for Bayesian model averaging. Journal of Econometrics, 100(2), 381-427.
Open DOI reference