corrected missing sigma factor in posterior sampler
- Rapidpe samples are generated with Gaussians of standard deviation=grid_size and amplitude=Marginlaized_Likelihood. During the implementation, we call
numpy.random.normal
function which has an amplitude1/\sqrt{2\pi\sigma}
due to normalization. So, wherever we modify the script to have the amplitude=Marginlaized_Likelihood, need a correction factor of\sqrt{2\pi\sigma}
.
-
corrected missing \sqrt{2\pi\sigma}
factor in posterior sampling and evidence calculation. Here is a simplified demonstration of this correction https://git.ligo.org/rapidpe-rift/rapidpe_rift_review_o4/-/blob/main/rapidpe_amr_review/Notebooks/NormalizationCorrection.ipynb
- Rapidpe posterior samples are generated in mchirp-q (or mchirp-mtotal) with a prior uniform in mass1-mass2 as a function of mchirp-q(or mchirp-mtotal). To get the mass1, and mass2 samples we need to convert the mchirp-q (or mchirp-mtotal) sample to mass1-mass2 and assign the prior of the corresponding mchirp-q(or mchirp-mtotal) as a weight for each samples.
-
corrected the weight of m1-m2 samples in the posterior plot
- We usually save weighted samples. Additionally save posterior samples after resampling from weighted samples.
-
save posterior samples in addition to weighted posterior samples
Review wiki with these corrections applied: https://git.ligo.org/rapidpe-rift/rapidpe_rift_review_o4/-/wikis/AMR-Review/Review-Version-2
Review wiki before these corrections: https://git.ligo.org/rapidpe-rift/rapidpe_rift_review_o4/-/wikis/AMR-Review
-
Comparison run between this version and the previous version: -
new version: https://ldas-jobs.ligo.caltech.edu/~vinaya.valsan/RapidPE/posterior_correction/S231213ap_new/summarypage.html -
current online version: https://ldas-jobs.ligo.caltech.edu/~emfollow/online_pe/S231213ap/rapidpe/summarypage.html -
new version: https://ldas-jobs.ligo.caltech.edu/~vinaya.valsan/RapidPE/posterior_correction/S231231ag_new_spin2/summarypage.html -
current online version: https://ldas-jobs.ligo.caltech.edu/~emfollow/online_pe/S231231ag/rapidpe/summarypage.html
-
Edited by VINAYA VALSAN