@@ -23,9 +23,9 @@ This review wiki covers the changes to the code based in order to incorporate po
*[ ] Monte-Carlo point-estimates and error estimates derived in [LIGO-P2000216](https://dcc.ligo.org/LIGO-P2000216) / [arXiv:2007.01372](https://arxiv.org/abs/2007.01372) are correct
**Note!* Reed has since found smally typos in the error estimates published in these works (associated with covariance between "f" and "g", etc).
***ACTION ITEM** (for Reed): update derivations to show correct error estimation and to include formulas for Bayes factor.
*[ ] Monte-Carlo algorithms are correctly implemented within calls to [utils.prob_odds](https://git.ligo.org/reed.essick/mmax-model-selection/-/blob/master/mmax_model_selection/utils.py#L335)
*[ ] Monte-Carlo algorithms are correctly implemented within calls to [utils.prob_odds](https://git.ligo.org/reed.essick/mmax-model-selection/-/blob/master/mmax_model_selection/utils.py#L434)(or[utils.post_prior_bayes](https://git.ligo.org/reed.essick/mmax-model-selection/-/blob/master/mmax_model_selection/utils.py#L476) as appropriate).
*[ ] population priors are correctly implemented within calls to [utils.population_weights](https://git.ligo.org/reed.essick/mmax-model-selection/-/blob/master/mmax_model_selection/utils.py#L107)
*[ ] reweighting of single-event posterior samples is by population priors is correctly done within the [mmax-model-selection executable](https://git.ligo.org/reed.essick/mmax-model-selection/-/blob/master/bin/mmax-model-selection#L138)
*[ ] reweighting of single-event posterior samples is by population priors is correctly done within the [mmax-model-selection executable](https://git.ligo.org/reed.essick/mmax-model-selection/-/blob/master/bin/mmax-model-selection#L153)
---
...
...
@@ -64,8 +64,9 @@ Beyond parsing the command-line options, `mmax-model-selection` is relatively st
* this is accomplished through a delegation to [utils.population_weights](https://git.ligo.org/reed.essick/mmax-model-selection/-/blob/master/mmax_model_selection/utils.py#L107), which is little more than a set of nested conditionals that set up population parameters before evaluating the ratio of prior probabilities (between the target prior and the one used to generate the event's posterior samples) for the
* masses: [single-object mass distribution](https://git.ligo.org/reed.essick/mmax-model-selection/-/blob/master/mmax_model_selection/utils.py#L86) and [pairing probability](https://git.ligo.org/reed.essick/mmax-model-selection/-/blob/master/mmax_model_selection/utils.py#L97)
* distance: [uniform in euclidean volume](https://git.ligo.org/reed.essick/mmax-model-selection/-/blob/master/mmax_model_selection/utils.py#L100). *Note* we do not currently incorporate cosmological models to get the distribution in comoving volume.
* Compute the posterior odds and the posterior probability, along with error estimates through a delegation to [utils.prob_odds](https://git.ligo.org/reed.essick/mmax-model-selection/-/blob/master/mmax_model_selection/utils.py#L335). Because the Odds ratio and posterior odds are estimated using many of the same calculations (see Appendix of [LIGO-P2000216](https://dcc.ligo.org/LIGO-P2000216) / [arXiv:2007.01372](https://arxiv.org/abs/2007.01372), these are estimated within the same function call).
* Compute the posterior odds and the posterior probability, along with error estimates through a delegation to [utils.prob_odds](https://git.ligo.org/reed.essick/mmax-model-selection/-/blob/master/mmax_model_selection/utils.py#L434). Because the Odds ratio and posterior odds are estimated using many of the same calculations (see Appendix of [LIGO-P2000216](https://dcc.ligo.org/LIGO-P2000216) / [arXiv:2007.01372](https://arxiv.org/abs/2007.01372), these are estimated within the same function call).
* this computes the expected value and standard deviation through nested Monte-Carlo integrals over weighed samples.
* note, if prior samples are also provided, the code will compute the prior odds and Bayes factor in addition to the posterior odds.
The full help-string is reproduced below
...
...
@@ -73,7 +74,13 @@ The full help-string is reproduced below