This is a note about the Markov Chain Monte Carlo (MCMC), which covers the rejected sampling, importance sampling, Metropolis-Hastings, and Gibbs sampling. You could find my note here: MCMC.