Electronic Journal of Statistics

Weighted batch means estimators in Markov chain Monte Carlo

Ying Liu and James M. Flegal

Full-text: Open access


This paper proposes a family of weighted batch means variance estimators, which are computationally efficient and can be conveniently applied in practice. The focus is on Markov chain Monte Carlo simulations and estimation of the asymptotic covariance matrix in the Markov chain central limit theorem, where conditions ensuring strong consistency are provided. Finite sample performance is evaluated through auto-regressive, Bayesian spatial-temporal, and Bayesian logistic regression examples, where the new estimators show significant computational gains with a minor sacrifice in variance compared with existing methods.

Article information

Electron. J. Statist., Volume 12, Number 2 (2018), 3397-3442.

Received: July 2017
First available in Project Euclid: 10 October 2018

Permanent link to this document

Digital Object Identifier

Primary: 60J22: Computational methods in Markov chains [See also 65C40]
Secondary: 62F15: Bayesian inference

Batch means confidence regions covariance matrix estimation long run variance Markov chain Monte Carlo strong consistency

Creative Commons Attribution 4.0 International License.


Liu, Ying; Flegal, James M. Weighted batch means estimators in Markov chain Monte Carlo. Electron. J. Statist. 12 (2018), no. 2, 3397--3442. doi:10.1214/18-EJS1483. https://projecteuclid.org/euclid.ejs/1539137549

Export citation


  • Alexopoulos, C., Fishman, G. S., and Seila, A. F. (1997). Computational experience with the batch means method. In, Proceedings of the 29th conference on Winter simulation, pages 194–201. IEEE Computer Society.
  • Anderson, T. W. (1994)., The Statistical Analysis of Time Series. Wiley-Interscience.
  • Bednorz, W. and Latuszyński, K. (2007). A few remarks on ‘Fixed-width output analysis for Markov chain Monte Carlo’ by Jones et al., Journal of the American Statistical Association, 102:1485–1486.
  • Boone, E. L., Merrick, J. R., and Krachey, M. J. (2014). A Hellinger distance approach to MCMC diagnostics., Journal of Statistical Computation and Simulation, 84(4):833–849.
  • Chan, K. W. and Yau, C. Y. (2017). Automatic optimal batch size selection for recursive estimators of time-average covariance matrix., Journal of the American Statistical Association, 112(519):1076–1089.
  • Dai, N. and Jones, G. (2017). Multivariate initial sequence estimators in Markov chain Monte Carlo., Journal of Multivariate Analysis, 159:184–199.
  • Damerdji, H. (1987). On strong consistency of the variance estimator. In, Proceedings of the 19th conference on Winter simulation, pages 305–308. ACM.
  • Damerdji, H. (1991). Strong consistency and other properties of the spectral variance estimator., Management Science, 37:1424–1440.
  • Damerdji, H. (1994). Strong consistency of the variance estimator in steady-state simulation output analysis., Mathematics of Operations Research, 19:494–512.
  • Elith, J., Leathwick, J., and Hastie, T. (2008). A working guide to boosted regression trees., Journal of Animal Ecology, 77(4):802–813.
  • Finley, A. O., Banerjee, S., and Carlin, B. P. (2007). spBayes: an R package for univariate and multivariate hierarchical point-referenced spatial models., Journal of Statistical Software, 19.
  • Flegal, J. M. and Gong, L. (2015). Relative fixed-width stopping rules for Markov chain Monte Carlo simulations., Statistica Sinica, 25:655–676.
  • Flegal, J. M., Haran, M., and Jones, G. L. (2008). Markov chain Monte Carlo: Can we trust the third significant figure?, Statistical Science, 23:250–260.
  • Flegal, J. M. and Jones, G. L. (2010). Batch means and spectral variance estimators in Markov chain Monte Carlo., The Annals of Statistics, 38:1034–1070.
  • Flegal, J. M. and Jones, G. L. (2011). Implementing Markov chain Monte Carlo: Estimating with confidence. In Brooks, S., Gelman, A., Jones, G., and Meng, X., editors, Handbook of Markov Chain Monte Carlo, pages 175–197. Chapman & Hall/CRC Press.
  • Gelfand, A. E., Banerjee, S., and Gamerman, D. (2005). Spatial process modelling for univariate and multivariate dynamic spatial data., Environmetrics, 16(5):465–479.
  • Geyer, C. J. (1992). Practical Markov chain Monte Carlo., Statistical science, pages 473–483.
  • Glynn, P. W. and Whitt, W. (1992). The asymptotic validity of sequential stopping rules for stochastic simulations., The Annals of Applied Probability, 2:180–198.
  • Gong, L. and Flegal, J. M. (2016). A practical sequential stopping rule for high-dimensional Markov chain Monte Carlo., Journal of Computational and Graphical Statistics, 25:684–700.
  • Hijmans, R., Phillips, S., Leathwick, J., and Elith, J. (2010). dismo: species distribution modeling. r package version, 0.5-4.
  • Hobert, J. P., Jones, G. L., Presnell, B., and Rosenthal, J. S. (2002). On the applicability of regenerative simulation in Markov chain Monte Carlo., Biometrika, 89:731–743.
  • Jones, G. L., Haran, M., Caffo, B. S., and Neath, R. (2006). Fixed-width output analysis for Markov chain Monte Carlo., Journal of the American Statistical Association, 101:1537–1547.
  • Jones, G. L. and Hobert, J. P. (2001). Honest exploration of intractable probability distributions via Markov chain Monte Carlo., Statistical Science, 16:312–334.
  • Kuelbs, J. and Philipp, W. (1980). Almost sure invariance principles for partial sums of mixing B-valued random variables., The Annals of Probability, 8:1003–1036.
  • Lahiri, S. N. (1999). Theoretical comparisons of block bootstrap methods., The Annals of Statistics, 27(1):386–404.
  • Leathwick, J., Elith, J., Chadderton, W., Rowe, D., and Hastie, T. (2008). Dispersal, disturbance and the contrasting biogeographies of New Zealand’s diadromous and non-diadromous fish species., Journal of Biogeography, 35(8):1481–1497.
  • Liu, J. S. (2001)., Monte Carlo Strategies in Scientific Computing. Springer, New York.
  • Liu, Y. and Flegal, J. M. (2018). Optimal mean squared error bandwidth for spectral variance estimators in MCMC simulations., ArXiv e-prints.
  • Meketon, M. S. and Schmeiser, B. (1984). Overlapping batch means: Something for nothing? In, WSC ’84: Proceedings of the 16th conference on Winter simulation, pages 226–230, Piscataway, NJ, USA. IEEE Press.
  • Meyn, S. and Tweedie, R. (2009)., Markov Chains and Stochastic Stability, volume 2. Cambridge University Press Cambridge.
  • Mykland, P., Tierney, L., and Yu, B. (1995). Regeneration in Markov chain samplers., Journal of the American Statistical Association, 90:233–241.
  • Politis, D. N. (2003). The impact of bootstrap methods on time series analysis., Statistical Science, 18:219–230.
  • Politis, D. N. and Romano, J. P. (1995). Bias-corrected nonparametric spectral estimation., Journal of Time Series Analysis, 16(1):67–103.
  • Politis, D. N. and Romano, J. P. (1996). On flat-top kernel spectral density estimators for homogeneous random fields., Journal of Statistical Planning and Inference, 51(1):41–53.
  • Politis, D. N. and Romano, J. P. (1999). Multivariate density estimation with general flat-top kernels of infinite order., Journal of Multivariate Analysis, 68(1):1–25.
  • Politis, D. N. and White, H. (2004). Automatic block-length selection for the dependent bootstrap., Econometric Reviews, 23(1):53–70.
  • Robert, C. P. and Casella, G. (2004)., Monte Carlo Statistical Methods. Springer, New York, second edition.
  • Roy, V. and Evangelou, E. (2018). Selection of proposal distributions for generalized importance sampling estimators., arXiv preprint arXiv:1805.00829.
  • Roy, V., Tan, A., and Flegal, J. M. (2018). Estimating standard errors for importance sampling estimators with multiple Markov chains., Statistica Sinica, 28:1079–1101.
  • Seila, A. F. (1982). Multivariate estimation in regenerative simulation., Operations Research Letters, 1:153–156.
  • Tjøstheim, D. (1990). Non-linear time series and Markov chains., Advances in Applied Probability, pages 587–611.
  • Vats, D. and Flegal, J. M. (2018). Lugsail lag windows and their application to MCMC., ArXiv e-prints.
  • Vats, D., Flegal, J. M., and Jones, G. L. (2015). Multivariate Output Analysis for Markov chain Monte Carlo., ArXiv e-prints.
  • Vats, D., Flegal, J. M., and Jones, G. L. (2018). Strong Consistency of Multivariate Spectral Variance Estimators in Markov Chain Monte Carlo., Bernoulli, 24:1860–1909.
  • Welch, P. D. (1987). On the relationship between batch means, overlapping means and spectral estimation. In, WSC ’87: Proceedings of the 19th conference on Winter simulation, pages 320–323, New York, NY, USA. ACM.
  • Wu, W. B. et al. (2009). Recursive estimation of time-average variance constants., The Annals of Applied Probability, 19(4):1529–1552.
  • Yau, C. Y. and Chan, K. W. (2016). New recursive estimators of the time-average variance constant., Statistics and Computing, 26(3):609–627.