# Metropolis–Hastings 算法

**Metropolis–Hastings 算法**是一种马尔可夫链蒙特卡洛（MCMC）方法：它从一个仅已知到归一化常数为止的概率分布中抽取近似样本，其做法是构造一条马尔可夫链，每一步的候选状态从任意分布中提议，并以一个使目标分布保持不变的概率接受或拒绝。它是现成的默认 MCMC 方案，尽管很少能达到最优收敛速率；只要保持可逆性，它也可以与其他 MCMC 核混合使用。<sup>[1](https://ar5iv.labs.arxiv.org/html/1504.01896)</sup>

| 关键事实 | 详情 |
|---|---|
| 接受规则 | 以概率 \( \rho(x,y) = \min\{\tilde{\pi}(y)/\tilde{\pi}(x) \cdot q(x \mid y)/q(y \mid x),\ 1\} \) 接受从 \( x \) 到 \( y \) 的提议移动，其中 \( \tilde{\pi} \) 是未归一化的目标分布，\( q \) 是提议分布。<sup>[1](https://ar5iv.labs.arxiv.org/html/1504.01896)</sup> |
| 对称情形 | 当提议分布对称时，\( q \) 比值为 1，规则退化为 Metropolis 比值 \( \min\{\tilde{\pi}(y)/\tilde{\pi}(x), 1\} \)。<sup>[1](https://ar5iv.labs.arxiv.org/html/1504.01896)</sup> |
| 调参规则 | 对于乘积型目标上的随机游走 Metropolis，随着维度增长，最优接受率为 0.234，最优尺度参数为 \( \ell = 2.38/\sqrt{I} \)（因此逐坐标的提议标准差为 \( \ell/\sqrt{d} \)）。<sup>[2](https://probability.ca/jeff/ftpdir/handbookart.pdf)</sup> |
| 维度缩放 | 收敛时间按 \( O(d) \) 增长，效率按 \( O(1/d) \) 递减；若每次迭代的成本为 \( O(d) \)，则总体复杂度为 \( O(d^2) \)。<sup>[3](https://math.pku.edu.cn/teachers/xirb/Courses/QR2013/ReadingForFinal/MCMC/euclid.ss.1015346320.pdf)</sup> |
| 历史 | 由 Metropolis、Rosenbluth、Rosenbluth、Teller 和 Teller（1953）在《化学物理杂志》（第 1087–1092 页）上提出，运行于 MANIAC 计算机；Hastings（1970）将其推广到非对称提议。<sup>[4](https://pubs.aip.org/aip/jcp/article/21/6/1087/202680/Equation-of-State-Calculations-by-Fast-Computing)</sup><sup> • </sup><sup>[5](https://probability.ca/hastings/hastings.pdf)</sup> |
| 有效样本量 | Hastings 的自相关结果定义了 ESS \( = M/[1 + 2\sum_l \rho_l] \)，将抽取样本的自相关与估计效率联系起来。<sup>[6](https://www.monash.edu/business/ebs/research/publications/ebs/wp14-2022.pdf)</sup> |
| 现代比较 | 一项 2025 年的基准测试发现，传统 MCMC 和切片采样在低维下表现出色，但在较高维下效率下降，而 HMC 以更高的计算成本在各类维度下保持稳定表现。<sup>[7](https://arxiv.org/html/2501.06022)</sup> |

## 算法

每一步中，处于状态 \( x \) 的链从提议密度 \( q(y \mid x) \) 中抽取一个候选 \( y \)，然后以概率 \( \rho(x,y) \) 接受该移动，否则停留在 \( x \)。接受概率为

\[ \rho(x,y) = \min\left\{ \frac{\tilde{\pi}(y)}{\tilde{\pi}(x)} \cdot \frac{q(x \mid y)}{q(y \mid x)},\ 1 \right\}, \]

其中 \( \tilde{\pi} \) 表示已知到归一化常数为止的目标密度。<sup>[1](https://ar5iv.labs.arxiv.org/html/1504.01896)</sup> TensorFlow Probability 的实现将同一计算显式写为 \( \mathrm{accept\_prob}(x' \mid x) = p(x')/p(x) \cdot g(x \mid x')/g(x' \mid x) \)，当提议分布对称时修正项取 0。<sup>[8](https://github.com/tensorflow/probability/blob/v0.23.0/tensorflow_probability/python/mcmc/metropolis_hastings.py)</sup>

**为什么归一化常数会消去。** 比值 \( \tilde{\pi}(y)/\tilde{\pi}(x) \) 只涉及未归一化的目标，因此任何用作 \( \tilde{\pi} \) 除数的常数因子都会同时出现在分子和分母中并消去。<sup>[1](https://ar5iv.labs.arxiv.org/html/1504.01896)</sup>

**q 比值修正。** 因子 \( q(x \mid y)/q(y \mid x) \) 修正提议中的非对称性：如果从 \( x \) 提议 \( y \) 比反向更可能，接受概率就相应降低。与原始 Metropolis 算法不同，Hastings 的提议转移不必对称。<sup>[9](http://www-stat.wharton.upenn.edu/~steele/Courses/900/Library/MCMCHistory.pdf)</sup> 当 \( q(y \mid x) \) 关于 \( x \) 和 \( y \) 对称时，如在随机游走 Metropolis 中，比值简化为 \( \min\{\tilde{\pi}(y)/\tilde{\pi}(x), 1\} \)，与提议分布无关。<sup>[1](https://ar5iv.labs.arxiv.org/html/1504.01896)</sup><sup> • </sup><sup>[10](https://bookdown.org/rdpeng/advstatcomp/metropolis-hastings.html)</sup>

## 为什么有效

该算法通过满足可逆性（细致平衡）条件来构造一个不变分布为目标分布的转移核，该条件令从 \( x \) 移动到 \( y \) 的无条件概率等于从 \( y \) 移动到 \( x \) 的无条件概率。<sup>[11](https://www.stat.cmu.edu/~brian/463-2012/week11/chib-greenberg-1995.pdf)</sup> 在不可约性和非周期性的温和条件下，收敛到该不变分布成立；当提议分布在与目标相同的支撑集上具有正密度时，这些条件通常得到满足。<sup>[11](https://www.stat.cmu.edu/~brian/463-2012/week11/chib-greenberg-1995.pdf)</sup> 不可约性意味着无论初始值如何，链最终都能到达状态空间的任何区域。<sup>[1](https://ar5iv.labs.arxiv.org/html/1504.01896)</sup>

这些条件保证收敛，但不决定收敛速率，因此初始样本要丢弃多少（预热期）以及链要运行多久都是经验问题。Gelman 和 Rubin（1992）提出从分散的初始值启动多条链，并比较链内和链间变异。<sup>[11](https://www.stat.cmu.edu/~brian/463-2012/week11/chib-greenberg-1995.pdf)</sup> 只有在链经过暂态阶段、固定起始值的影响变得可忽略之后，抽取的样本才被视为来自目标分布的样本。<sup>[11](https://www.stat.cmu.edu/~brian/463-2012/week11/chib-greenberg-1995.pdf)</sup> 在一般状态空间上已有几何遍历性和一致遍历性的充分条件，这也是 MCMC 成为从复杂高维分布中近似采样的标准方法的部分原因。<sup>[12](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2F154957804100000024&isResultClick=False)</sup>

## 调参与诊断

**提议尺度。** 实用规则是调整提议尺度，使接受率大致为 23.4%；即使其背后的形式假设不成立，该规则通常也近乎最优。<sup>[13](https://ssc.ca/sites/default/files/data/Members/public/Publications/BookFiles/Book/93-108.pdf)</sup> 更简单的经验法则是选择尺度，使接受率远离 0 和 1。<sup>[2](https://probability.ca/jeff/ftpdir/handbookart.pdf)</sup> Gelman、Roberts 和 Gilks 给出了等价的启发式：目标平均接受率约为 1/4。<sup>[14](https://stat.columbia.edu/~gelman/research/published/baystat5.pdf)</sup>

**0.234 究竟说明了什么。** 这个精确值来自一个极限定理：在目标可分解为独立同分布分量、提议为 \( N(0, \ell^2 I_d/d) \) 的严格限制性假设下，Roberts 等人（1997）证明当 \( d \to \infty \) 时最优接受率为 0.234，最优尺度参数为 \( \ell = 2.38/\sqrt{I} \)，逐坐标提议标准差为 \( \ell/\sqrt{d} \)，其中 \( I \) 是对数密度导数的方差，衡量目标的粗糙程度（对于高斯目标，\( I \) 是方差的倒数）。<sup>[2](https://probability.ca/jeff/ftpdir/handbookart.pdf)</sup><sup> • </sup><sup>[3](https://math.pku.edu.cn/teachers/xirb/Courses/QR2013/ReadingForFinal/MCMC/euclid.ss.1015346320.pdf)</sup> 该调参规则是在目标可分解为 \( \pi(\theta) = \prod_{i=1}^d f(\theta_i) \) 的假设下推导的，因此相关目标不在定理覆盖范围内，尽管该规则在实践中通常仍然表现良好。<sup>[15](https://link.springer.com/article/10.1007/s11222-022-10080-8)</sup>

**诊断混合不良。** 有效样本量对名义抽取次数按自相关进行校正：\( \tau_T = T/\kappa(h) \)，其中 \( \kappa(h) \) 是与函数值序列相关的自相关；可通过 R 库 coda 中的 spectrum0 和 effectiveSize 计算。<sup>[1](https://ar5iv.labs.arxiv.org/html/1504.01896)</sup> Hastings 利用时间序列理论形式化了 MCMC 估计的标准误，首次将抽取样本中的自相关与估计效率联系起来。<sup>[6](https://www.monash.edu/business/ebs/research/publications/ebs/wp14-2022.pdf)</sup>

## 数据一览

最优接受率取决于采样器，而不仅仅是目标：<sup>[2](https://probability.ca/jeff/ftpdir/handbookart.pdf)</sup><sup> • </sup><sup>[16](https://link.springer.com/article/10.1007/s42081-026-00369-7)</sup>

| 采样器 | 最优缩放 | 最优接受率 |
|---|---|---|
| 随机游走 Metropolis | \( \sigma = \ell/\sqrt{d} \) | 0.234 |
| MALA 和 Barker | \( \sigma = \ell/d^{1/6} \) | 0.574 |
| HMC | \( \sigma = \ell/d^{1/8} \) | 0.651 |
| 伪边缘 MCMC | \( \sigma = \ell/d^{1/2} \) | 0.007 |

0.234 的结果已推广到离散超立方体、并行回火的逆温过程以及块独立同分布目标。<sup>[2](https://probability.ca/jeff/ftpdir/handbookart.pdf)</sup> 对于乘积型目标上的随机游走 Metropolis，收敛时间随维度按 \( O(d) \) 增长，等价地效率为 \( O(1/d) \)；若每次迭代计算为 \( O(d) \)，则总体复杂度为 \( O(d^2) \)。<sup>[3](https://math.pku.edu.cn/teachers/xirb/Courses/QR2013/ReadingForFinal/MCMC/euclid.ss.1015346320.pdf)</sup>

## 与其他 MCMC 采样器的比较

**Gibbs 采样。** Metropolis-within-Gibbs 按条件更新各分量，会在分量之间引入更高的相关性，意味着收敛缓慢，极端情况下完全不收敛；在高维中进行随机游走校准也可能变得难以驾驭。<sup>[1](https://ar5iv.labs.arxiv.org/html/1504.01896)</sup>

**切片采样。** 切片采样器引入辅助变量 \( y \)，联合密度为 \( f(x,y) = \mathbf{1}\{0 \le y \le \pi(x)\} \)，无需用户特定调参，因此有潜力成为通用软件；它有助于在多峰密度中在不同模态之间跳跃，但当 \( \pi \) 非常曲折或维度很高时会变得困难。<sup>[10](https://bookdown.org/rdpeng/advstatcomp/metropolis-hastings.html)</sup><sup> • </sup><sup>[17](https://web.maths.unsw.edu.au/~yanan/monte.pdf)</sup> 通过协方差序的理论比较表明，hit-and-run 采样器和简单切片采样器比懒惰随机游走 Metropolis 采样器更高效。<sup>[18](https://www.cambridge.org/core/journals/journal-of-applied-probability/article/abs/comparison-of-hitandrun-slice-sampler-and-random-walk-metropolis/9E32DA02A6E30F0D405C4D1115759BD3)</sup>

**HMC 和 NUTS。** Stan 的 NUTS 算法动态调整蛙跳步数，以最大化期望平方跳跃距离，并避免在随机游走 Metropolis 或 Gibbs 采样器中因后验相关性而出现的随机游走行为；HMC 和 NUTS 链往往自相关低，并快速收敛到概率质量的主体。<sup>[19](https://mc-stan.org/docs/reference-manual/mcmc.html)</sup> MathWorks 文档同样指出，Metropolis-Hastings 和切片采样在中高维问题中可能混合缓慢，并建议在那里使用基于梯度的 HMC。<sup>[20](https://www.mathworks.com/help/stats/representing-sampling-distributions-using-markov-chain-samplers.html)</sup> 一项 2025 年的基准测试比较了 Metropolis–Hastings、HMC、切片采样、dynesty 和 PolyChord，发现传统 MCMC 和切片采样在低维下表现出色，但在较高维下效率下降，而 HMC 以更高的计算成本在各类维度下（包括 Rosenbrock 分布上）保持稳定表现；嵌套采样器在多峰问题上表现出更高的可靠性。<sup>[7](https://arxiv.org/html/2501.06022)</sup> 一篇比较综述建议，随机游走 Metropolis–Hastings 调至约 0.234 的接受率，专门用于块更新高度相关的参数；拒绝采样仅在一维或二维且具有良好包络函数时使用。<sup>[17](https://web.maths.unsw.edu.au/~yanan/monte.pdf)</sup>

## 变体与扩展

**独立采样器。** 提议 \( q(y \mid x) = q(y) \) 不依赖于当前状态，接受比有所修改；它在相对低维、拒绝采样可能合理的问题中表现良好。<sup>[10](https://bookdown.org/rdpeng/advstatcomp/metropolis-hastings.html)</sup>

**自适应 Metropolis。** Haario 等人（2001）的自适应 Metropolis（AM）算法是第一个自适应 MCMC 算法；它递归地估计目标协方差矩阵并将其用于随机游走提议，这与最优缩放发现一致：提议协方差与目标协方差成比例可产生良好的混合。<sup>[21](https://doi.org/10.1214/26-ejp1509)</sup> 后来的自适应策略包括通过接受率调整提议尺度、将尺度自适应与协方差学习相结合、延迟拒绝、自适应并行回火温度以及强化学习学到的提议。<sup>[21](https://doi.org/10.1214/26-ejp1509)</sup> 自适应方案可能无法保持平稳性，但如果自适应满足某些条件，平稳性就得到保证；在数百维的测试问题和统计遗传学中已证明有显著加速。<sup>[2](https://probability.ca/jeff/ftpdir/handbookart.pdf)</sup> 自适应 MCMC 的动机在于：最优调参参数依赖于可能难以计算的目标性质，而糟糕的调参会导致不可靠的估计。<sup>[22](https://www.cambridge.org/core/journals/journal-of-applied-probability/article/weak-convergence-of-adaptive-markov-chain-monte-carlo/13EBEA770165F612F60FB2AC570B1B44)</sup>

**并行回火。** 0.234 最优接受率分析可推广到并行回火的逆温过程（Atchadé 等，2011）。<sup>[2](https://probability.ca/jeff/ftpdir/handbookart.pdf)</sup>

## 历史与应用

1953 年 Metropolis、Rosenbluth、Rosenbluth、Teller 和 Teller 在《化学物理杂志》第 1087–1092 页发表的论文，描述了构型空间上的一种改进蒙特卡洛积分，应用于洛斯阿拉莫斯 MANIAC 计算机上的二维刚性球系统。<sup>[4](https://pubs.aip.org/aip/jcp/article/21/6/1087/202680/Equation-of-State-Calculations-by-Fast-Computing)</sup> 该算法一次移动一个粒子而非全部一起移动，使其看起来像一种原始的 Gibbs 采样器，并通过不可约性（作者称之为遍历性）和收敛到平稳分布确立了有效性。<sup>[23](https://archived.stat.ufl.edu/casella/Papers/MCMCHistory.pdf)</sup>

Hastings 1970 年的论文提出了 1953 年方法的推广，以及相关理论、应用技术和评估蒙特卡洛估计误差的方法。<sup>[5](https://probability.ca/hastings/hastings.pdf)</sup> 他将算法提炼至数学本质，演示了从标准分布以及正交矩阵群等设定中采样，并主张在其余元素给定的条件下一次更新参数向量中的一个（或几个）元素，为后来的贝叶斯 MCMC 算法提供了关键要素。<sup>[9](http://www-stat.wharton.upenn.edu/~steele/Courses/900/Library/MCMCHistory.pdf)</sup><sup> • </sup><sup>[6](https://www.monash.edu/business/ebs/research/publications/ebs/wp14-2022.pdf)</sup> 该论文的重要性并未立即被理解；认可要等到二十年后 Gelfand 和 Smith 的工作。<sup>[9](http://www-stat.wharton.upenn.edu/~steele/Courses/900/Library/MCMCHistory.pdf)</sup> 20 世纪 70 年代，空间统计学家部分受 Hastings（1970）以及 Hammersley 和 Clifford 的启发，为统计推断开发了 MCMC。<sup>[24](https://imsarchives.nus.edu.sg/oldwww/Programs/mcmc/files/besag_tl.pdf)</sup>

20 世纪 90 年代初，研究人员发现 Gibbs 或 Metropolis–Hastings 算法几乎能解决他们考察的任何问题，于是涌现大量论文，将 MCMC 应用于此前难以处理的模型，包括线性混合模型、广义线性混合模型、通过潜变量构建的概率单位模型和混合模型；应用包括变点分析、基因组学、捕获–再捕获、回归中的变量选择、空间统计和纵向研究。<sup>[23](https://archived.stat.ufl.edu/casella/Papers/MCMCHistory.pdf)</sup>

## 近期进展

一篇 2024–2025 年的 Metropolis–Hastings 算法收敛速率综述，围绕高维收敛、恰当调参、初始化和当前收敛分析的局限性，勾勒了最新分析框架。<sup>[25](https://dlnext.acm.org/doi/10.1002/wics.70002)</sup> 在理论方面，新的通用条件确立了自适应 MCMC 过程的弱收敛，蕴含了有界 Lipschitz 函数的弱大数定律，并推广到 Wasserstein 距离；全变差收敛越来越被认为不足以应对高维目标。<sup>[22](https://www.cambridge.org/core/journals/journal-of-applied-probability/article/weak-convergence-of-adaptive-markov-chain-monte-carlo/13EBEA770165F612F60FB2AC570B1B44)</sup> 2024 年 11 月的一篇论文证明了在任何自适应策略下自适应 MCMC 次几何收敛的一般下界，并在自适应衰减足够快时给出匹配的上界，应用于具有独立提议和随机游走提议的自适应 Metropolis–Hastings。<sup>[26](https://ar5iv.labs.arxiv.org/html/2411.17084)</sup>

基于学习的调参已经到来：一种 2025 年的强化学习方法构造了无梯度自适应 Metropolis–Hastings 采样器，在 PosteriorDB 基准中约 90% 的任务上优于流行的无梯度自适应 MH 算法，同时确保遍历性条件得到满足；同一系列工作将 Metropolis–Hastings 表述为马尔可夫决策过程，将采样器调参本身视为一项学习任务。<sup>[27](https://proceedings.mlr.press/v258/wang25b.html)</sup><sup> • </sup><sup>[28](https://proceedings.mlr.press/v300/wang26a.html)</sup> 在并行计算方面，延迟调整并行采样器（LAPS）最初执行未调整采样，然后开启 Metropolis–Hastings 调整以实现精细收敛，使用等分作为收敛度量来决定何时切换，并指出分裂 R̂ 统计量（Margossian 等，2024）作为替代度量；该方法与退火和并行回火兼容。<sup>[29](https://raw.githubusercontent.com/mlresearch/v300/main/assets/robnik26a/robnik26a.pdf)</sup>

## References

1. [Robert & Casella, The Metropolis–Hastings algorithm (survey)](https://ar5iv.labs.arxiv.org/html/1504.01896)
2. [Roberts & Rosenthal, Optimising and Adapting Metropolis (handbook chapter)](https://probability.ca/jeff/ftpdir/handbookart.pdf)
3. [Roberts & Rosenthal, Optimal Scaling for Various Metropolis-Hastings Algorithms, Statistical Science](https://math.pku.edu.cn/teachers/xirb/Courses/QR2013/ReadingForFinal/MCMC/euclid.ss.1015346320.pdf)
4. [Metropolis, Rosenbluth, Rosenbluth, Teller & Teller (1953), Equation of State Calculations by Fast Computing Machines, J. Chem. Phys. 21, 1087–1092](https://pubs.aip.org/aip/jcp/article/21/6/1087/202680/Equation-of-State-Calculations-by-Fast-Computing)
5. [Hastings (1970), Monte Carlo sampling methods using Markov chains and their applications](https://probability.ca/hastings/hastings.pdf)
6. [Computing Bayes: From Then 'Til Now (Monash working paper)](https://www.monash.edu/business/ebs/research/publications/ebs/wp14-2022.pdf)
7. [A comprehensive comparison of MCMC sampling methods (arXiv 2501.06022, 2025)](https://arxiv.org/html/2501.06022)
8. [tensorflow_probability metropolis_hastings.py source, v0.23.0](https://github.com/tensorflow/probability/blob/v0.23.0/tensorflow_probability/python/mcmc/metropolis_hastings.py)
9. [The Evolution of Markov Chain Monte Carlo Methods (Wharton review essay)](http://www-stat.wharton.upenn.edu/~steele/Courses/900/Library/MCMCHistory.pdf)
10. [Roger Peng, Advanced Statistical Computing, §7.2 Metropolis-Hastings](https://bookdown.org/rdpeng/advstatcomp/metropolis-hastings.html)
11. [Chib & Greenberg (1995), Understanding the Metropolis-Hastings Algorithm, The American Statistician](https://www.stat.cmu.edu/~brian/463-2012/week11/chib-greenberg-1995.pdf)
12. [General state space Markov chains and MCMC algorithms (Project Euclid survey)](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2F154957804100000024&isResultClick=False)
13. [Rosenthal, Optimizing and Adapting the Metropolis Algorithm (SSC book chapter)](https://ssc.ca/sites/default/files/data/Members/public/Publications/BookFiles/Book/93-108.pdf)
14. [Gelman, Roberts & Gilks, Efficient Metropolis jumping rules, Bayesian Statistics 5](https://stat.columbia.edu/~gelman/research/published/baystat5.pdf)
15. [Optimal scaling of random walk Metropolis algorithms using Bayesian large-sample asymptotics, Statistics and Computing (2022)](https://link.springer.com/article/10.1007/s11222-022-10080-8)
16. [On randomized step sizes in Metropolis–Hastings algorithms, Japanese Journal of Statistics and Data Science](https://link.springer.com/article/10.1007/s42081-026-00369-7)
17. [Monte Carlo Techniques for Bayesian Statistical Inference – A comparative review](https://web.maths.unsw.edu.au/~yanan/monte.pdf)
18. [Comparison of hit-and-run, slice sampler and random walk Metropolis, Journal of Applied Probability](https://www.cambridge.org/core/journals/journal-of-applied-probability/article/abs/comparison-of-hitandrun-slice-sampler-and-random-walk-metropolis/9E32DA02A6E30F0D405C4D1115759BD3)
19. [Stan Reference Manual — MCMC Sampling](https://mc-stan.org/docs/reference-manual/mcmc.html)
20. [MathWorks, Representing Sampling Distributions Using Markov Chain Samplers](https://www.mathworks.com/help/stats/representing-sampling-distributions-using-markov-chain-samplers.html)
21. [An invitation to adaptive Markov chain Monte Carlo convergence theory](https://doi.org/10.1214/26-ejp1509)
22. [Weak convergence of adaptive Markov chain Monte Carlo, Journal of Applied Probability](https://www.cambridge.org/core/journals/journal-of-applied-probability/article/weak-convergence-of-adaptive-markov-chain-monte-carlo/13EBEA770165F612F60FB2AC570B1B44)
23. [Casella, George & Robert, A Short History of Markov Chain Monte Carlo](https://archived.stat.ufl.edu/casella/Papers/MCMCHistory.pdf)
24. [Besag, Markov Chain Monte Carlo Methods for Statistical Inference (lecture notes)](https://imsarchives.nus.edu.sg/oldwww/Programs/mcmc/files/besag_tl.pdf)
25. [Convergence rates of Metropolis–Hastings algorithms, WIREs Computational Statistics](https://dlnext.acm.org/doi/10.1002/wics.70002)
26. [Upper and lower bounds on the subgeometric convergence of adaptive MCMC (arXiv 2411.17084, 2024)](https://ar5iv.labs.arxiv.org/html/2411.17084)
27. [Reinforcement Learning for Adaptive MCMC, PMLR v258 (2025)](https://proceedings.mlr.press/v258/wang25b.html)
28. [Harnessing the Power of Reinforcement Learning for Adaptive MCMC, PMLR v300](https://proceedings.mlr.press/v300/wang26a.html)
29. [Faster Parallel MCMC: Metropolis Adjustment Is Best Served Warm (LAPS), PMLR v300](https://raw.githubusercontent.com/mlresearch/v300/main/assets/robnik26a/robnik26a.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Bayesian statistics › Bayesian computation and software › Markov chain Monte Carlo for Bayes › Metropolis–Hastings and random-walk samplers

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/metropolis-hastings-algorithm

English original: https://www.edgepedia.org/metropolis-hastings-algorithm
