1 Introduction

Gamma-ray bursts (GRBs) are the most dramatic explosions in the universe (see e.g., Piran 2004; Mészáros 2006; Zhang 2007). These events can be observed at a higher redshift than supernova(SNe), which are powerful tools for exploring the early universe (see e.g., Bromm and Loeb 2007; Zhang 2011; Wang et al. 2015). Traditionally, GRBs can be divided into two groups, long GRBs (lGRBs) and short GRBs (sGRBs), based on the well-known bimodal nature of the duration distribution with a separation at about \(T_{\mathrm{90}}\sim 2 \text{ s}\) (Kouveliotou et al. 1993). It is generally believed that some lGRBs are associated with the deaths of massive stars (also called collapsars), while some sGRBs are produced by the merging of the binary compact objects (see e.g., Eichler et al. 1989; Narayan et al. 1992; Lipunov et al. 1995), such as neutron star—neutron star (NS-NS) and neutron star—black hole (NS-BH). The detection of gravitational wave event GW170817 associated with GRB 170817A, has confirmed that at least a fraction of the observed sGRBs are produced by the merger of binary neutron stars (Abbott et al. 2017). This also provide a new tool to study the nature of sGRBs.

The luminosity function (\(\phi (L)\)) is crucial constraint on the progenitor models. However, \(\phi (L)\) cannot be derived straightforwardly using all GRBs with known redshifts since these samples are affected by observational bias. Some studies have estimated the luminosity function assuming the function form and fitting the data to derive model parameters (see e.g., Salvaterra and Chincarini 2007; Salvaterra et al. 2009). In this approach, the results seriously depend on the functional form of the model. On the other hand, based on the observed samples of GRBs with measured \(z\) and \(L\), the luminosity function can be directly derived. The Lynden-Bell \(c^{-}\) method is an efficient method to determine the distribution of the luminosity function of astronomical objects with a truncated sample. This method was first used to estimate the luminosity function of galaxies and quasars (see e.g., Lynden-Bell 1971; Efron and Petrosian 1992; Petrosian 1993; Kirshner et al. 1978; Loh and Spillar 1986; Peterson et al. 1986), and then it is extensively adopted to GRBs (see e.g., Lloyd-Ronning et al. 2002; Yonetoku et al. 2004, 2014; Wu et al. 2012; Yu et al. 2015; Pescalli et al. 2016; Zhang and Wang 2018). Recently, Wang et al. (2013) and Cui et al. (2014) have studied the luminosity function of GRB optical afterglow. However, the luminosity function of GRB X-ray emission has not studied so far, especially, the properties of sGRBs are need to explore.

In this paper, we for the first time study the early X-ray afterglow luminosity function of Fermi sGRBs using the Lynden-Bell \(c^{-}\) method. This paper is organized as follows. In Sect. 2, we introduce our sample and data selection. In Sect. 3, we introduce the early X-ray afterglow luminosity function of Fermi sGRBs. Finally, we give our conclusions and discussion in Sect. 4. Throughout this paper, we adopt the standard flat cold dark matter cosmology with the typical cosmological parameters \(\Omega _{\mathrm{m}}=0.27\) and \(H_{\mathrm{0}}=70~\mbox{km}\,\mbox{s}^{-1}\,\mbox{Mpc}^{-1}\).

2 sGRB sample and data analysis

We concentrate our analysis on the sGRBs detected only by the Fermi detector to minimize the influence of different instruments (with different sensitivities and energy bands). The Fermi GRBs are selected from the Fermi catalogFootnote 1 until the end of January 2020. In total, there are 2698 events. First, according to the traditional sGRB definition method (\(T_{\mathrm{90}}<2~\mbox{s}\)), we select the bursts with well-measured spectral parameters and their durations are less than 2 seconds, in total there are 367 events. In addition, GRB 100816A with a duration of 2.045 s was classified as sGRB shown in Xue et al. (2019), and is included in our sample. Our Fermi sample thus contains 368 sGRBs. To study the X-ray afterglow of sGRBs, the X-ray emission data observed by the Swift X-ray Telescope (XRT) are taken.Footnote 2 Only 34 short bursts have X-ray data as shown in Fig. 1.

Fig. 1
figure 1

X-ray light curves of 34 Fermi sGRBs

In this paper, we mainly use the data of the early decay phase afterglow to study the X-ray luminosity function. In addition, we define the rest frame time \(T^{\ast }_{\mathrm{a}}=200~\mathrm{s}\) (the symbol ∗ represents the value in the rest-frame) as the time point. The sGRBs must have the X-ray data both before and after \(T^{\ast }_{\mathrm{a}}\), thereby allowing an interpolation to \(T^{\ast }_{\mathrm{a}}\). Among these bursts, GRB 081101, GRB 090621B, GRB 140209A, GRB 150101B, GRB 151228A and GRB 160411A have no the early decay phase afterglow data. GRB 090531B, GRB 100206A, GRB 111222A, GRB 140402A and GRB 150101A have only one data point. The afterglow of GRB 131004A at \(T^{\ast }_{\mathrm{a}}=200~\mathrm{s}\) is in the plateau phase, not in the decay phase. These bursts are excluded from our sample. Finally, our sample consists of 22 Fermi sGRBs. In Table 1, we list the properties of 22 sGRBs with the X-ray afterglows, including the burst name, redshift \(z\), the observer frame time \(T_{\mathrm{a}}\) corresponding to the rest frame 200 s, the flux \(F_{\mathrm{X}}\) in the 0.3-10 keV at the time \(T_{\mathrm{a}}\), the energy spectrum index \(\beta _{\mathrm{a}}\), isotropic X-ray luminosity \(L_{\mathrm{X}}\). The X-ray luminosity of sGRB can be derived with the following equation (Dainotti et al. 2011),

$$ L_{X}=\frac{4 \pi D_{L}^{2}(z)F_{X}}{(1+z)^{1-\beta _{a}}}, $$
(1)

where \(D_{L}\) is the luminosity distance, \(F_{\mathrm{X}}\) is the 0.3-10 keV flux observed at time \(T^{\ast }_{\mathrm{a}}=200\text{ s}\), \(\beta _{\mathrm{a}}\) is the energy spectrum index corresponding to the X-ray afterglow at time \(T_{\mathrm{a}}\). If there is no \(F_{\mathrm{X}}\) data at the time \(T_{\mathrm{a}}\), we adopt the interpolated method to estimate \(F_{\mathrm{X}}\). Here we describe simply the X-ray light cure near the time \(T_{\mathrm{a}}\) as a power-law decay (\(F_{\mathrm{X}}\propto t^{\alpha }\)), and then fit the data before and after \(T_{\mathrm{a}}\) to estimate the flux \(F_{X}\) at the time \(T_{a}\).

Table 1 X-ray properties of 22 Fermi sGRBs

In fact, the number of Fermi sGRBs with measured redshifts and X-ray afterglow data is very small. In our sample, only 8 bursts have redshifts. In order to calculate the X-ray luminosity, the values of sGRB redshifts are needed. Previous authors have estimated the pseudo redshifts of sGRBs using the \(L_{\mathrm{p}} - E_{\mathrm{p}}\) correlations between the peak luminosity \(L_{\mathrm{p}}\) and the rest frame peak energy \(E_{\mathrm{p}} \) (Yonetoku et al. 2014; Zhang and Wang 2018). We also use this method to estimate the pseudo redshifts of Fermi sGRBs with unknown redshifts. In Paper 1 we have collected 22 sGRBs with known redshifts and well measured spectra to analyzed the \(L_{\mathrm{p}} - E_{\mathrm{p}}\) correlation, and found that \(L_{\mathrm{p}}/10^{51}=(-4.91\pm 0.89)(E_{\mathrm{p}})^{1.90\pm 0.31}\), with the correlation coefficient \(r = 0.81\). We can rewrite the equation as

$$ \frac{D_{L}^{2}(z)}{(1+z)^{1.90}}=\frac{10^{46.09}}{4 \pi F_{\mathrm{p}}} \left (\frac{E_{\mathrm{p}}}{\mathrm{keV}}\right )^{1.90}. $$
(2)

Using the Equation 2 we derive the pseudo redshifts of 14 Fermi sGRBs with unknown redshifts, and then derive their X-ray luminosity as described above. The results are shown in Table 1. In Fig. 2, we present the X-ray luminosity distribution of sGRBs.

Fig. 2
figure 2

X-ray luminosity distribution of 22 Fermi sGRBs. The blue line represents the observational limit of \(1.8\times 10^{-12}~\mbox{erg}\,\mbox{cm}^{-2}\,\mbox{s}^{-1}\)

3 The luminosity function of X-ray afterglows of sGRBs

The Lynden-Bell \(c^{-}\) method is an effective method for determining the luminosity and redshift distribution of truncated data sample, including quasars (see e.g., Lynden-Bell 1971; Efron and Petrosian 1992; Petrosian 1993), galaxies (see e.g., Kirshner et al. 1978; Loh and Spillar 1986; Peterson et al. 1986), and GRBs (see e.g., Lloyd-Ronning et al. 2002; Yonetoku et al. 2004, 2014; Wu et al. 2012; Yu et al. 2015; Pescalli et al. 2016; Zhang and Wang 2018).

The luminosity function \(\Psi (L,z)\) is correlated to the two quantities of luminosity and redshift. In general, luminosity is correlated to redshift, so we can not simply write the luminosity function into \(\Psi (L,z)=\phi (L)\rho (z)\). We need firstly to remove the redshift evolution of luminosity. Therefore, we rewrite the luminosity function as \(\Psi (L,z)=\rho (z)\phi (L/g_{k}(z))/g_{k}(z)\), where \(\phi (L/g_{k}(\mathrm{z))}\) is the local (at \(z=0\)) luminosity function, and \(g_{k}(z)\) accounts for the evolution of \(L\). Then, the luminosity at redshift \(z=0\) is \(L_{\mathrm{0}}=L/g_{k}(z)\), and \(L_{\mathrm{0}}\) is independent of \(z\). The goal of our analysis is to obtain the local luminosity function \(\phi (L_{\mathrm{0}})\).

Firstly, we need to remove the effect of the luminosity evolution and determine the value of \(k\) by assuming a evolution functional form of \(g_{\mathrm{k}}(z)=(1+z)^{k}\) as done by many previous works (Lloyd-Ronning et al. 2002; Yonetoku et al. 2014; Yu et al. 2015; Zhang and Wang 2018; Guo et al. 2020). Following Efron and Petrosian (1992), we use the non-parametric test method of an \(\tau \) statistical method to derive the value of \(k\).

In the \((L_{\mathrm{X}},z)\) plane as shown in Fig. 2, for a random point of \(i\)th \((L_{\mathrm{X,i}},z_{\mathrm{i}})\), we can consider an associated set \(J_{\mathrm{i}}\) as

$$ J_{\mathrm{i}}=\left \{ j | L_{\mathrm{X,j}} \geq L_{\mathrm{X,i}},z_{\mathrm{j}} \leq z_{ \mathrm{i}}^{\mathrm{max}} \right \} , $$
(3)

where \(L_{\mathrm{X,i}}\) is the X-ray luminosity of \(i\)th sGRB and \(z_{\mathrm{i}}^{\mathrm{max}}\) is the maximum redshift at which the sGRBs with the X-ray luminosity \(L_{\mathrm{X,i}}\) can be detected by the Swift detector. This range is the red region of Fig. 2. We define the number of sGRBs contained in this region as \(N_{\mathrm{i}}\). In addition, the blue solid line in Fig. 2 represents the observed flux limit, \(F_{\mathrm{X,limit}}=1.8\times 10^{-12}~\mbox{erg}\,\mbox{cm}^{-2}\,\mbox{s}^{-1}\).

If \(L_{\mathrm{X}}\) and \(z\) are independent of each other, one would expect the number \(R_{\mathrm{i}}\), \(R_{\mathrm{i}}=\mathit{Number}\left \{ j\in J_{\mathrm{i}} | z_{\mathrm{j}} \leq z_{\mathrm{i}} \right \} \), is uniformly distributed between 1 and \(N_{\mathrm{i}}\). The test statistic \(\tau \) is

$$ \tau = \frac{\sum _{i}(R_{\mathrm{i}}-E_{\mathrm{i}})}{\sqrt{\sum _{\mathrm{i}}V_{\mathrm{i}}}}, $$
(4)

where \(E_{\mathrm{i}}=(N_{\mathrm{i}}+1)/2\) and \(V_{\mathrm{i}}=(N_{\mathrm{i}}^{2}-1)/12\) are the expected mean and the variance of \(R_{\mathrm{i}}\), respectively. If \(R_{\mathrm{i}}\) follows an ideal uniform distribution, then the samples of \(R_{\mathrm{i}} \geq E_{\mathrm{i}}\) and \(R_{\mathrm{i}} \leq E_{\mathrm{i}}\) should be equal, and the value of \(\tau \) should be equal to zero. However, \(L_{\mathrm{X}}\) and \(z\) are not independent of each other. We change the value of \(k\) until the test statistic \(\tau \) is zero. We find that the best fitting is \(k=1.95^{+1.12}_{-1.08}\). The distribution of non-evolving X-ray luminosity \(L_{\mathrm{X,0}}\) is shown in Fig. 3.

Fig. 3
figure 3

Non-evolving X-ray luminosity distribution of 22 Fermi sGRBs

After removing the effect of the X-ray luminosity evolution through \(L_{\mathrm{X,0}}=L_{\mathrm{X}}/(1+k)^{1.95}\), we can use the non-parametric method to derive the cumulative X-ray luminosity function (\(\phi (L_{\mathrm{X,0}})\)) from the following equation

$$ \phi (L_{\mathrm{X,0,i}})=\prod \limits _{j< i}\left (1+\frac{1}{N_{\mathrm{j}}} \right ), $$
(5)

where \(j< i\) means that the \(j\)th burst has a larger X-ray luminosity than \(i\)th one. Figure 4 shows the cumulative X-ray luminosity function. The shape of luminosity function follows a broken power-law, and the best fitting is given by

$$ \phi (L_{\mathrm{X,0}})\propto \left \{ \textstyle\begin{array}{c} L_{\mathrm{X,0}}^{-0.20\pm 0.04} , L_{\mathrm{X,0}}< L_{\mathrm{X,0}}^{b} \\ L_{\mathrm{X,0}}^{-1.05\pm 0.11} , L_{\mathrm{X,0}}\geq L_{\mathrm{X,0}}^{b} \end{array}\displaystyle , \right . $$
(6)

where the break luminosity \(L_{\mathrm{X,0}}=2.57\times 10^{46}~\mbox{erg}\,\mbox{s}^{-1}\). It is worth noting that the X-ray luminosity function here corresponds to \(z=0\), and the X-ray luminosity function of sGRBs at redshift \(z\) is \(\phi (L_{\mathrm{X,0}})(1+z)^{1.95}\).

Fig. 4
figure 4

Cumulative X-ray luminosity function of sGRBs, which is normalized to unity at the lowest luminosity. The black line is the best fit with a broken power-law model. The X-ray luminosity function can be expressed as \(\phi (L_{\mathrm{X,0}})\propto L_{\mathrm{X,0}}^{-0.20\pm 0.04}\) for dim bursts and \(\phi (L_{\mathrm{X,0}})\propto L_{\mathrm{X,0}}^{-1.05\pm 0.11}\) for bright bursts, with a break luminosity of \(L_{\mathrm{X,0}}^{b}=2.57\times 10^{46}~\mbox{erg}\,\mbox{s}^{-1}\)

4 Results and discussion

Using the 22 Fermi sGRBs with the early X-ray afterglow emission, we construct the X-ray luminosity function of sGRBs at rest frame 200 s after the burst onset. Considering the redshift evolution of X-ray luminosity, we adopt the Lynden-Bell \(c^{-}\) method to study the X-ray luminosity function of sGRBs. After removing the effects of luminosity evolution, we find that the cumulative luminosity function can be fitted with a broken power-law function, \(\phi (L_{\mathrm{X,0}})\propto L_{\mathrm{X,0}}^{-0.20\pm 0.04}\) for dim bursts and \(\phi (L_{\mathrm{X,0}})\propto L_{\mathrm{X,0}}^{-1.05\pm 0.11}\) for bright bursts, where the break X-ray luminosity is \(2.57\times 10^{46}~\mbox{erg}\,\mbox{s}^{-1}\). This is a preliminary result, which need to confirm with large sGRB sample in the future. Note that due to the limitations of the observations, we only analyze the data from the small sample, and there is indeed some selection effect. We compare the redshift distribution and the fluence distribution of our sample with those of the overall Fermi sGRBs, and the results are shown in Fig. 5. From this figure, one can see the distributions of both are basically the same. We also perform the Kolmogorov-Smirnov test, the \(p\) values are 0.92 and 0.90, respectively. In addition, the Fermi threshold is also affect the result. The bursts with high redshift and low luminosity can not be observed, the number of low luminosity sGRBs should be underestimated.

Fig. 5
figure 5

Comparisons of the redshift distribution (left panel) and the fluence distribution (right panel) of our sample (green) with those of the overall Fermi sGRBs (red), where the redshifts of the overall Fermi sGRBs with unknown redshift are estimated using the same \(L_{\mathrm{p}}-E_{\mathrm{p}}\) correlation. The \(p\) values of Kolmogorov-Smirnov test are 0.92 and 0.90, respectively

We also further analyze the correlations between the isotropic energy (\(E_{\mathrm{iso}}\))/luminosity(\(L_{\mathrm{p}}\)) of the prompt emission and the X-ray luminosity of sGRBs. The results are shown in Table 2 and Fig. 6. From this figure, we can see that the early decay phase X-ray luminosity of sGRBs is correlated with the prompt isotropic energy/luminosity. For the \(L_{\mathrm{X}} - E_{\mathrm{iso}}\) correlation, the best fit is \(\log L_{\mathrm{X}}=(0.13\pm 0.22)+(0.45\pm 0.18)\log E_{\mathrm{iso}}\). The correlation coefficient \(r\) is 0.49, with a chance probability \(p=0.00015\) and the dispersion \(\sigma =0.51\). For the \(L_{\mathrm{X}} - L_{\mathrm{p}}\) correlation, the best fit is \(\log L_{\mathrm{X}}=(0.68\pm 0.16)+(0.52\pm 0.20)\log L_{\mathrm{p}}\), with \(r=0.51\), \(p<10^{-4}\), and \(\sigma =0.82\). These results indicate that the early decay phase X-ray emission of sGRBs are mainly dominated by the prompt emission.

Fig. 6
figure 6

Relations between the early X-ray afterglow luminosity and the isotropic energy/luminosity of the prompt emission for sGRBs. The left panel shows the \(L_{\mathrm{X}} - E_{\mathrm{iso}}\) correlation, the \(L_{\mathrm{X}} - L_{\mathrm{p}}\) correlation is displayed in the right panel. The blue solid lines are the best fits. The green dotted line is the 2\(\sigma \) prediction band

Table 2 Prompt emission properties of 22 Fermi sGRBs with the measured early X-ray afterglow