CosmoMC: special prior

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Zhuangfei Wang
Posts: 27
Joined: October 09 2021
Affiliation: Simon Fraser University

CosmoMC: special prior

Post by Zhuangfei Wang » October 15 2022

Hello:
I have a question about how to set some special prior in CosmoMC. For example, I'd like to prescribe two input parameters to always obey such relation: para1>para2, so that the value pairs that don't satisfy this prior will be filtered out, even if a large flat range is preset for both parameters. Is it possible to implement it? I know about flat priors or setting limits in .ini for single-end parameters, but I am not sure how to set more complicated prior as described above. Thanks a lot.


Zhuangfei Wang
Posts: 27
Joined: October 09 2021
Affiliation: Simon Fraser University

Re: CosmoMC: special prior

Post by Zhuangfei Wang » October 16 2022

Thanks for your reply. It seems to be easy in Cobaya by checking the docs. Just wondering if it is doable in CosmoMC?

Antony Lewis
Posts: 1842
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CosmoMC: special prior

Post by Antony Lewis » October 16 2022

Yes, you'll have to change the code calculating the prior and recompile (search the code for prior).

Post Reply