how to add BAO likelihood to COSMOMC

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
kumar pandey
Posts: 3
Joined: November 26 2008
Affiliation: Inter University Centre for Astronomy and Astrophysics

how to add BAO likelihood to COSMOMC

Post by kumar pandey » November 26 2008

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 :)

Adam Mantz
Posts: 6
Joined: December 07 2007
Affiliation: NASA/GSFC

how to add BAO likelihood to COSMOMC

Post by Adam Mantz » May 05 2009

calclike sums the -lnL, not -2lnL, so the second form you wrote is the right one to use.

Post Reply