Skip to content
Snippets Groups Projects

Add chirp-mass and mass-ratio prior which are uniform in component masses

Merged Soichiro Morisaki requested to merge soichiro/bilby:qprior into master

This MR is to implement the prior of mass ratio for the case where the uniform prior on component masses is applied while mass ratio is sampled.

The analytic expressions of its PDF and CDF are given in https://git.ligo.org/soichiro.morisaki/utilities/-/blob/master/mcq_sampling_bilby/mcqprior.pdf .

It has been tested in https://git.ligo.org/soichiro.morisaki/utilities/-/blob/master/mcq_sampling_bilby/CheckNewAnalyticPrior.ipynb .

cc: @colm.talbot

Edited by Soichiro Morisaki

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Colm Talbot
  • Colm Talbot
  • Colm Talbot
  • Colm Talbot
  • Thanks @soichiro.morisaki!

    I added a few specific comments, there are two others that don't really fit at any specific line:

    • This prior should live in the bilby/gw/prior.py module, rather than in core.
    • I know I suggested the opposite before, but I think it would be beneficial to add a FlatInComponentsChirpMass class which is just a wrapper to the PowerLaw class.
  • Soichiro Morisaki resolved all threads

    resolved all threads

  • added 1 commit

    • 509c5793 - address Colm's comments on UniformInComponentsMassRatio

    Compare with previous version

  • added 1 commit

    • 7e03faa2 - add UniformInComponentsChirpMass

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    • b91a0f3f - bilby/gw/prior.py: add UniformInComponentsChirpMass and UniformInComponentsMassRatio prior.

    Compare with previous version

  • added 1 commit

    • 70004ab2 - bilby/gw/prior.py: add UniformInComponentsChirpMass and UniformInComponentsMassRatio prior.

    Compare with previous version

  • Soichiro Morisaki unmarked as a Work In Progress

    unmarked as a Work In Progress

  • Soichiro Morisaki changed title from WIP: add mass-ratio prior to Add mass-ratio prior

    changed title from WIP: add mass-ratio prior to Add mass-ratio prior

  • Soichiro Morisaki changed title from Add mass-ratio prior to Add chirp-mass and mass-ratio prior which are uniform in component masses

    changed title from Add mass-ratio prior to Add chirp-mass and mass-ratio prior which are uniform in component masses

  • added Priors label

  • Colm Talbot approved this merge request

    approved this merge request

    • Resolved by Gregory Ashton

      This looks nice, is the idea that we just do

      chirp_mass = UniformInComponentsMassRatio()
      mass_ratio = UniformInComponentsChirpMass()
      mass_1 = Constraint(...)
      mass_2 = Constraint(...)

      with the appropriate constraints?

      From an implementation standpoint, I find the naming of the classes a little awkward, but I see the difficulty.

  • added 1 commit

    • bccc0bd7 - bilby/gw/prior.py: add docstrings to UniformInComponentsChirpMass and UniformInComponentsMassRatio

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading