Choosing Right Bayesian Tools: A Comparative Study of Modern Bayesian Methods in Spatial Econometric Models
Abstract
1. Introduction
2. Spatial Econometric Models
3. Bayesian Estimation Procedures
3.1. Hamiltonian Monte Carlo
3.2. Variational Bayes
3.3. Integrated Nested Laplace Approximation
4. Monte Carlo Simulations
4.1. Simulation Designs
4.2. Simulation Results
5. Discussion
6. Empirical Applications
7. Conclusions
- Accuracy benchmark: HMC serves as the accuracy reference. It consistently delivers unbiased estimates and correctly reflects posterior uncertainty, particularly in small samples.
- Computational efficiency: VB is the fastest method for small and medium datasets, often reducing computation time by an order of magnitude compared to HMC.
- Scalability: INLA is the most computationally efficient when the sample size is large, benefiting from the Laplace-based marginal posterior approximation.
- Method limitations: VB tends to underestimate the posterior variance due to the mean-field independence assumption while INLA produces biased estimates when the spatial weight matrix is dense, because all right-hand side components are treated as random effects.
Supplementary Materials
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
| 1 | For a comprehensive introduction to various spatial econometric models and their estimation, see Elhorst (2014) and, more recently, the sections devoted in the analysis of spatial data in Fischer and Nijkamp (2021) and Nijkamp et al. (2025). |
| 2 | λmin is the minimum eigenvalues of W. |
| 3 | The so-called “intractable” Bayesian problems typically include: (1) a data generating process that cannot readily be expressed as a probability density or mass function (the “unavailable likelihood” problem); (2) a high-dimensional parameter space (the “high dimensional” problem); and/or (3) a very large volume of observations (the “big-data” problem). |
| 4 | “Latent variables” denote unobserved random variables that form the underlying structure of the observed data. They are described as latent because they are not directly observable but are inferred indirectly through a probabilistic model. These variables typically represent spatial, temporal, or hierarchical random effects, serving as the “hidden layer” that links the observed data to the underlying model structure. |
| 5 | denotes the probability density. |
| 6 | Originating from mean-field theory (Barabási et al., 1999), the mean field approximation assumes full independence among all latent variables given. |
| 7 | See Zhang and Curtis (2020) for all details on ADVI. |
| 8 | This is the fact that the scale of the unknowns (and potentially also) and the challenging geometry of the posterior. |
| 9 | Following Tan and Elhorst (2024), we use to represent relatively mild spatial autocorrelation and to represent a relatively strong level of spatial autocorrelation. In addition, we consider an extreme case with to assess the performance of the methods under very strong spatial autocorrelation. |
| 10 | Coverage probability is not reported, as all three Bayesian methods provide reliable point estimates; only in rare cases (2–3 instances) do VB and INLA underperform, while HMC remains consistently stable. |
| 11 | All simulations are conducted on a PC equipped with 16 cores and 64 GB of RAM. |
| 12 | The Ames dataset originally contains 2930 observations. After the data cleaning process, 2777 observations remain for analysis. |
References
- Agrawal, D. R., Hoyt, W. H., & Wilson, J. D. (2022). Local policy choice: Theory and empirics. Journal of Economic Literature, 60(4), 1378–1455. [Google Scholar] [CrossRef]
- Anselin, L. (1980). Estimation methods for spatial autoregressive structures: A study in spatial econometrics. Program in Urban and Regional Studies. Cornell University. Available online: https://books.google.com/books?id=JnpFAAAAYAAJ (accessed on 1 October 2025).
- Anselin, L. (1988). Spatial econometrics: Methods and models. In Operational regional science series (Vol. 4). Springer. [Google Scholar]
- Anselin, L., & Bera, A. K. (1998). Spatial dependence in linear regression models with an introduction to spatial econometrics. Statistics Textbooks and Monographs, 155, 237–290. [Google Scholar]
- Bakka, H., Rue, H., Fuglstad, G.-A., Riebler, A., Bolin, D., Illian, J., Krainski, E., Simpson, D., & Lindgren, F. (2018). Spatial modeling with R-INLA: A review. WIREs Computational Statistics, 10(6), e1443. [Google Scholar] [CrossRef]
- Bansal, P., Krueger, R., & Graham, D. J. (2021). Fast Bayesian estimation of spatial count data models. Computational Statistics & Data Analysis, 157, 107152. [Google Scholar] [CrossRef]
- Barabási, A.-L., Albert, R., & Jeong, H. (1999). Mean-field theory for scale-free random networks. Physica A: Statistical Mechanics and Its Applications, 272(1), 173–187. [Google Scholar] [CrossRef]
- Beal, M. J. (2003). Variational algorithms for approximate Bayesian inference. University of London, University College London. [Google Scholar]
- Berild, M. O., Martino, S., Gómez-Rubio, V., & Rue, H. (2022). Importance sampling with the integrated nested Laplace approximation. Journal of Computational and Graphical Statistics, 31(4), 1225–1237. [Google Scholar] [CrossRef]
- Besag, J. (1974). Spatial interaction and the statistical analysis of lattice systems (with discussion). Journal of the Royal Statistical Society Series B, 36, 192–236. [Google Scholar]
- Betancourt, M. (2017). A conceptual introduction to Hamiltonian Monte Carlo. arXiv Preprint, arXiv:1701.02434. [Google Scholar]
- Betancourt, M., Byrne, S., Livingstone, S., & Girolami, M. (2017). The geometric foundations of Hamiltonian Monte Carlo. Bernoulli, 23(4A), 2257–2298. [Google Scholar] [CrossRef]
- Bhattacharjee, A., Castro, E., & Marques, J. (2012). Spatial interactions in hedonic pricing models: The urban housing market of Aveiro, Portugal. Spatial Economic Analysis, 7(1), 133–167. [Google Scholar] [CrossRef]
- Bivand, R., Gómez-Rubio, V., & Rue, H. (2014). Approximate Bayesian inference for spatial econometrics models. Spatial Statistics, 9, 146–165. [Google Scholar] [CrossRef]
- Bivand, R., Hauke, J., & Kossowski, T. (2013). Computing the jacobian in gaussian spatial autoregressive models: An illustrated comparison of available methods. Geographical Analysis, 45(2), 150–179. [Google Scholar] [CrossRef]
- Blei, D. M., Kucukelbir, A., & McAuliffe, J. D. (2017). Variational inference: A review for statisticians. Journal of the American Statistical Association, 112(518), 859–877. [Google Scholar] [CrossRef]
- Cover, T. M. (1999). Elements of information theory. John Wiley & Sons. [Google Scholar]
- Elhorst, J. P. (2014). Spatial econometrics: From cross-sectional data to spatial panels (Vol. 479). Springer. [Google Scholar]
- Fischer, M., & Nijkamp, P. (2021). Handbook of regional science. Springer. [Google Scholar]
- Fox, C. W., & Roberts, S. J. (2012). A tutorial on variational Bayesian inference. Artificial Intelligence Review, 38(2), 85–95. [Google Scholar] [CrossRef]
- Geman, S., & Geman, D. (1984). Stochastic relaxation, Gibbs distributions, and the Bayesian restoration of images. IEEE Transactions on Pattern Analysis and Machine Intelligence, 6, 721–741. [Google Scholar] [CrossRef]
- Gómez-Rubio, V., Bivand, R. S., & Rue, H. (2021). Estimating spatial econometrics models with integrated nested Laplace approximation. Mathematics, 9(17), 2044. [Google Scholar] [CrossRef]
- Han, S., Liao, X., & Carin, L. (2013). Integrated non-factorized variational inference. In Advances in neural information processing systems (Vol. 26). Curran Associates Inc. [Google Scholar]
- Harris, R., Moffat, J., & Kravtsova, V. (2011). In search of ‘W’. Spatial Economic Analysis, 6(3), 249–270. [Google Scholar] [CrossRef]
- Hepple, L. W. (1979). Bayesian analysis of the linear model with spatial dependence. In Exploratory and explanatory statistical analysis of spatial data (pp. 179–199). Springer. [Google Scholar]
- Hoffman, M. D., & Gelman, A. (2014). The No-U-Turn sampler: Adaptively setting path lengths in Hamiltonian Monte Carlo. The Journal of Machine Learning Research, 15(1), 1593–1623. [Google Scholar] [CrossRef]
- Hoyer, P. O. (2004). Non-negative matrix factorization with sparseness constraints. Journal of Machine Learning Research, 5(9), 1457–1469. [Google Scholar]
- Hubin, A., & Storvik, G. (2016). Estimating the marginal likelihood with Integrated nested Laplace approximation (INLA). arXiv Preprint, arXiv:1611.01450. [Google Scholar]
- LeSage, J. P. (1997). Bayesian estimation of spatial autoregressive models. International Regional Science Review, 20(1–2), 113–129. [Google Scholar] [CrossRef]
- LeSage, J. P., & Pace, R. K. (2009a). Bayesian spatial econometric models. In Introduction to spatial econometrics (pp. 123–153). Chapman and Hall/CRC. [Google Scholar]
- LeSage, J. P., & Pace, R. K. (2009b). Introduction to spatial econometrics. Chapman and Hall/CRC. [Google Scholar]
- Ling, Y., Bai, K., & Yang, Y. (2025). Estimation of spatial panel data models with random effects using Laplace approximation methods. Spatial Economic Analysis, 1–22. [Google Scholar] [CrossRef]
- Mizruchi, M. S., & Neuman, E. J. (2008). The effect of density on the level of bias in the network autocorrelation model. Social Networks, 30(3), 190–200. [Google Scholar] [CrossRef]
- Neal, R. M. (2011). MCMC using Hamiltonian dynamics. In Handbook of markov chain monte carlo (Vol. 2, p. 2). CRC press. [Google Scholar]
- Nijkamp, P., Kourtit, K., Haynes, K. E., & Elburz, Z. (2025). Thematic encyclopedia of regional science. Edward Elgar Publishing. [Google Scholar]
- Ormerod, J. T., & Wand, M. P. (2010). Explaining variational approximations. The American Statistician, 64(2), 140–153. [Google Scholar] [CrossRef]
- Parent, O., & LeSage, J. P. (2012). Spatial dynamic panel data models with random effects. Regional Science and Urban Economics, 42(4), 727–738. [Google Scholar] [CrossRef]
- Robert, C., & Casella, G. (2011). A short history of Markov chain Monte Carlo: Subjective recollections from incomplete data. Statistical Science, 26(1), 102–115. [Google Scholar] [CrossRef]
- Rue, H., Martino, S., & Chopin, N. (2009). Approximate Bayesian inference for latent Gaussian models by using integrated nested Laplace approximations. Journal of the Royal Statistical Society. Series B: Statistical Methodology, 71(2), 319–392. [Google Scholar] [CrossRef]
- Smith, T. E. (2009). Estimation bias in spatial models with strongly connected weight matrices. Geographical Analysis, 41(3), 307–332. [Google Scholar] [CrossRef]
- Tan, C., & Elhorst, J. P. (2024). The spatial autoregressive panel data model with spatial moving average errors. Geographical Analysis, 56(1), 40–61. [Google Scholar] [CrossRef]
- Taylor, B. M., & Diggle, P. J. (2014). INLA or MCMC? A tutorial and comparative evaluation for spatial prediction in log-Gaussian Cox processes. Journal of Statistical Computation and Simulation, 84(10), 2266–2284. [Google Scholar] [CrossRef]
- Tierney, L., & Kadane, J. B. (1986). Accurate approximations for posterior moments and marginal densities. Journal of the American Statistical Association, 81(393), 82–86. [Google Scholar] [CrossRef]
- Whittle, P. (1954). On stationary processes in the plane. Biometrika, 41, 434–449. [Google Scholar] [CrossRef]
- Wijayawardhana, A., Gunawan, D., & Suesse, T. (2025). Variational Bayes inference for simultaneous autoregressive models with missing data. Statistics and Computing, 35(3), 68. [Google Scholar] [CrossRef]
- Wolf, L. J., Anselin, L., & Arribas-Bel, D. (2018). Stochastic efficiency of Bayesian Markov chain Monte Carlo in spatial econometric models: An empirical comparison of exact sampling methods. Geographical Analysis, 50(1), 97–119. [Google Scholar] [CrossRef]
- Wu, G. (2018). Fast and scalable variational Bayes estimation of spatial econometric models for Gaussian data. Spatial Statistics, 24, 32–53. [Google Scholar] [CrossRef]
- Zhang, X., & Curtis, A. (2020). Seismic tomography using variational inference methods. Journal of Geophysical Research: Solid Earth, 125(4), e2019JB018589. [Google Scholar] [CrossRef]






| Model | Bayesian Techniques | Parameters | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Mean | SD | RMSE | MAD | Mean | SD | RMSE | MAD | Mean | SD | RMSE | MAD | Mean | SD | RMSE | MAD | Mean | SD | RMSE | MAD | |||
| SEM | HMC | 0.484 | 0.055 | 0.056 | 0.045 | 0.474 | 0.074 | 0.077 | 0.06 | 0.459 | 0.117 | 0.13 | 0.096 | 0.452 | 0.185 | 0.15 | 0.115 | 0.461 | 0.228 | 0.147 | 0.119 | |
| 1.005 | 0.024 | 0.025 | 0.02 | 1.005 | 0.024 | 0.025 | 0.02 | 1.004 | 0.024 | 0.025 | 0.02 | 1.005 | 0.024 | 0.022 | 0.018 | 1.005 | 0.024 | 0.022 | 0.018 | |||
| 2.001 | 0.017 | 0.018 | 0.014 | 2.001 | 0.017 | 0.018 | 0.014 | 2 | 0.017 | 0.018 | 0.015 | 2 | 0.017 | 0.015 | 0.012 | 2 | 0.017 | 0.015 | 0.012 | |||
| −3.002 | 0.032 | 0.033 | 0.026 | −3.002 | 0.032 | 0.033 | 0.026 | −3.002 | 0.032 | 0.034 | 0.027 | −3.003 | 0.032 | 0.033 | 0.026 | −3.003 | 0.032 | 0.033 | 0.026 | |||
| VB | 0.495 | 0.055 | 0.056 | 0.044 | 0.479 | 0.057 | 0.057 | 0.041 | 0.476 | 0.112 | 0.123 | 0.096 | 0.475 | 0.165 | 0.151 | 0.122 | 0.523 | 0.184 | 0.162 | 0.134 | ||
| 1.01 | 0.025 | 0.035 | 0.025 | 1.006 | 0.025 | 0.038 | 0.029 | 1.01 | 0.024 | 0.04 | 0.031 | 1.007 | 0.025 | 0.037 | 0.027 | 0.999 | 0.025 | 0.032 | 0.026 | |||
| 2 | 0.018 | 0.028 | 0.022 | 2 | 0.018 | 0.033 | 0.026 | 1.999 | 0.018 | 0.033 | 0.027 | 1.996 | 0.019 | 0.033 | 0.026 | 2.003 | 0.018 | 0.029 | 0.023 | |||
| −3.001 | 0.034 | 0.042 | 0.034 | −3.009 | 0.034 | 0.044 | 0.035 | −3.001 | 0.034 | 0.045 | 0.037 | −2.999 | 0.035 | 0.045 | 0.036 | −3.003 | 0.035 | 0.04 | 0.032 | |||
| INLA | 0.506 | 0.051 | 0.047 | 0.035 | 0.501 | 0.069 | 0.064 | 0.052 | 0.464 | 0.105 | 0.11 | 0.083 | 0.462 | 0.156 | 0.133 | 0.104 | 0.485 | 0.186 | 0.146 | 0.122 | ||
| 0.998 | 0.024 | 0.023 | 0.019 | 0.998 | 0.024 | 0.024 | 0.018 | 0.999 | 0.024 | 0.023 | 0.019 | 0.998 | 0.024 | 0.02 | 0.016 | 0.998 | 0.024 | 0.025 | 0.021 | |||
| 2.003 | 0.017 | 0.017 | 0.013 | 1.998 | 0.017 | 0.015 | 0.012 | 2.001 | 0.017 | 0.017 | 0.014 | 2.001 | 0.017 | 0.017 | 0.014 | 1.999 | 0.017 | 0.017 | 0.013 | |||
| −2.992 | 0.032 | 0.036 | 0.028 | −2.997 | 0.032 | 0.032 | 0.026 | −3.007 | 0.032 | 0.031 | 0.024 | −3.004 | 0.032 | 0.036 | 0.027 | −3.006 | 0.032 | 0.03 | 0.024 | |||
| SLM | HMC | 0.498 | 0.013 | 0.014 | 0.011 | 0.496 | 0.018 | 0.018 | 0.014 | 0.494 | 0.029 | 0.031 | 0.025 | 0.488 | 0.053 | 0.052 | 0.04 | 0.476 | 0.078 | 0.08 | 0.06 | |
| 1.002 | 0.024 | 0.022 | 0.018 | 1.005 | 0.024 | 0.025 | 0.02 | 1.004 | 0.024 | 0.025 | 0.02 | 1.005 | 0.024 | 0.022 | 0.018 | 1.005 | 0.024 | 0.023 | 0.018 | |||
| 2.001 | 0.018 | 0.018 | 0.015 | 2.001 | 0.017 | 0.018 | 0.015 | 2 | 0.017 | 0.018 | 0.014 | 2.001 | 0.017 | 0.015 | 0.013 | 2.001 | 0.017 | 0.016 | 0.012 | |||
| −3.002 | 0.032 | 0.032 | 0.026 | −3.002 | 0.033 | 0.033 | 0.027 | −3.002 | 0.033 | 0.034 | 0.027 | −3.003 | 0.032 | 0.034 | 0.026 | −3.003 | 0.033 | 0.033 | 0.028 | |||
| VB | 0.499 | 0.011 | 0.014 | 0.011 | 0.497 | 0.011 | 0.014 | 0.011 | 0.5 | 0.016 | 0.031 | 0.024 | 0.495 | 0.017 | 0.05 | 0.038 | 0.481 | 0.018 | 0.084 | 0.062 | ||
| 1.007 | 0.025 | 0.038 | 0.029 | 1.005 | 0.025 | 0.038 | 0.03 | 1.003 | 0.025 | 0.034 | 0.029 | 1.002 | 0.025 | 0.035 | 0.028 | 1.008 | 0.025 | 0.037 | 0.028 | |||
| 2.004 | 0.018 | 0.034 | 0.027 | 2 | 0.018 | 0.027 | 0.022 | 2 | 0.018 | 0.03 | 0.024 | 2.003 | 0.019 | 0.032 | 0.025 | 2.007 | 0.019 | 0.03 | 0.024 | |||
| −3 | 0.034 | 0.046 | 0.037 | −3.011 | 0.033 | 0.047 | 0.036 | −3 | 0.035 | 0.046 | 0.037 | −3.006 | 0.034 | 0.043 | 0.035 | −3.001 | 0.035 | 0.047 | 0.038 | |||
| INLA | 0.507 | 0.04 | 0.038 | 0.029 | 0.493 | 0.057 | 0.056 | 0.044 | 0.487 | 0.087 | 0.104 | 0.073 | 0.497 | 0.131 | 0.109 | 0.106 | 0.491 | 0.16 | 0.108 | 0.123 | ||
| 1.164 | 0.065 | 0.177 | 0.054 | 1.169 | 0.065 | 0.18 | 0.051 | 1.164 | 0.064 | 0.175 | 0.052 | 1.173 | 0.064 | 0.185 | 0.053 | 1.162 | 0.064 | 0.175 | 0.051 | |||
| 2.002 | 0.254 | 0.264 | 0.201 | 2.115 | 0.403 | 0.416 | 0.322 | 2.121 | 0.865 | 1.101 | 0.727 | 2.15 | 1.015 | 1.081 | 0.731 | 2.13 | 1.43 | 1.016 | 0.757 | |||
| −2.985 | 0.404 | 0.382 | 0.292 | −3.171 | 0.648 | 0.627 | 0.468 | −3.313 | 1.381 | 1.063 | 0.823 | −3.548 | 1.945 | 1.084 | 0.739 | −3.685 | 1.85 | 1.091 | 0.839 | |||
| Method | Strengths | Limitations |
|---|---|---|
| HMC | High accuracy; flexible | Slow for large datasets; |
| VB | Very fast; scalable | Small-sample bias in |
| INLA | Excellent scalability; accurate in large samples | Sensitive to matrix sparseness; biased and in small samples |
| Variable | Current Expenditure | Capital Expenditure | Total Expenditure | |||
| Mean | 95%CIs | Mean | 95%CIs | Mean | 95%CIs | |
| ACTPOP | −0.018 | (−0.024; −0.013) | −0.005 | (−0.019; 0.01) | −0.012 | (−0.02: −0.006) |
| SUP | 0.001 | (−0.001; 0.003) | −0.002 | (−0.006; 0.003) | 0.002 | (−0.001; 0.004) |
| lPOP0010 | 0.138 | (0.024; 0.254) | 0.06 | (−0.238; 0.362) | 0.063 | (−0.081; 0.211) |
| lPOP1117 | −0.282 | (−0.395; −0.178) | −0.285 | (−0.539; −0.041) | −0.333 | (−0.476; −0.202) |
| lPOP1824 | 0.236 | (0.156; 0.314) | 0.373 | (0.182; 0.56) | 0.264 | (0.164; 0.362) |
| lPOP64p | −0.023 | (−0.083; 0.039) | −0.143 | (−0.305; 0.016) | −0.112 | (−0.186; −0.035) |
| Spatial lag () | 0.928 | (0.925; 0.931) | 0.799 | (0.793; 0.805) | 0.866 | (0.863; 0.869) |
| Sigma () | 0.301 | (0.288; 0.314) | 0.788 | (0.756; 0.82) | 0.378 | (0.362; 0.395) |
| Computing time (s) | 467 | 177 | 467 | |||
| Variable | Current Expenditure | |
|---|---|---|
| Mean | 95%CIs | |
| lnLot_Area | 0.067 | (0.047; 0.087) |
| lnTotal_Bsmt_SF | 0.048 | (0.042; 0.054) |
| lnGr_Liv_Area | 0.462 | (0.432; 0.491) |
| Garage_Cars | 0.088 | (0.076; 0.101) |
| Fireplaces | 0.059 | (0.046; 0.071) |
| Spatial error () | 0.683 | (0.654; 0.711) |
| Sigma () | 0.178 | (0.173; 0.183) |
| Computing time (s) | 268 | |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Ling, Y.; Le Gallo, J. Choosing Right Bayesian Tools: A Comparative Study of Modern Bayesian Methods in Spatial Econometric Models. Econometrics 2025, 13, 49. https://doi.org/10.3390/econometrics13040049
Ling Y, Le Gallo J. Choosing Right Bayesian Tools: A Comparative Study of Modern Bayesian Methods in Spatial Econometric Models. Econometrics. 2025; 13(4):49. https://doi.org/10.3390/econometrics13040049
Chicago/Turabian StyleLing, Yuheng, and Julie Le Gallo. 2025. "Choosing Right Bayesian Tools: A Comparative Study of Modern Bayesian Methods in Spatial Econometric Models" Econometrics 13, no. 4: 49. https://doi.org/10.3390/econometrics13040049
APA StyleLing, Y., & Le Gallo, J. (2025). Choosing Right Bayesian Tools: A Comparative Study of Modern Bayesian Methods in Spatial Econometric Models. Econometrics, 13(4), 49. https://doi.org/10.3390/econometrics13040049

