 When this is not the case Hastings corrections are applied.The aim of Metropolis-Hastings algorithm is to produce a collection of states with a determined distribution until the Markov process reaches a stationary distribution.The algorithm has two components