Coder Social home page Coder Social logo

wushichao / galacticdnsmass Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nickfarrow/galacticdnsmass

0.0 3.0 0.0 8.04 MB

A demonstration of how bayesian inference and nested sampling allows us to explore the mass distributions of Galactic Double Neutron Star systems.

Python 2.00% Jupyter Notebook 98.00%

galacticdnsmass's Introduction

The mass distribution of Galactic double neutron stars

We highly recommend reading The Mass Distribution of Galactic Double Neutron Stars; (Farrow, Zhu, & Thrane 2019) for details along with this demonstraion.

Here we provide code which performs Bayesian inference on a sample of 17 Galactic double neutron stars (DNS) in order to investigate their mass distribution. Each DNS is comprised of two neutron stars (NS), a recycled NS and a non-recycled (slow) NS. We compare two hypotheses: A - recycled NS and non-recycled NS follow an identical mass distribution, and B - they are drawn from two distinct populations. Within each hypothesis we also explore three possible functional models: gaussian, two-gaussian (mixture model), and uniform mass distributions.

You can take a look at the demo here or you can download the git repository with:

git clone https://github.com/NicholasFarrow/GalacticDNSMass.

binary mass pdfs

Requirements

Without running inference (just demonstration & data analysis):

  • Jupyter or Ipython
  • numpy, scipy

Additional requirements if performing own inference:

Full code

A more detailed version of the code can be found here under mainCode.

Citations

Thank you Buchner et al. 2014, A&A for their python interface of MultiNest F. Feroz, M.P. Hobson, M. Bridges. 2008

galacticdnsmass's People

Contributors

nickfarrow avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.