LSSTDESC / firecrown

DESC Cosmology Likelihood Framework
BSD 3-Clause "New" or "Revised" License
29 stars 7 forks source link

Sample over logA_s in firecrown #331

Closed elisachisari closed 11 months ago

elisachisari commented 1 year ago

Is it possible to sample over logA_s in firecrown. We discussed this before and there seems to be some workaround using cosmosis, but I'm not sure about cobaya. Could this be documented somewhere in the repo? Maybe in one of the examples?

marcpaterno commented 1 year ago

The firecrown code does not configure any of the samplers; it is the configuration of the sampler that configures the Firecrown code that the sampler calls.

For CosmoSIS, if what you want to obtain samples from a prior that is flat in logA_s, I think you can achieve this by using an exponential prior in A_s. The documentation for setting non-flat priors in CosmoSIS is at https://cosmosis.readthedocs.io/en/latest/usage/parameter_files/priors_ini.html?highlight=prior.

@joezuntz , please correct anything that I have gotten wrong here, and also please let us know where in the CosmoSIS documentation we should point for any additional information about configuring priors in CosmoSIS.

joezuntz commented 1 year ago

You could probably do that, but it would be easier to just use the parameter log1e10As which the consistency module will then convert to A_s.

marcpaterno commented 1 year ago

Is there documentation for this somewhere on the CosmoSIS readthedocs site? I do not see log1e10As mentioned in the documentation for the consistency module at https://cosmosis.readthedocs.io/en/latest/reference/standard_library/consistency.html?highlight=consistency. Am I looking at the wrong place?

joezuntz commented 1 year ago

Good point - the docs are out of date. I'll add this.

joezuntz commented 1 year ago

I've updated the docs pages.