bilby

A user-friendly Bayesian inference library.

Bilby provides a simple interface to perform parameter estimation with a wide range of stochastic samplers. It is primarily designed and built for inference of compact binary coalescence events in interferometric data, but it can also be used for more general problems.

Installation

Install bilby with pip or conda, along with optional samplers and gravitational-wave dependencies.

Installation
Getting started

Fit a simple model to data and learn the core concepts: likelihoods, priors, samplers, and results.

Basics of parameter estimation
Interactive examples

Run and edit the bilby examples in your browser, with no installation needed.

https://bilby-dev.github.io/examples/
Gravitational-wave inference

Analyse compact binary coalescences in real or simulated gravitational-wave data.

Compact binary coalescence parameter estimation
API reference

Detailed documentation of every module, class, and function in bilby.

API reference
Contributing

Report issues, propose changes, and help develop bilby.

Contributing to bilby

The code is hosted at https://github.com/bilby-dev/bilby, and you can run and edit the examples in your browser with no installation. If you use bilby in a scientific publication, please cite it.

API reference

compat

Compatibility layer for running bilby with different array backends via the Python array API.

core

Core functionality for general Bayesian inference: likelihoods, priors, samplers, and results.

gw

Gravitational-wave specific functionality: detectors, waveforms, likelihoods, priors, and conversions.

hyper

Tools for hierarchical inference of population (hyper-)parameters.

bilby_mcmc

Bilby-MCMC, a native Markov-chain Monte Carlo sampler designed for gravitational-wave inference.