The generalized gamma distribution (GG) was introduced by  and carefully analyzed by . The GG has three-parameters and the techniques to find them is a matter of research, see among others   . A significant role in astrophysics is played by the luminosity function (LF) for galaxies and we present some models, among others, the Schechter LF, see , a two-component Schechter—like LF, see , and the double Schechter LF with five parameters, see . Another approach starts from a given statistical distribution for which the probability density function (PDF) is known. We know that for a given PDF, ,
where L is the luminosity. A data oriented LF, , is obtained by adopting which is the normalization to the number of galaxies in a volume of 1 Mpc3
The above line of research allows exploring the LF for galaxies in the framework of well studied PDFs. Some examples are represented by the mass-luminosity relationship, see , some models connected with the generalized gamma (GG) distribution, see  , the truncated beta LF, see , the lognormal LF, see , the truncated lognormal LF, see , and the Lindley LF, see .
This paper brings up the GG and introduces the scale in Section 2. The new double truncation for the GG and the GG with scale is introduced in Section 3. The derivation of the truncated GG LF is done in Section 4. Section 5 contains the application of the GG LF to galaxies and quasars as well the fit of the averaged absolute magnitude for QSOs as function of the redshift.
2. The Generalized Gamma Distribution
Let X be a random variable defined in ; the GG (PDF), , is
is the gamma function, with , and . The above PDF can be obtained by setting the location parameter equal to zero in the four parameters GG as given by , pag. 113. The GG PDF scale as and the gamma PDF as : the introduction of the parameter c increases the flexibility of the GG.
The GG family includes several subfamilies, including the exponential PDF when and , the gamma PDF when and the Weibull PDF when .
The distribution function (DF), , is
where is the incomplete Gamma function, defined by
see . The average value or mean, , is
the variance, , is
The mode, M, is
The rth moment about the origin is, , is
The information entropy, H, is
where is the digamma or Psi function defined as
where , see .
In some applications it may be useful to have a scale, b, and therefore the GG PDF, , is
which has DF, , as
The average value, , is
the variance, , is
and the mode, , is
3. Double Truncation
Let X be a random variable defined in; the new double truncated GG PDF, , can be found by evaluating of the following integral
where is the Whittaker M function, see Appendix A. We now define the constant of integration, , as
and as a consequence the truncated GG PDF is, ,
The average value, , is
The DF, , is
The truncated GG PDF with scale requires the evaluation of the following integral, ,
The constant of integration, , is
and as a consequence the truncated GG PDF with scale is, ,
The average value, is
4. The Luminosity Function
In this section we present the Schechter LF, we derive the GG LF, we introduce the double truncation in the LF and we develop the adopted statistics.
4.1. The Schechter LF
The Schechter LF, introduced by , is
here sets the slope for low values of L, is the characteristic luminosity and is the normalization. The luminosity density, j, is
The equivalent distribution in absolute magnitude is
where is the characteristic magnitude as derived from the data. We now introduce the parameter h which is, where is the Hubble constant. The scaling with h is and.
4.2. Generalized Gamma LF
We replace in the GG with scale, see Equation (14) x with L (the luminosity), b with (the characteristic luminosity) and we insert which is the normalization to the number of galaxies in a volume of 1 Mpc3
The magnitude version is
where M is the absolute magnitude and is the characteristic magnitude. This four parameters LF, which was introduced in , was applied to the Sloan Digital Sky Survey (SDSS) in five different bands and to the near infrared band of the 2MASS Redshift Survey (2MRS), see .
4.3. Double Truncation for the LF
We replace in the truncated GG with scale, see Equation (35), x with L (the luminosity), b with (the characteristic luminosity), with (lower luminosity), with (upper luminosity), and we insert the normalization, ,
where is given by Equation (34). The luminosity density for the truncated GG LF, , has now a finite range of existence and is
The four luminosities and are connected with the absolute magnitudes M, , and through the following relationship
where the indexes u and l are inverted in the transformation from luminosity to absolute magnitude and and are the luminosity and absolute magnitude of the sun in the considered band.
The magnitude version of the truncated GG LF is
The averaged absolute magnitude is
4.4. The Adopted Statistics
The unknown parameters of the LF can be found through the Levenberg-Marquardt method (subroutine MRQMIN in  ) but the first derivative of the LF with respect to the unknown parameters should be provided. In the case of the truncated GG LF, see Equation (49), the first derivative with respect to the unknown parameters has a complicated expression, so we used the numerical first derivative. The merit function can be computed by
where n is number of datapoints and the two indexes theo and astr stand for theoretical and astronomical, respectively. The residual sum of squares (RSS) is
where is the theoretical value and is the astronomical value. Particular attention should be paid to the number of unknown parameters in the LF: three for the Schechter function (formula (43)) and four for formula (49). The reduced merit function can be computed by
where, n being the number of datapoints and k the number of parameters. The Akaike information criterion (AIC), see , is defined by
where L is the likelihood function and k the number of free parameters in the model. We assume a Gaussian distribution for the errors and the likelihood
function can be derived by the statistic where has been computed by Equation (53), see  . Now AIC becomes
The Bayesian information criterion (BIC), see , is
where L is the likelihood function, k the number of free parameters in the model and n the number of observations. The phrase “better fit” used in the following means that the three statistical indicators:, AIC and BIC are smaller for the considered LF than for the Schechter function.
5. Astrophysical Applications
In this section we apply the truncated GG LF to the SDSS galaxies and to QSOs. The introduction of the redshift dependence for lower and upper absolute magnitude allows to model the average absolute magnitude versus redshift for QSOs.
5.1. SDSS Galaxies
In order to perform a test we selected the data of the Sloan Digital Sky Survey (SDSS) which has five bands (),(), (),() and () with denoting the wavelength of the CCD camera, see . The data of the astronomical LF are reported in  and are available at https://cosmo.nyu.edu/blanton/lf.html. The numerical values of the four parameters a, c, and are given in Table 1.
Table 1. Parameters for fits to LF in SDSS Galaxies with the four parameters truncated GG LF as represented by formula (49).
The Schechter function, the new four parameters function as represented by formula (49) and the data are reported in Figures 1-5, where bands, , , and are considered.
Table 2 presents the luminosity density evaluated with the Schechter LF, j, and with the truncated GG LF, jT. The range of existence in the truncated case is finite rather than infinite and therefore the luminosity density is always smaller than in the standard case.
5.2. Luminosity Function for QSOs
For our first example, we selected the catalog of the 2dF QSO Redshift Survey (2QZ), which contains 22431 redshifts of QSOs with, see . We processed them as explained in . A typical example of the observed LF for QSOs when as well the fit with the four parameters truncated GG LF is presented in Figure 6 with data as in Table 3.
5.3. Average Absolute Magnitude versus Redshift
The first application is about galaxies: we processed the SDSS Photometric Catalogue DR 12, see , which contains 10,450,256 galaxies (elliptical + spiral) with redshift and rest frame absolute magnitude. The lower absolute magnitude is fixed at and the upper absolute magnitude is the maximum absolute magnitude of the selected bin in redshift. The above choice adopts the SDSS DR12 cosmological evaluation of the absolute magnitude. Figure 8 displays averaged absolute magnitude, theoretical averaged absolute magnitude, lower and upper limit in absolute magnitude functions of the redshift.
Figure 1. The luminosity function data of SDSS(u*) are represented with error bars. The continuous line fit represents the four parameters truncated GG LF (49) and the dotted line represents the Schechter function.
Figure 2. The luminosity function data of SDSS(g*) are represented with error bars. The continuous line fit represents the four parameters truncated GG LF (49) and the dotted line represents the Schechter function.
Table 2. Luminosity density in SDSS Galaxies evaluated with the Schechter LF, formula (42), and with the four parameters truncated GG LF, formula (47), when and.
Figure 3. The luminosity function data of SDSS(r*) are represented with error bars. The continuous line fit represents the four parameters truncated GG LF (49) and the dotted line represents the Schechter function.
Figure 4. The luminosity function data of SDSS(i*) are represented with error bars. The continuous line fit represents the four parameters truncated GG LF (49) and the dotted line represents the Schechter function.
Table 3. The four parameters truncated GG LF as represented by formula (49) in the QSO case.
Table 4. The four parameters truncated GG LF as represented by formula (49) for QSOs in the COSMOS field.
Figure 5. The luminosity function data of SDSS(z*) are represented with error bars. The continuous line fit represents the four parameters truncated GG LF (49) and the dotted line represents the Schechter function.
Figure 6. The observed LF for QSOs, empty stars with error bar, when z [0.3, 0.5] and M [−24.93, −22.29]. The continuous line fit represents the four parameters truncated GG LF (49).
Figure 7. The observed LF for QSOs in the COSMOS field, empty stars with error bar, when z [3.7, 4.7] and M [−28, −22]. The continuous line fit represents the four parameters truncated GG LF (49).
The second application is about the QSO and we used the framework of the flat cosmology in order to find the absolute magnitude relative to the catalog of the 2dF QSO Redshift Survey (2QZ), exactly as . The two cosmological parameters are and, where is the Hubble constant expressed in kms−1Mpc−1, and is
Figure 8. Average observed absolute magnitude versus redshift for SDSS galaxies (red points), average theoretical absolute magnitude for the four parameters of the truncated GG LF as given by Equation (52) (dot-dash-dot green line), the lowest absolute magnitude is (full black line) and the highest absolute magnitude at a given redshift as given by maximum value of the selected sample (dashed black line); RSS = 5.14. The others LF parameters for the truncated GG LF are:, and.
where G is the Newtonian gravitational constant and is the mass density at the present time. A useful reference for the upper magnitude as function of the redshift can be obtained from the distance modulus as given by Equation (5) in  once the limiting magnitude of the sample 2QZ, , is adopted
The above equation represents a useful theoretical reference. Another, more empirical, way explores numerically the maximum and the minimum in absolute magnitude functions of the redshift for the sample 2QZ. In order to fix the numbers we fitted the upper absolute magnitude with the third degree polynomial
with, , and. The lower absolute magnitude is fitted with the second degree polynomial
with, and. Another useful relation is
Figure 9. Average observed absolute magnitude versus redshift for QSOs (red points), average theoretical absolute magnitude for the four parameters of the truncated GG LF as given by Equation (52) (dot-dash-dot green line), the lowest absolute magnitude at a given redshift as given by the sample (full black line) and the highest absolute magnitude at a given redshift as given by the sample (dashed black line); RSS = 1.62.
Now different combinations of curves can be used. Figure 9 presents the combination which minimizes the RSS.
Truncated GG: We derived an expression for the left and right truncated GG PDF in terms of the Whittaker M function, see Equation (22), its DF, see Equation (28), and its average value, see Equation (23).
Truncated LF: The truncated LF for galaxies or QSO is derived both in the luminosity form, see Equation (46), and in the magnitude form, see Equation (49). In all the astrophysical examples here analyzed which are the five bands of SDSS galaxies, see Table 1, the QSOs when, see Table 3, and the faint LF for QSOs in the range of redshift, see Table 4, the of the truncated GG is smaller than the Schechter LF. Table 2 presents the luminosity density in SDSS Galaxies with a finite range of existence rather than infinite.
Average Magnitude versus redshift: The averaged absolute magnitude of the SDSS galaxies and QSOs belonging to the catalog 2QZ as functions of the redshift are reasonably fitted by the averaged absolute magnitude of the truncated GG LF, see Equation (52). In order to perform the fit we provided for a redshift dependence, see Equation (63), and we inserted as lower and upper absolute magnitudes those given by the minimum and maximum values of the selected bin in redshift.
Appendix A: The Whittaker M function
The Whittaker M function, , solves the differential equation
The regularized hypergeometric function, , as defined by the Gauss series, is
where, and is the Pochhammer symbol
The generalized hypergeometric series is denoted by and the case and gives
allows to express the Whittaker M function in terms of the generalized hypergeometric function, , see  .
 Gomès, O., Combes, C. and Dussauchoy, A. (2008) Parameter Estimation of the Generalized Gamma Distribution. Mathematics and Computers in Simulation, 79, 955-963.
 Lakshmi, R.V. and Vaidyanathan, V.S. (2016) Three-Parameter Gamma Distribution: Estimation Using Likelihood, Spacings and Least Squares Approach. Journal of Statistics and Management Systems, 19, 37-53.
 Blanton, M.R., Lupton, R.H., Schlegel, D.J., Strauss, M.A., Brinkmann, J., Fukugita, M. and Loveday, J. (2005) The Properties and Luminosity Function of Extremely Low Luminosity Galaxies. The Astrophysical Journal, 631, 208-230.
 Zaninetti, L. (2014) The Luminosity Function of Galaxies as Modeled by a Left Truncated Beta Distribution. International Journal of Astronomy and Astrophysics, 4, 145-154.
 Godlowski, W. and Szydowski, M. (2005) Constraints on Dark Energy Models from Supernovae. In: Turatto, M., Benetti, S., Zampieri, L. and Shea, W., Eds., 1604-2004: Supernovae as Cosmological Lighthouses, Astronomical Society of the Pacific, Vol. 342 of Astronomical Society of the Pacific Conference Series, 508-516.
 Gunn, J.E., Carr, M., Rockosi, C., Sekiguchi, M., Berry, K., Elms, B., de Haas, E., Ivezić, Z., Knapp, G., Lupton, R. and Pauls, G. (1998) The Sloan Digital Sky Survey Photometric Camera. The Astronomical Journal, 116, 3040-3081.
 Blanton, M.R., Hogg, D.W., Bahcall, N.A., Brinkmann, J. and Britton, M. (2003) The Galaxy Luminosity Function and Luminosity Density at Redshift z = 0.1. The Astrophysical Journal, 592, 819-838.
 Croom, S.M., Smith, R.J., Boyle, B.J., Shanks, T., Miller, L., Outram, P.J. and Loaring, N.S. (2004) The 2dF QSO Redshift Survey XII. The Spectroscopic Catalogue and Luminosity Function. Monthly Notices of the Royal Astronomical Society, 349, 1397-1418.
 Ikeda, H., Nagao, T., Matsuoka, K., Taniguchi, Y., et al. (2011) Probing the Faint End of the Quasar Luminosity Function at z 4 in the COSMOS Field. The Astrophysical Journal Letters, 728, L25.