diff of two parameters

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Minu Joy
Posts: 3
Joined: October 01 2006
Affiliation: IUCAA

diff of two parameters

Post by Minu Joy » January 26 2009

Hi,

If i have two free parameters n1 and n2 (i am varying both and getting the marginalised probabilities for each separately), can i get the probability of (n1 -n2)? ie, the prob. distribution for the difference of two parameters n1 and n2? Is it possible to obtain this from the chains for n1 and n2?

Thanks in advance!

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

Re: diff of two parameters

Post by Antony Lewis » January 26 2009

Yes, just define a new parameter and marginalize as normal.

In CosmoMC, write your re-mapping in MapParameters of GetDist.f90 and then use map_params=T in the .ini file. There should be an example in the code.

Post Reply