Metropolis–Hastings algorithm

algorithm