Page 1 of 1

how to add BAO likelihood to COSMOMC

Posted: November 26 2008
by kumar pandey
Hi There,
I am new to CosmoMC, but it looks great!
I have been asked to reproduce WMAP5 + BAO results (Percival et al 2007).
My only problem is that i am not sure in which form i have to include the likelihood.

Let me explain my problem: -2lnL = X^-1 V^-1 X

Now when i add this to calclike.f90 i have

if (use_percival)
GetLogLikePost = GetLogLikePost + X^-1 V^-1 X
end if

Is it correct? Or i have to use X^-1 V^-1 X /2


Looking forward to hearing from you :)

how to add BAO likelihood to COSMOMC

Posted: May 05 2009
by Adam Mantz
calclike sums the -lnL, not -2lnL, so the second form you wrote is the right one to use.