.. _book_fig_chapter4_fig_lyndenbell_gals: Lynden-Bell Luminosity function ------------------------------- Figure 4.10. An example of computing the luminosity function for two u-r color-selected subsamples of SDSS galaxies using Lynden-Bell's C- method. The galaxies are selected from the SDSS spectroscopic sample, with redshift in the range 0.08 < z < 0.12 and flux limited to r < 17.7. The left panels show the distribution of sources as a function of redshift and absolute magnitude. The distribution p(z, M) = rho(z) Phi(m) is obtained using Lynden-Bell's method, with errors determined by 20 bootstrap resamples. The results are shown in the right panels. For the redshift distribution, we multiply the result by z^2 for clarity. Note that the most luminous galaxies belong to the photometrically red subsample, as discernible in the bottom-right panel. .. image:: ../images/chapter4/fig_lyndenbell_gals_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: fig_lyndenbell_gals.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: fig_lyndenbell_gals.py :lines: 17- .. raw:: html
:download:`[download source: fig_lyndenbell_gals.py] ` .. raw:: html