An obscure integral
Here is an email from Thomas I received yesterday about a computation in our book Introducing Monte Carlo Methods with R:
I’m currently reading your book “Introduction to Monte Carlo Methods with R” and I quite highly appreciate your work. I’m not able to see how the integral on page 74, that describes the marginal likelihood, simplifies to the fraction on the second line. If I’m not asking too much, could you confirm to me whether the fraction is as is given in the text.
Because the transform of the integral
into the ratio of two integrals
may sound curious (and possibly wrong) to many readers besides Thomas, let me explain that the bottom integral is the normalisation constant of the prior
while the top integral is the product of the observation density:
and of the prior (minus the normalisation constant). Nothing wrong then with the formula at the bottom of page 74, but this is a bit short on explanations! On the other hand, the top of page 75 is missing an x(1-x) (and so does the R code below… See this post.)
July 2, 2010 at 10:53 pm
The middle part of p. 75 (two lines or R-code) does not work.
Error message: Error in a[, 1] : incorrect number of dimesions
April 8, 2010 at 11:13 am
Hi,
The readility of blog is very low!!! Not able to see equations properly ..