CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

gaussian prior on baryon density in cosmomc
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Susana Landau



Joined: 10 Dec 2004
Posts: 18
Affiliation: Buenos Aires University

PostPosted: August 27 2008  Reply with quote

I want to run cosmomc with a gaussian prior on the baryon density from BBN. However, I can not find any information where and how to include this prior in cosmomc.

I appreciate much any help

regards

Susana
Back to top
View user's profile [ Hidden ]
Antony Lewis



Joined: 23 Sep 2004
Posts: 675
Affiliation: University of Sussex

PostPosted: August 27 2008  Reply with quote

use_BBN=T in the input .ini file. Change the actual prior used in calc_like.f90:GetLogLikePost.
Back to top
View user's profile [ Hidden ] Visit poster's website
Susana Landau



Joined: 10 Dec 2004
Posts: 18
Affiliation: Buenos Aires University

PostPosted: September 05 2008  Reply with quote

Thanks Antony for your quick answer, I have still two questions

1) is it also neccesary to run getdist with the option:

adjust_priors=T

and modify the getdist.f90 ???

2) if I want to set a gaussian prior on omega_CDM, should I modify the file calc_like.f90 the subroutine GetLogLikePost in a similar way that is done for omegab?

thanks a lot

Susana
Back to top
View user's profile [ Hidden ]
Antony Lewis



Joined: 23 Sep 2004
Posts: 675
Affiliation: University of Sussex

PostPosted: September 05 2008  Reply with quote

Whether you can get reliable results just using importance sampling (adjust priors in GetDist), depends on what effect your constraint has. Importance sampling only works well when the effect is not that large and the contraint is consistent with the other data. If importance sampling doesn't work reliably you can indeed run chains by adjusting the likelihood accordingly.
Back to top
View user's profile [ Hidden ] Visit poster's website
Susana Landau



Joined: 10 Dec 2004
Posts: 18
Affiliation: Buenos Aires University

PostPosted: September 06 2008  Reply with quote

thanks Antony again,

I still have another doubt, when running cosmomc with the gaussian prior on omegab, i first tried the standard value in cosmomc omegabh2=0.022 ± 0.002. However, when plotting the chains, I see that omegabh2 takes values between 0.023 and 0.025, which are not those indicated by the prior. ,
Am I doing something wrong while running cosmomc? Should omegabh2 take only values between 0.0020 and 0.0024?

thanks a lot again for your quick answers

[/img]
Back to top
View user's profile [ Hidden ]
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.