I have not be able to find clear answers to the following two questions regarding MCMC:
If I were to evaluate the expected value (more generally, expected value of a function) of a target distribution using MCMC, my first thought of the procedure would be as follows:
- given a Markov chain with the target distribution being its equilibrium distribution, I simulate many times, say N, the chain up to a predefined number of steps, say K. In each simulation, the output is a sample of X_K. So my total sample will be X^(1)_K, X^(2)_K,..,X^(N)_K.
-Then, I averaged the sample above to obtain the expected value estimate
Is this what actually being done in practice?
- Can someone provide an example situation where MCMC is a better simulation method to use than the conventional MC (simulate many independent samples from the distribution).
Thanks
TW