Conditional distribution for the filtering problem is obtained by means of the Metropolis-Hastings algorithm MCMC.