## Example 7.3: what a mess!

**A** rather obscure question on Metropolis-Hastings algorithms on X Validated ended up being about our first illustration in Introducing Monte Carlo methods with R. And exposing some inconsistencies in the following example… Example 7.2 is based on a [toy] joint Beta x Binomial target, which leads to a basic Gibbs sampler. We thought this was straightforward, but it may confuse readers who think of using Gibbs sampling for posterior simulation as, in this case, there is neither observation nor posterior, but simply a (joint) target in (x,θ).

And then it indeed came out that we had incorrectly written Example 7.3 on the [toy] Normal posterior, using at times a Normal mean prior with a [prior] variance scaled by the sampling variance and at times a Normal mean prior with a [prior] variance unscaled by the sampling variance. I am rather amazed that this did not show up earlier. Although there were already typos listed about that example.

March 6, 2017 at 5:23 pm

Hi,

First of all, thank you for your blog, is very refreshing to read it and be updated in many different and interesting topics. Second, I want to point out another errata in the foot note of Figure 3.6 page 78 of IMCM with R, I believe it must say “down left/right” in the 3rd and 4rd reference to figures. See you in ISBA!, best wishes!

November 13, 2016 at 5:51 am

[…] Please comment on the article here: R – Xi’an’s Og […]