Markov chain Monte Carlo sampling
Taken from coursework for ECE 7751: Graphical Models in Machine Learning, taught by Faramarz Fekri at Georgia Tech, Spring 2023
Inverse CDF sampling
A simple sampling method adopted by many of the standard math libraries is the inverse probability transform: draw
Solution
We let
Showing that
So,
And we’re done.
The drawback is that we do not always have the inverse CDF in an analytically tractable form; hence, the need for methods like Markov chain Monte Carlo (MCMC).
Combining multiple stationary distributions
Show that if both transition kernels
In the continuous case, the cyclic kernel can be defined as composition of functions:
Solution
Cyclic sampling
Discrete
We let
Continuous
Sampling with a mixture of kernels
Discrete
Continuous
Metropolis-Hastings sampling produces a stationary distribution equal to the target
Recall MH sampling for target distribution
where
Consider both continuous and discrete cases.
Solution
We will show that the detailed balance equation
This holds for both continuous (
When
When
Though
Gibbs sampling produces a stationary distribution equal to the target
Recall Gibbs sampling for target distribution
Solution
Again, we prove that the detailed balance equation holds; in the case of Gibbs case, it is
where
We start with the left side and show it is equal to the right: