IDEAS home Printed from https://ideas.repec.org/a/hin/jnljps/4744162.html
   My bibliography  Save this article

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, Hindawi, vol. 2025, pages 1-9, July.
  • Handle: RePEc:hin:jnljps:4744162
    DOI: 10.1155/jpas/4744162
    as

    Download full text from publisher

    File URL: http://downloads.hindawi.com/journals/jps/2025/4744162.pdf
    Download Restriction: no

    File URL: http://downloads.hindawi.com/journals/jps/2025/4744162.xml
    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
    ---><---

    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:hin:jnljps: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.

    We have no bibliographic references for this item. You can help adding them by using 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: Mohamed Abdelhakeem (email available below). General contact details of provider: https://www.hindawi.com .

    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.