Skip to content

Included PTMCMC and Bilby bayesian sampling techniques in anis_pta.py. Power_basis for now.#8

Open
kushagrann wants to merge 35 commits intoNihanPol:mainfrom
kushagrann:main
Open

Included PTMCMC and Bilby bayesian sampling techniques in anis_pta.py. Power_basis for now.#8
kushagrann wants to merge 35 commits intoNihanPol:mainfrom
kushagrann:main

Conversation

@kushagrann
Copy link

Added the LogLikelihood, LogPrior and set_ptmcmc functions inside anis_pta class suitable to perform bayesian inference with PTMCMC. Also created a handy function inject_anisotropy suitable for injection studies which creates injected instance attributes of anis_pta for helping with post-processing. The set_ptmcmc function also has a flag argument save_anisotropy which saves the anis_pta instance as a pickle in the PTMCMC outdir for a handy post-processing.
In addition, created a sperate class named set_bilby inside anis_pta.py suitable for performing bayesian inference with Bilby.
Both works with pair covariance. Hence, for it a handy (hidden as it starts with _) instance attribute ._lik_denom is created when we use set_data function which helps reduce computation cost by overcoming calculation of the determinant of the pair covariance matrix every time in the likelihood functions. This instance attribute is only activated if we supply a pair covariance matrix to set_data function.

kushagrann and others added 30 commits July 15, 2025 13:33
Added ipynb_checkpoints to .gitignore
…parameter_keys) which caused injection recovery to fail. Edited injected_anisotropy in utils.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant