===============================================
Compact binary coalescence parameter estimation
===============================================

In `this example
<https://git.ligo.org/lscsoft/bilby/blob/master/examples/gw_examples/injection_examples/standard_15d_cbc_tutorial.py>`_,
we demonstrate how to generate simulated data for a binary black hole
coalescence observed by the two LIGO interferometers at Hanford and Livingston
for all parameters in the `IMRPhenomPv2` waveform model.

The code will take around 15 hours to run.

For testing, you may prefer to run the `4-parameter CBC tutorial
<https://git.ligo.org/lscsoft/bilby/blob/master/examples/gw_examples/injection_examples/fast_tutorial.py>`__.

.. literalinclude:: /../examples/gw_examples/injection_examples/standard_15d_cbc_tutorial.py
   :language: python
   :linenos:

Running this script will generate data then perform parameter estimation. In doing
all of this, it prints information about the matched-filter SNRs in each
detector (saved to the log-file). Moreover, it generates a plot for each
detector showing the data, amplitude spectral density (ASD) and the signal;
here is an example for the Hanford detector:

.. image:: images/H1_frequency_domain_data.png

Finally, after running the parameter estimation. It generates a corner plot:

.. image:: images/full_15_parameters_corner.png

The solid lines indicate the injection parameters.
