Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculating evidence from Montepython #376

Open
Amlan1996 opened this issue Jul 23, 2024 · 2 comments
Open

Calculating evidence from Montepython #376

Amlan1996 opened this issue Jul 23, 2024 · 2 comments
Labels
MP_usage_question Question about how to use MontePython

Comments

@Amlan1996
Copy link

Hi,

Can I calculate evidence from Monte Python run outputs under the Metropolis-Hastings algorithm? I was running with the CMB+Pantheon_Plus data set. After the convergence, I got all the chain files but couldn't find concise information on the log-likelihood or chi2, which I can use to integrate over my priors.

Please let me know if there is any way to do this.

Best regards,
Amlan

@brinckmann
Copy link
Owner

Hi Amlan,

MontePython doesn't compute the evidence for Metropolis-Hastings. It does provide the -loglkl in the chains, it's the second number with the first number being the multiplicity.

I know of two external codes that can compute the Bayesian evidence for you by post-processing your chains:
MCEvidence code https://github.com/yabebalFantaye/MCEvidence + release paper https://arxiv.org/abs/1704.03472
harmonic code https://github.com/astro-informatics/harmonic + release paper https://arxiv.org/abs/2111.12720

I have not tried either code. Good luck!

Best,
Thejs

@brinckmann brinckmann added the MP_usage_question Question about how to use MontePython label Jul 24, 2024
@Amlan1996
Copy link
Author

Dear Thejs,

Thanks for the information on these external codes.

I was also checking the documentation and learned that nested sampling in Montepython might automatically calculate the evidence. Since I have never used it, can I rerun everything using the same .param, .best fit, and .covmat files to run under this nested sampling? Is the command also the same for analysing the chains similar to metropolis hastings?

Please let me know.

Best regards,
Amlan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MP_usage_question Question about how to use MontePython
Projects
None yet
Development

No branches or pull requests

2 participants