IDEAS home Printed from https://ideas.repec.org/a/wly/jnljps/v2025y2025i1n4744162.html

Unconstrained Metropolis–Hastings Sampling of Covariance Matrices

Author

Listed:
  • Daniel Turek

Abstract

Markov chain Monte Carlo (MCMC), the predominant algorithm for fitting hierarchal models to data in a Bayesian setting, relies on the ability to sample from the full conditional distributions of unobserved parameters. Covariance or precision matrices offer a unique sampling challenge due to the constraints on the elements of symmetric positive‐definite matrices. Historically, MCMC algorithms have relied upon conjugate prior‐likelihood forms for such matrices to sample directly from the conditional distribution. In the absence of conjugacy, Metropolis–Hastings sampling is problematic due to the challenge of generating suitable proposal values. Here, we develop a general Metropolis–Hastings sampling algorithm for covariance matrices, which makes proposals on an unconstrained domain through use of a bijective transformation. Our main contribution is a derivation of the Metropolis–Hastings acceptance probability for proposals made using this transformation. Pseudocode is provided for implementing our algorithm, and we also present a simulation study analyzing asymptotic performance under varying matrix dimensions and correlation structures. We present a real data example using this methodology to fit a hierarchical model for species abundance and detection using correlated random effects, for several bird species in the White Mountain National Forest, New Hampshire. Our method provides a simple and general‐purpose approach for MCMC sampling of nonconjugate covariance matrices in arbitrary hierarchical model structures.

Suggested Citation

  • Daniel Turek, 2025. "Unconstrained Metropolis–Hastings Sampling of Covariance Matrices," Journal of Probability and Statistics, John Wiley & Sons, vol. 2025(1).
  • Handle: RePEc:wly:jnljps:v:2025:y:2025:i:1:n:4744162
    DOI: 10.1155/jpas/4744162
    as

    Download full text from publisher

    File URL: https://doi.org/10.1155/jpas/4744162
    Download Restriction: no

    File URL: https://libkey.io/10.1155/jpas/4744162?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Patil, Anand & Huard, David & Fonnesbeck, Christopher J., 2010. "PyMC: Bayesian Stochastic Modelling in Python," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 35(i04).
    2. McCulloch, Robert E. & Polson, Nicholas G. & Rossi, Peter E., 2000. "A Bayesian analysis of the multinomial probit model with fully identified parameters," Journal of Econometrics, Elsevier, vol. 99(1), pages 173-193, November.
    3. Marco Del Negro & Giorgio E. Primiceri, 2015. "Time Varying Structural Vector Autoregressions and Monetary Policy: A Corrigendum," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 82(4), pages 1342-1345.
    4. Lewandowski, Daniel & Kurowicka, Dorota & Joe, Harry, 2009. "Generating random correlation matrices based on vines and extended onion method," Journal of Multivariate Analysis, Elsevier, vol. 100(9), pages 1989-2001, October.
    5. Michael Pitt & David Chan & Robert Kohn, 2006. "Efficient Bayesian inference for Gaussian copula regression models," Biometrika, Biometrika Trust, vol. 93(3), pages 537-554, September.
    6. Zengri Wang & Thomas A. Louis, 2004. "Marginalized Binary Mixed-Effects Models with Covariate-Dependent Random Effects and Likelihood Inference," Biometrics, The International Biometric Society, vol. 60(4), pages 884-891, December.
    7. Michael J. Daniels, 2002. "Bayesian analysis of covariance matrices and dynamic models for longitudinal data," Biometrika, Biometrika Trust, vol. 89(3), pages 553-566, August.
    8. Nobile, Agostino, 2000. "Comment: Bayesian multinomial probit models with a normalization constraint," Journal of Econometrics, Elsevier, vol. 99(2), pages 335-345, December.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Daziano, Ricardo A., 2015. "Inference on mode preferences, vehicle purchases, and the energy paradox using a Bayesian structural choice model," Transportation Research Part B: Methodological, Elsevier, vol. 76(C), pages 1-26.
    2. Gary Koop, 2004. "Modelling the evolution of distributions: an application to Major League baseball," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 167(4), pages 639-655, November.
    3. Ricardo A. Daziano & Martin Achtnicht, 2014. "Forecasting Adoption of Ultra-Low-Emission Vehicles Using Bayes Estimates of a Multinomial Probit Model and the GHK Simulator," Transportation Science, INFORMS, vol. 48(4), pages 671-683, November.
    4. Yiyi Wang & Kara Kockelman & Paul Damien, 2014. "A spatial autoregressive multinomial probit model for anticipating land-use change in Austin, Texas," The Annals of Regional Science, Springer;Western Regional Science Association, vol. 52(1), pages 251-278, January.
    5. Smith, Michael Stanley, 2015. "Copula modelling of dependence in multivariate time series," International Journal of Forecasting, Elsevier, vol. 31(3), pages 815-833.
    6. Osman Doğan & Süleyman Taşpinar, 2018. "Bayesian Inference in Spatial Sample Selection Models," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 80(1), pages 90-121, February.
    7. Dellaportas, Petros & Titsias, Michalis K. & Petrova, Katerina & Plataniotis, Anastasios, 2023. "Scalable inference for a full multivariate stochastic volatility model," Journal of Econometrics, Elsevier, vol. 232(2), pages 501-520.
    8. Mohamed Lachaab & Asim Ansari & Kamel Jedidi & Abdelwahed Trabelsi, 2006. "Modeling preference evolution in discrete choice models: A Bayesian state-space approach," Quantitative Marketing and Economics (QME), Springer, vol. 4(1), pages 57-81, March.
    9. Ricardo A. Daziano & Luis Miranda-Moreno & Shahram Heydari, 2013. "Computational Bayesian Statistics in Transportation Modeling: From Road Safety Analysis to Discrete Choice," Transport Reviews, Taylor & Francis Journals, vol. 33(5), pages 570-592, September.
    10. Munkin, Murat K. & Trivedi, Pravin K., 2003. "Bayesian analysis of a self-selection model with multiple outcomes using simulation-based estimation: an application to the demand for healthcare," Journal of Econometrics, Elsevier, vol. 114(2), pages 197-220, June.
    11. Daniels, M.J. & Pourahmadi, M., 2009. "Modeling covariance matrices via partial autocorrelations," Journal of Multivariate Analysis, Elsevier, vol. 100(10), pages 2352-2363, November.
    12. Zhang, Xiao & Boscardin, W. John & Belin, Thomas R., 2008. "Bayesian analysis of multivariate nominal measures using multivariate multinomial probit models," Computational Statistics & Data Analysis, Elsevier, vol. 52(7), pages 3697-3708, March.
    13. Roberto Leon-Gonzalez, "undated". "Data Augmentation in Limited-Dependent Variable Models," Discussion Papers 02/09, Department of Economics, University of York.
    14. Gael M. Martin & David T. Frazier & Ruben Loaiza-Maya & Florian Huber & Gary Koop & John Maheu & Didier Nibbering & Anastasios Panagiotelis, 2023. "Bayesian Forecasting in the 21st Century: A Modern Review," Monash Econometrics and Business Statistics Working Papers 1/23, Monash University, Department of Econometrics and Business Statistics.
    15. Li, Mingliang & Mumford, Kevin J. & Tobias, Justin L., 2012. "A Bayesian analysis of payday loans and their regulation," Journal of Econometrics, Elsevier, vol. 171(2), pages 205-216.
    16. Peter J. Danaher & Michael S. Smith, 2011. "Rejoinder--Estimation Issues for Copulas Applied to Marketing Data," Marketing Science, INFORMS, vol. 30(1), pages 25-28, 01-02.
    17. Moffa, Giusi & Kuipers, Jack, 2014. "Sequential Monte Carlo EM for multivariate probit models," Computational Statistics & Data Analysis, Elsevier, vol. 72(C), pages 252-272.
    18. Michael S. Smith & Shaun P. Vahey, 2016. "Asymmetric Forecast Densities for U.S. Macroeconomic Variables from a Gaussian Copula Model of Cross-Sectional and Serial Dependence," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 34(3), pages 416-434, July.
    19. Martin, Gael M. & Frazier, David T. & Maneesoonthorn, Worapree & Loaiza-Maya, Rubén & Huber, Florian & Koop, Gary & Maheu, John & Nibbering, Didier & Panagiotelis, Anastasios, 2024. "Bayesian forecasting in economics and finance: A modern review," International Journal of Forecasting, Elsevier, vol. 40(2), pages 811-839.
    20. Daziano, Ricardo A. & Achtnicht, Martin, 2012. "Forecasting adoption of ultra-low-emission vehicles using the GHK simulator and Bayes estimates of a multinomial probit model," ZEW Discussion Papers 12-017, ZEW - Leibniz Centre for European Economic Research.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:wly:jnljps:v:2025:y:2025:i:1:n:4744162. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Wiley Content Delivery (email available below). General contact details of provider: https://onlinelibrary.wiley.com/journal/5139 .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.