Markov Chain Monte Carlo Method MCMC
Date
Metropolis-Hastings sampling
1: Initialize the initial state of the Markov chain
2: Sample the following process of cycle
- At the
moment, the state of the Markov chain is
, and the sampling
- Sampling from a uniform distribution
- If
, that is,
- Otherwise, the transfer is not accepted, that is,
Gibbs Sampling
1: Randomly initialize
2: Cyclic sampling of
References
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.