Markov chain Monte Carlo is an important technique used by Bayesian practitioners to sample from the posterior distribution. The Monte Carlo method is, in general terms, any technique used for obtaining solutions to deterministic problems using random numbers. The term Monte Carlo was coined by von Neumann and Ulam in the 1940's in the context of such problems [34].
A simple example of this [25] is the evaluation of the following integral;
Analytical solution of the above is difficult, but Monte Carlo simulation proposes the following;
Observe that the above is the standard estimator for . In
practice, many of the values of interest are expected values.
To obtain posterior expectations of a function of our parameter,
, we need to calculate integrals of the type
It is possible to use the above idea of Monte Carlo methods, importance sampling, together with some Markov Chain theory, to efficiently approximate such expressions. Some theory is outlined below.