A categorical account of the Metropolis-Hastings algorithm

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Cornish, Rob, Wang, Andi Q.
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911411048808448
author Cornish, Rob
Wang, Andi Q.
author_facet Cornish, Rob
Wang, Andi Q.
contents Metropolis-Hastings (MH) is a foundational Markov chain Monte Carlo (MCMC) algorithm. In this paper, we ask whether it is possible to formulate and analyse MH in terms of categorical probability, using a recent involutive framework for MH-type procedures as a concrete case study. We show how basic MCMC concepts such as invariance and reversibility can be formulated in Markov categories, and how one part of the MH kernel can be analysed using standard CD categories. To go further, we then study enrichments of CD categories over commutative monoids. This gives an expressive setting for reasoning abstractly about a range of important probabilistic concepts, including substochastic kernels, finite and $σ$-finite measures, absolute continuity, singular measures, and Lebesgue decompositions. Using these tools, we give synthetic necessary and sufficient conditions for a general MH-type sampler to be reversible with respect to a given target distribution.
format Preprint
id arxiv_https___arxiv_org_abs_2601_22911
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle A categorical account of the Metropolis-Hastings algorithm
Cornish, Rob
Wang, Andi Q.
Computation
Category Theory
Probability
Metropolis-Hastings (MH) is a foundational Markov chain Monte Carlo (MCMC) algorithm. In this paper, we ask whether it is possible to formulate and analyse MH in terms of categorical probability, using a recent involutive framework for MH-type procedures as a concrete case study. We show how basic MCMC concepts such as invariance and reversibility can be formulated in Markov categories, and how one part of the MH kernel can be analysed using standard CD categories. To go further, we then study enrichments of CD categories over commutative monoids. This gives an expressive setting for reasoning abstractly about a range of important probabilistic concepts, including substochastic kernels, finite and $σ$-finite measures, absolute continuity, singular measures, and Lebesgue decompositions. Using these tools, we give synthetic necessary and sufficient conditions for a general MH-type sampler to be reversible with respect to a given target distribution.
title A categorical account of the Metropolis-Hastings algorithm
topic Computation
Category Theory
Probability
url https://arxiv.org/abs/2601.22911