========
Examples
========

1. `General inference examples <https://github.com/bilby-dev/bilby/tree/master/examples/core_examples>`_:

  * `A simple Gaussian likelihood <https://github.com/bilby-dev/bilby/blob/main/examples/core_examples/gaussian_example.py>`_: a good example to see how to write your own likelihood.
  * `Linear regression for unknown noise <https://github.com/bilby-dev/bilby/blob/main/examples/core_examples/linear_regression_unknown_noise.py>`_: fitting to general time-domain data.

2. `Examples of injecting and recovering data <https://github.com/bilby-dev/bilby/tree/master/examples/gw_examples/injection_examples>`__:

  * `4-parameter CBC tutorial <https://github.com/bilby-dev/bilby/blob/main/examples/gw_examples/injection_examples/fast_tutorial.py>`__
  *  `15-parameter CBC tutorial <https://github.com/bilby-dev/bilby/blob/main/examples/gw_examples/injection_examples/standard_15d_cbc_tutorial.py>`__
  *  `Create your own source model <https://github.com/bilby-dev/bilby/blob/main/examples/gw_examples/injection_examples/create_your_own_source_model.py>`__
  *  `Create your own time-domain source model <https://github.com/bilby-dev/bilby/blob/main/examples/gw_examples/injection_examples/create_your_own_time_domain_source_model.py>`__
  *  `How to specify the prior <https://github.com/bilby-dev/bilby/blob/main/examples/gw_examples/injection_examples/how_to_specify_the_prior.py>`__
  *  `Using a partially marginalized likelihood <https://github.com/bilby-dev/bilby/blob/main/examples/gw_examples/injection_examples/marginalized_likelihood.py>`__
  *  `Injecting and recovering a neutron-star equation of state <https://github.com/bilby-dev/bilby/blob/main/examples/gw_examples/injection_examples/bns_eos_example.py>`__

3. `Examples using open data <https://github.com/bilby-dev/bilby/tree/master/examples/gw_examples/data_examples>`__:

  * `Analysing the first Binary Black hole detection, GW150914 <https://github.com/bilby-dev/bilby/blob/main/examples/gw_examples/data_examples/GW150914.py>`__

4. `Notebook-style tutorials <https://github.com/bilby-dev/bilby/tree/master/examples/tutorials>`__:

  * `Comparing different samplers <https://github.com/bilby-dev/bilby/blob/main/examples/tutorials/compare_samplers.ipynb>`__
  * `Visualising the output <https://github.com/bilby-dev/bilby/blob/main/examples/tutorials/visualising_the_results.ipynb>`__
