.. _book_fig_chapter4_fig_lyndenbell_toy: Luminosity function code on toy data ------------------------------------ Figure 4.9. An example of using Lynden-Bell's C- method to estimate a bivariate distribution from a truncated sample. The lines in the left panel show the true one-dimensional distributions of x and y (truncated Gaussian distributions). The two-dimensional distribution is assumed to be separable; see eq. 4.85. A realization of the distribution is shown in the right panel, with a truncation given by the solid line. The points in the left panel are computed from the truncated data set using the C- method, with error bars from 20 bootstrap resamples. .. image:: ../images/chapter4/fig_lyndenbell_toy_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: fig_lyndenbell_toy.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: fig_lyndenbell_toy.py :lines: 15- .. raw:: html
:download:`[download source: fig_lyndenbell_toy.py] ` .. raw:: html