1 Introduction and Motivation

For modeling lifetime data and studying stress-strength problems, Lindley [17] introduced a positively-skewed distribution for a non-negative continuous random variable. It is defined as a mixture of exponential and gamma distributions, and is well known in the literature as Lindley distribution. In recent years, there has been a great interest by many authors and researchers in the study of the Lindley distribution and its applications to model failure time data with increasing, decreasing, unimodal and bathtub shaped hazard rates. For details on Lindley distribution and its extension, the interested readers are referred to Lindley [17], Ghitany et al. [12], Mazucheli and Achcar [21], Al-Mutairi et al. [6], Cakmakyapan and Kadilar [7], Tomy [38], and references therein.

Several lifetime distributions have been proposed in statistics literature to model the survival data. Lindley distribution is one of them [4]. The distributions of the ratio \(Z\; = \;\left| \frac{X}{Y} \right|\) of two independently distributed random variables \(X\) and \(Y\), when they belong to the same family, is of great interest in many problems of applied sciences. As pointed out by Nadarajah and Gupta [24], “the distribution of the ratio is of interest in biological and physical sciences, econometrics, and ranking and selection. Examples include Mendelian inheritance ratios in genetics, mass to energy ratios in nuclear physics, target to control precipitation in meteorology, and inventory ratios in economics”. It has been extensively studied by many authors and researchers, among them, Marsaglia [20], Lee et al. [18], Korhonen and Narula [16], Press [28], Pham-Gia [27], Nadarajah [22], Nadarajah and Gupta [24], Nadarajah and Kotz. [25], Ali et al. [5], are notable.

It appears from literature that no attention has been paid in details to the distribution of the ratio of two independent Lindley random variables. As stated above, motivated by the importance of the distributions of the ratio of two independent random variables in many applied fields, in this paper, we derive the exact distribution of the ratio \(Z\; = \;\left| \frac{X}{Y} \right|\) of two independently distributed Lindley random variables \(X\) and \(Y\) with different parameters \(\alpha\) and \(\beta\), respectively. The newly proposed distribution of the ratio \(Z\; = \;\left| \frac{X}{Y} \right|\) has two different parameters \(\alpha\) and \(\beta\), as stated above. It discusses several statistical properties, along with estimation of parameters and applications to two real lifetime datasets, namely, COVID-19 and bladder cancer, to illustrate the importance of the proposed distribution, which is compared with some known variations of Lindley distributions, namely, the LD Lindley [17], the NGLD Elbatal et al. [9], the NQLD Shanker and Ghebretsadik [35] and ATPLD Shanker et al. [36].

The organization of this paper is divided into different sections as follows. Section 2 contains the proposed distribution of the ratio \(Z\; = \;\left| \frac{X}{Y} \right|\) of two independently distributed Lindley random variables, along with several distributional properties. Since characterizations play important roles in distribution theory, some characterizations of the proposed distribution based on truncated moments are given in Sect. 3. The estimation of parameters and applications to two real datasets are provided in Sects. 4 and 5, respectively. Finally, some concluding remarks are given in Sect. 6. Since the derivations of the proposed ratio distribution involve several special functions and formulas, these are provided in Appendix I.

2 Distribution of the Ratio \(Z\; = \;\left| \frac{X}{Y} \right|\)

Let \(X\) and \(Y\) be two independently distributed Lindley random variables with different parameters \(\alpha\) and \(\beta\). Then their \(pdfs\)\(f_{X} (x)\) and \(f_{Y} (y)\) are given as follows:

$$f_{X} (x)\; = \;\left( {\frac{{\alpha^{2} }}{\alpha \; + \;1}} \right)\,\left( {1\; + \;x} \right)\,e^{ - \,\alpha \,x} \,,\;x > 0,\,\,\alpha > 0,$$
(1)

and

$$f_{Y} (y)\; = \;\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\left( {1\; + \;y} \right)\,e^{ - \,\beta \,y} \,,\;y > 0,\,\,\beta > 0.$$
(2)

The corresponding \(cdfs\) are given as follows:

$$F_{X} \left( x \right)\; = \;P\,\left( {X \le x} \right)\; = \;1\; - \;\left( {\frac{\alpha \; + \;1\; + \;\alpha \,x}{{\alpha \; + \;1}}} \right)\,\,e^{ - \,\alpha \,x} \,,\;x > 0,\,\,\alpha > 0,$$
(3)

and

$$F_{Y} (y) = \;P\,\left( {Y \le y} \right)\; = \;1\; - \;\left( {\frac{\beta \; + \;1\; + \;\beta \,y}{{\beta \; + \;1}}} \right)\,\,e^{ - \,\beta \,y} \,,\;y > 0,\,\,\beta > 0.$$
(4)

2.1 CDF of the Ratio \(Z\; = \;\left| \frac{X}{Y} \right|\)

In what follows, we derive the explicit expressions for the \(cdf\) of \(Z\; = \;\left| \frac{X}{Y} \right|\) in Theorem 1.

Theorem 1

Suppose \(X\) is a Lindley random variable with \(pdf\) (1) and \(cdf\) (3). Also, suppose \(Y\) is another Lindley random variable with \(pdf\) (2) and \(cdf\) (4). Then the \(cdf\) of the ratio \(Z = \left| \frac{X}{Y} \right|\) is given by

$$F_{Z} \,\left( z \right)\; = \;1\; - \;\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)}}\left[ {1\; + \;\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)}} + \frac{\alpha \,z}{{\left( {\alpha \; + \;1} \right)\,\left( {\alpha \,z\; + \;\beta } \right)}} + \;\frac{2\,\alpha \,z}{{\left( {\alpha \; + \;1} \right)\,\left( {\alpha \,z\; + \;\beta } \right)^{2} }}} \right]\;.$$
(5)

Proof

Using (3) for the \(cdf\) of Lindley random variable \(X\) and (2) for the \(pdf\) of Lindley random variable \(Y\), the \(cdf\) of the ratio \(Z = \left| \frac{X}{Y} \right|\) is given as

$$\begin{aligned} F_{Z} \left( z \right) & = \Pr \left( {\left| \frac{X}{Y} \right| \le z} \right) \\ & = \Pr \left( {\left| X \right| \le z\,\left| Y \right|} \right) = \int\limits_{0}^{\infty } {F_{X} \left( {z\,y} \right)\;f_{Y} (y)\;dy} \\ & = \;\int\limits_{0}^{\infty } {\left[ {1\; - \;\left( {\frac{\alpha \; + \;1\; + \;\alpha \,z\,y}{{\alpha \; + \;1}}} \right)\,\,e^{ - \,\alpha \,z\,y} } \right]\,\left\{ {\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\,\left( {1\; + \;y} \right)\,e^{ - \,\beta \,y} } \right\}} \,dy\,\quad \;\;\quad \;\;\;\quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \; \\ & = \;\int\limits_{0}^{\infty } {\left[ {\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\,\left( {1\; + \;y} \right)\,e^{ - \,\beta \,y} \; - \;\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\left( {\frac{\alpha \; + \;1\; + \;\alpha \,z\,y}{{\alpha \; + \;1}}} \right)\,\,\left( {1\; + \;y} \right)\,e^{{ - \,\left( {\alpha \,z\; + \;\beta } \right)\,y}} } \right]\,} \,dy\,. \\ \end{aligned}$$
(6)

In the right-hand side of the last Eq. (6), we note that the first integral is equal to 1 as integrand is the \(pdf\) (2) of Lindley random variable \(Y\). Thus, by substituting \(\left( {\alpha \,z\; + \;\beta } \right)\,y\; = \;t\) in (6), integrating it with respect to \(t\) from \(t\; = \;0\) to \(t\; = \;\infty\), using Lemma A.1, and then simplifying, the proof of Theorem 1 easily follows.

2.2 pdf of the Ratio \(Z = \left| \frac{X}{Y} \right|\)

In this subsection, we derive the explicit expressions for the \(pdf\) of \(Z\; = \;\left| \frac{X}{Y} \right|\) in Theorem 2.

Theorem 2

Suppose \(X\) is a Lindley random variable with \(pdf\) (1) and \(cdf\) (3). Also, suppose \(Y\) is another Lindley random variable with \(pdf\) (2) and \(cdf\) (4). Then the \(pdf\) of the ratio \(Z = \left| \frac{X}{Y} \right|\) is given by

$$f_{Z} \,\left( z \right)\; = \;\left( {\frac{{\alpha^{2} }}{\alpha \; + \;1}} \right)\,\,\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right].$$
(7)

Proof

The pdf of \(Z = \left| \frac{X}{Y} \right|\) can be expressed as

$$\begin{aligned} f_{Z} \,\left( z \right) & = \int\limits_{0}^{\infty } {y\,f_{X} \left( {z\,y\,} \right)\;f_{Y} (y)\;dy} \\ & = \,\;\left( {\frac{{\alpha^{2} }}{\alpha \; + \;1}} \right)\,\,\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\;\int\limits_{0}^{\infty } {y\,\left( {1\; + \;z\,y} \right)\,\left( {1\; + \;y} \right)\,e^{{ - \,\left( {\alpha \,z\; + \;\beta } \right)\,y}} } \,dy \\ & = \,\;\left( {\frac{{\alpha^{2} }}{\alpha \; + \;1}} \right)\,\,\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\;\int\limits_{0}^{\infty } {\left[ {y\; + \;\left( {z\; + \;1} \right)\,y^{2} \; + \;z\,y^{3} } \right]\,e^{{ - \,\left( {\alpha \,z\; + \;\beta } \right)\,y}} } \,dy. \\ \end{aligned}$$
(8)

By substituting \(\left( {\alpha \,z\; + \;\beta } \right)\,y\; = \;t\) in (8), integrating it with respect to \(t\) from \(t\; = \;0\) to \(t\; = \;\infty\), using Lemma A.1, and then simplifying, the proof of Theorem 2 easily follows.

2.3 Plots of the pdf and cdf of the Ratio \(Z = \left| \frac{X}{Y} \right|\)

The possible shapes of the \(pdf\) (7) and \(cdf\) (5) of the ratio for \(\alpha \; = \;0.5\) and different values of \(\beta\), and for \(\beta = 0.5\) and different values of \(\alpha\), are provided in Figs. 1, 2, 3 and 4, respectively. The effects of the parameters are evident from these graphs. In view of these graphs, the proposed distribution appears to be unimodal and right skewed.

Fig. 1
figure 1

\(pdf\), when \(\alpha \; = \;0.5\) and \(\beta \; = \;0.2,\;0.5,\;1,\;2\)

Fig. 2
figure 2

\(pdf\), when \(\alpha \; = \;0.1,\;0.3,\;0.5,\;1\) and \(\beta \; = \;0.5\)

Fig. 3
figure 3

\(cdf\), when \(\alpha \; = \;0.5\) and \(\beta \; = \;0.2,\;0.5,\;1,\;2\)

Fig. 4
figure 4

\(cdf\), when \(\alpha \; = \;0.1,\;0.3,\;0.5,\;1\) and \(\beta \; = \;0.5\)

2.4 Moments

In this subsection, the expressions for the moments of RV \(Z = \left| \frac{X}{Y} \right|\) have been derived. We derive the \(kth\) moment of RV \(Z = \left| \frac{X}{Y} \right|\) in terms of beta function, where \(- 1\; < \;k\; < \;1\). It will be noted that only the fractional moments of order \(- 1\; < \;k\; < \;1\) of Z exist.

Theorem 3

If \(Z\) is a random variable with pdf given by (7), then its \(kth\) moment can be expressed as

$$\begin{gathered} E\,\left( {Z^{k} } \right) = \left( {\frac{1}{\alpha \; + \;1}} \right)\,\,\left( {\frac{1}{\beta \; + \;1}} \right)\,\,\left( {\frac{\beta }{\alpha }} \right)^{k} \,\left[ {\,\alpha \,\left( {\beta \; + \;2} \right)B\,\left( {k\; + \;1\,,\;1 - k} \right)} \right. \hfill \\ \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \left. { + \;2\,\beta \,B\,\left( {k\; + \;2\,,\;1 - k} \right)\; + \;6\,B\,\left( {k\; + \;2\,,\;2 - k} \right)\,} \right], \hfill \\ \end{gathered}$$
(9)

where \(- 1\; < \;k\; < \;1\) and \(B\,\left( . \right)\), denotes Beta function (or Euler’s function of the first kind).

Proof

We have

$$E\,\left( {Z^{k} } \right) = \;\int\limits_{0}^{\infty } {z^{k} } \left( {\frac{{\alpha^{2} }}{\alpha \; + \;1}} \right)\,\,\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right]\;dz.$$
(10)

Using Lemma A.2 (Appendix II) in (10), integrating and simplifying, the Theorem 3 easily follows, provided \(- 1\; < \;k\; < \;1\). It is evident from Theorem 3 that only the fractional moments of order \(- 1\; < \;k\; < \;1\) of Z exist. For a recent nice paper on fractional moments of any real order \(p\) of any real-valued random variable \(X\) with \(E\left( {\left| X \right|^{p} } \right)\; < \;\infty\), and, in particular, for the fractional moments of a Poisson distribution (see, Pinelis [29]. The interested readers are also referred to Ahsanullah et al. [2], Shakil and Kibria [31], and Shakil et al. [32], where the authors have developed some continuous probability distributions with fractional moments. As pointed out by Ahsanullah et al. [2], one of the earliest examples on calculating the non-integer moments (NIM) was related to the spans of random walks. More recently, the properties of non-integer moments have found application in the study of random resistor networks, chaos, and diffusion-limited aggregation (see Weiss et al. (39), and references therein). Also, one is referred to Consortini and Rigal [8] and Innocenti and Consortini [14] for the usefulness of fractional moments in atmospheric laser scintillation. Using the software Maple, and Eq. (8), the graphs of the moment, \(E\;\left( {Z^{k} } \right)\), when \(- 0.5\; \le \;k\; \le \;0.5\), for some values of the parameter, are sketched in Fig. 5.

Fig. 5
figure 5

Plots of the moment, \(E\;\left( {Z^{k} } \right)\), when \(- 0.5\; \le \;k\; \le \;0.5\)

From Fig. 5, it is observed that, for \(- 0.5\; \le \;k\; \le \;0.5\), the moment, \(E\;\left( {Z^{k} } \right)\), is a concave up function of \(k\), for the given values of parameters, and, obviously, as \(k\; \to \; \pm 1\), \(E\;\left( {X^{k} } \right)\; \to \;\infty\).

2.5 Entropy of the RV \(Z = \left| \frac{X}{Y} \right|\)

The entropy of a continuous random variable \(Z\) is a measure of variation of uncertainty and has applications in many fields such as physics, engineering and economics, among others. According to Shannon [37], the entropy measure of a continuous real random variable \(Z\) is given by

$$E\,\left( { - \ln f_{Z} (z)} \right) = - \int\limits_{0}^{\infty } {\left[ {\ln f_{Z} (z)} \right]\;f_{Z} (z)\;dz}$$
(11)

Using the expression (7) for the pdf in the above Eq. (11) and simplifying, we easily have

$$\begin{gathered} E\,\left( { - \ln f_{Z} (z)} \right) \hfill \\ \quad = \;\ln \left[ {\frac{{\left( {\alpha \; + \;1} \right)\,\left( {\beta \; + \;1} \right)}}{{\alpha^{2} \,\beta^{2} \,}}} \right]\; - \;E\,\left( {\ln \,\left( {\frac{{\left( {\left( {\alpha \; + \;2} \right)\,z\; + \;\beta } \right)\,\left( {\alpha \,z\; + \;\beta \; + \;2} \right)\; + \;2\,z}}{{\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right)} \right). \hfill \\ \end{gathered}$$
(12)

Obviously, the expected value in Eq. (12) cannot be evaluated analytically in closed form and so requires some appropriate numerical quadrature formulas for computations. As such, we have computed the Shannon entropy of the distribution of the ratio \(Z = \left| \frac{X}{Y} \right|\) numerically as provided in Table 1 for two sets of values: (A) for \(\alpha \; = \;0.5\) and different values of \(\beta\), and (B) for \(\beta = 0.5\) and different values of \(\alpha\).

Table 1 Shannon entropy of RV \(Z = \left| \frac{X}{Y} \right|\)

The behavior of entropy as given in Table 1 is evident for the two sets of values of the parameters \(\alpha\) and \(\beta\). It is observed from Set A that for fixed \(\alpha \; = \;0.5\), the entropy is an increasing function of the parameters \(\beta\). On the other hand, from Set B, we observe that, for fixed \(\beta \; = \;0.5\), the entropy is a decreasing function of the parameters \(\alpha\).

2.6 Percentiles

The percentage points \(z_{p}\) of the distribution of ratio \(Z = \left| \frac{X}{Y} \right|\) by numerically solving the equations for the cdf in Theorem 1, that is, \(F\,(z_{p} ) = \int\limits_{0}^{{z_{p} }} {f_{Z} (} u)\,du = p\) (say), for any \(0 < p < 1\), or \(z_{p} \; = \;F^{ - 1} \left( p \right)\), by taking different sets of values of the parameters. The percentage points \(z_{p}\) associated with the cdf of \(Z\) are computed by using Maple software for \(\alpha \; = \;1\) and different values of \(\beta\), and for \(\beta = 0.5\) and different values of \(\alpha\), respectively. These are provided in the Table 2. Similar percentage points \(z_{p}\) can be obtained for other values of \(\alpha\) and \(\beta\). We believe that the percentile points will be useful for the researchers as mentioned in Sect. 1.

Table 2 Percentage points of \(Z = \left| \frac{X}{Y} \right|\)

3 Characterizations

The characterization of a probability distributions plays an important role in probability and statistics. In order to apply a particular probability distribution to some real world data, it is very important to characterize it first subject to certain conditions. As pointed out by Nagaraja [26], “A characterization uses a certain distributional or statistical property of a statistic or statistics that uniquely determines the associated stochastic model”. There are various methods of characterizations to identify the distribution of a real data set, see for example Ahsanullah [3]. The general theories of characterization of distributions were discussed by Kagan et al. [15], followed by Galambos and Kotz [11], among others. One of the most important method of characterization is the method of truncated moments. We shall prove the characterization theorems by the left and right truncated conditional expectations of \(Z^{k}\), by considering a product of reverse hazard rate and another function of the truncated point. We shall need the following assumption.

Assumption 1

Suppose the random variable \(Z\) is absolutely continuous with the cumulative distribution function \(F(z)\) and the probability density function \(f(z)\). We assume that \(\omega \; = \;\inf \,\left\{ {\,z\,\,|\,\,F\,\left( z \right)\; > \;0\,} \right\}\), and \(\delta \; = \;\sup \,\left\{ {\,z\;|\;F\,\left( z \right)\; < \;1\,} \right\}\). We also assume that \(f(z)\) is a differentiable for all \(z\), and \(E\,\left( {Z^{k} } \right)\) exists, where \(- 1\; < \;k\; < \;1\).

Case 1: We shall need the following lemma.

Lemma 1

Suppose that a non-negative random variable \({\text{Z}}\) has an absolutely continuous (with respect to Lebesgue measure) cdf (\({\text{F}}\left( Z \right)\)) and pdf (\({\text{f}}\left( z \right)\)). Suppose the random variable \({\text{Z}}\) satisfies the Assumption 6.1 with \(\omega \; = \;0\) and \(\delta = \infty\). We assume that \(f^{/} \left( z \right)\) exits for all \({\text{z}}\) and \(0\; < \;E\,\left( {Z^{k} } \right)\; < \;\infty\), where \(- 1\; < \;k\; < \;1\). Then, if

$$E(Z^{k} |Z \le \;z) = g\left( z \right)\,\tau \left( z \right),\;{\text{where}}\;\tau \left( z \right)\; = \;\frac{f\left( z \right)}{{F\left( z \right)}}\;{\text{for all}}\;z\; > \;0\;{\text{and}}\;g^{/} \left( z \right)\;{\text{exists for all}}\;z\; > \;0,$$

we have

\(f\left( z \right)\; = \;c\,e^{{\int {\frac{{z^{k} \; - \;g^{/} \left( z \right)}}{g\left( z \right)}} \,dz}} ,\;{\text{for all}}\;z\; > \;0,\;{\text{where}}\;c\;{\text{is a constant and}}\;c = \int_{0}^{\infty } {f\left( z \right)d} z.\)

Proof

We have

\(E(Z^{k} |Z \le \;z) = \frac{{\int_{0}^{z} {u^{k} \,f\left( u \right)du} }}{F\left( z \right)}.\).

Thus,

$$\int_{0}^{z} {u^{k} \,f\left( u \right)du} \; = \;g\left( z \right)\,f\left( z \right).$$

Differentiating both sides of the equation, we obtain

$$z^{k} \,f(z)\; = \;g^{/} (z)\,f(z)\; + \;g(z)\,f^{/} (z)\,,$$

or,

$$\frac{{f^{/} (z)}}{f(z)} = \frac{{z^{k} - g^{/} (z)\,}}{g(z)}$$

Integrating both sides of the above equation, we obtain.

\(f\left( z \right)\; = \;c\,e^{{\int {\frac{{z^{k} \; - \;g^{/} \left( z \right)}}{g\left( z \right)}} \,dz}} .\).

for all \(z\; > \;0\), where \(c\) is a constant and \(c = \int_{0}^{\infty } {f\left( z \right)d} z\). This completes the proof of Lemma 1.

Theorem 4

Suppose that the random variable \(Z\) satisfies the Assumption 1 with \(\omega \; = \;0\) and \(\delta = \infty\). Then \(E(Z^{k} |Z \le \;z) = g\left( z \right)\,\frac{f\left( z \right)}{{F\left( z \right)}}\), where

$$g\,\left( z \right)\; = \;\frac{{I_{k} \left( z \right)\,}}{{\left( {\frac{{\alpha^{2} }}{\alpha \; + \;1}} \right)\,\,\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right]}},$$
(13)

if and only if \(Z\) has the pdf

$$f_{Z} \,\left( z \right)\; = \;\left( {\frac{{\alpha^{2} }}{\alpha \; + \;1}} \right)\,\,\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right],$$

where \(I_{k} \left( z \right) = \;\int_{0}^{z} {u^{k} } f\,\left( u \right)\,du\) denotes \(kth\) incomplete moment of \(Z\), (see Theorem A.1, Appendix II).

Proof

Suppose that \(E(Z^{k} |Z \le \;z) = g\left( z \right)\,\frac{f\left( z \right)}{{F\left( z \right)}}\). Then, since \(E(Z^{k} |Z \le \;z)\; = \;\frac{{\int_{0}^{z} {u^{k} } \,f\,\left( u \right)\,du}}{{F_{\kern 1pt} \,\left( z \right)}}\), we have \(g\,\left( z \right)\; = \;\frac{{\int_{0}^{z} {u^{k} } \,f\,\left( u \right)\,du}}{{f_{\kern 1pt} \,\left( z \right)}}\). Now, if the random variable \({\text{Z}}\) satisfies the Assumption 1 and has the distribution with the pdf (7), then we have

$$\begin{aligned} g\,\left( z \right)\; & = \;\frac{{\int_{0}^{z} {u^{k} } f\,\left( u \right)\,du}}{{f_{\kern 1pt} \,\left( z \right)}} \\ & = \;\frac{{I_{k} \left( z \right)\,}}{{\left( {\frac{{\alpha^{2} }}{\alpha \; + \;1}} \right)\,\,\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right]}}, \\ \end{aligned}$$

where, as mentioned above, \(I_{k} \left( z \right)\; = \;\int_{0}^{z} {u^{k} } f\,\left( u \right)\,du\) denotes \(kth\) incomplete moment of \(Z\).. Consequently, the proof of “if” part of Theorem 1 follows from Lemma 1.

Conversely, suppose that

$$g\,\left( z \right)\; = \;\frac{{I_{k} \left( z \right)\,}}{{\left( {\frac{{\alpha^{2} }}{\alpha \; + \;1}} \right)\,\,\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right]}},$$

where \(I_{k} \left( z \right)\; = \int_{0}^{z} {u^{k} } f\,\left( u \right)\,du\). Now, from Lemma 1, we have,

$$g\,\left( z \right)\; = \;\frac{{\int_{0}^{z} {u^{k} } f\,\left( u \right)\,du}}{{f_{\kern 1pt} \,\left( z \right)}},$$

or

$$\int_{0}^{z} {u^{k} } f\,\left( u \right)\,du = f(z)g(z).$$

Differentiating the above equation with respect to respect to \(x\), we obtain

$$z^{k} \,f\,\left( z \right)\; = \;f^{/} \left( z \right)\,g(z)\; + \;f\left( z \right)\,g^{/} \left( z \right)$$

from which, using the pdf \(f\,\left( z \right)\) and its first derivative \(f^{/} \left( z \right)\), we haveor

$$g^{/} (z)\; = \;z^{k} \; - \;g\,\left( z \right)\,\frac{{\left[ {\frac{{ - 2\,\left( {\alpha \; - \;1} \right)}}{{\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; - \;\frac{6\,\alpha \,z}{{\left( {\alpha \,z\; + \;\beta } \right)^{4} }}\; - \;\frac{24\,\alpha \,z}{{\left( {\alpha \,z\; + \;\beta } \right)^{5} }}} \right]}}{{\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right]\,}},$$
$$\frac{{z^{k} \; - \;g^{/} (z)}}{g\,\left( z \right)}\; = \;\frac{{\left[ {\frac{{ - 2\,\left( {\alpha \; - \;1} \right)}}{{\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; - \;\frac{6\,\alpha \,z}{{\left( {\alpha \,z\; + \;\beta } \right)^{4} }}\; - \;\frac{24\,\alpha \,z}{{\left( {\alpha \,z\; + \;\beta } \right)^{5} }}} \right]}}{{\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right]\,}}.$$
(14)

Since, by Lemma 1, we have

$$\frac{{f^{/} (z)}}{f(z)} = \frac{{z^{k} - g^{/} (z)\,}}{g(z)},$$
(15)

see Shakil et al. [33]

Therefore, from (14) and (15), it follows that

$$\frac{{f^{/} \left( z \right)}}{f\left( z \right)}\; = \;\frac{{\left[ {\frac{{ - 2\,\left( {\alpha \; - \;1} \right)}}{{\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; - \;\frac{6\,\alpha \,z}{{\left( {\alpha \,z\; + \;\beta } \right)^{4} }}\; - \;\frac{24\,\alpha \,z}{{\left( {\alpha \,z\; + \;\beta } \right)^{5} }}} \right]}}{{\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right]\,}}.$$
(16)

Now, integrating Eq. (16) with respect to \(z\) and simplifying, we haveor

$$\ln \left( {f\left( z \right)} \right)\; = \;\ln \left( {c\,\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right]} \right),$$
$$f\left( z \right)\; = \;c\,\left( {\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right]} \right),$$
(17)

where \(c\) is the normalizing constant to be determined. Integrating Eq. (17) with respect to \(z\) from \(z\; = \;0\) to \(x\; = \;\infty\), and using the condition \(\int_{0}^{\infty } {f\,\left( z \right)} dz = 1\), we obtain

$$\frac{1}{c}\; = \;\int\limits_{0}^{\infty } {\left( {\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right]} \right)} \,\,dz.$$
(18)

Now, substituting \(\alpha \,z\; + \;\beta \; = \;u\) in (16), then integrating it with respect to \(u\) from \(u\; = \;\beta\) to \(t\; = \;\infty\), and simplifying, it is easily seen that.

$$\frac{1}{c}\; = \;\;\left( {\frac{\alpha \; + \;1}{{\alpha^{2} }}} \right)\,\,\left( {\frac{\beta \; + \;1}{{\beta^{2} }}} \right),$$

This completes the proof of Theorem 1.

Case 2: We shall need the following lemma.

Lemma 2

Suppose that a non-negative random variable \({\text{Z}}\) has an absolutely continuous (with respect to Lebesgue measure) cdf (\({\text{F}}\left( Z \right)\)) and pdf (\({\text{f}}\left( z \right)\)). Suppose the random variable \({\text{Z}}\) satisfies the Assumption 1 with \(\omega \; = \;0\) and \(\delta = \infty\). We assume that \(f^{/} \left( z \right)\) exits for all \({\text{z}}\) and \(0\; < \;E\,\left( {Z^{k} } \right)\; < \;\infty\), where \(- 1\; < \;k\; < \;1\). Then, if \(E(Z^{k} |Z\; \ge \;z) = h\left( z \right)\,r\left( z \right)\), where \(r\left( z \right)\; = \;\frac{f\left( z \right)}{{1\; - \;F\left( z \right)}}\) for all \(z\; > \;0\) and \(h\,\left( z \right)\) is a continuous differentiable function of \(z\) with the condition that \(\,\int_{z}^{\infty } {\,\frac{{u^{k} \; + \;\left[ {h\,\left( u \right)} \right]^{/} }}{h\,\left( u \right)}\,du}\) is finite for \(z > 0\), then \(f\left( z \right)\; = \;c\,e^{{ - \,\int_{z}^{\infty } {\,\frac{{u^{k} \; + \;\left[ {h\,\left( u \right)} \right]^{/} }}{h\,\left( u \right)}\,du} }}\), where \(c\) is a constant determined by the condition \(\int_{0}^{\infty } {f(z)} dz\; = \;1\).

Proof

The proof is similar to Lemma 1.

Theorem 5

Suppose that the random variable \({\text{Z}}\) satisfies the Assumption 1 with \(\omega \; = \;0\) and \(\delta = \infty\). Then \(E(Z^{k} |Z \ge \;z) = h\left( z \right)\,\frac{f\left( z \right)}{{1\; - \;F\left( z \right)}}\), where \(h\left( z \right)\; = \;\frac{{\left( {E\left( {Z^{k} } \right)\; - \;g\left( z \right)\,f\left( z \right)} \right)}}{f\left( z \right)}\), \(E\left( {Z^{k} } \right)\) is given by Eq. (9), and \(g\left( z \right)\) is given by Eq. (13), if and only if \({\text{Z}}\) has the pdf

$$f_{Z} \,\left( z \right)\; = \;\left( {\frac{{\alpha^{2} }}{\alpha \; + \;1}} \right)\,\,\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\,\left[ {\frac{1}{{\left( {\alpha \,z\; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z\; + \;1} \right)}}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{3} }}\; + \;\frac{6\,z}{{\,\left( {\alpha \,z\; + \;\beta } \right)^{4} }}} \right].$$

Proof

Proceeding in the same way as in Theorem 4, following similar arguments, the proof of Theorem 5 easily follows using Lemma 2.

4 Estimation

In this section, we provide the estimation of the parameters of the distribution of ratio \(Z = \left| \frac{X}{Y} \right|\) by the method of maximum likelihood (MLE). Given a sample \(\left\{ {\,z_{i} \,} \right\}\), \(i\; = \;1,\;2,\;3,\; \ldots ,\;n\), from a population with the distribution of ratio \(Z = \left| \frac{X}{Y} \right|\), the likelihood function is given by

$$\begin{aligned} L\,\left( {\alpha ,\;\beta } \right) & \; = \;\prod\limits_{i\; = \;1}^{n} {\,f\,\,\left( {\,z_{i} ,\;\alpha ,\;\beta } \right)} \\ & = \;\prod\limits_{i\; = \;1}^{n} \, \left( {\frac{{\alpha^{2} }}{\alpha \; + \;1}} \right)\,\,\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)\,\,\left[ {\frac{1}{{\left( {\alpha \,z_{i} \; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z_{i} \; + \;1} \right)}}{{\,\left( {\alpha \,z_{i} \; + \;\beta } \right)^{3} }}\; + \;\frac{{6\,z_{i} }}{{\,\left( {\alpha \,z_{i} \; + \;\beta } \right)^{4} }}} \right] \\ & = \;\left( {\frac{{\alpha^{2} }}{\alpha \; + \;1}} \right)^{n} \,\,\left( {\frac{{\beta^{2} }}{\beta \; + \;1}} \right)^{n} \,\,\prod\limits_{i\; = \;1}^{n} \, \,\left[ {\frac{1}{{\left( {\alpha \,z_{i} \; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z_{i} \; + \;1} \right)}}{{\,\left( {\alpha \,z_{i} \; + \;\beta } \right)^{3} }}\; + \;\frac{{6\,z_{i} }}{{\,\left( {\alpha \,z_{i} \; + \;\beta } \right)^{4} }}} \right] \\ \end{aligned}$$

The objective of the likelihood function approach is to determine those values of the parameters that maximize the function \(L\). Then, taking the natural logarithm, the log-likelihood function is given by

$$\begin{aligned} R\; & = \;\ln \,\left( {\,L\,} \right) \\ & = \;n\,\left( {2\ln \alpha \; - \;\ln \left( {\alpha \; + \;1} \right)} \right)\; + \;n\,\left( {2\ln \beta \; - \;\ln \left( {\beta \; + \;1} \right)} \right) \\ & \;\;\, + \;\sum\limits_{i\; = \;1}^{n} {\ln \left[ {\frac{1}{{\left( {\alpha \,z_{i} \; + \;\beta } \right)^{2} }}\; + \;\frac{{2\,\left( {z_{i} \; + \;1} \right)}}{{\,\left( {\alpha \,z_{i} \; + \;\beta } \right)^{3} }}\; + \;\frac{{6\,z_{i} }}{{\,\left( {\alpha \,z_{i} \; + \;\beta } \right)^{4} }}} \right]} . \\ \end{aligned}$$

Thus, the maximum likelihood estimates (MLE) of the parameters \(\alpha\) and \(\beta\) are obtained by setting \(\frac{\partial \,R}{{\partial \,\alpha }}\; = \;0\), \(\frac{\partial \,R}{{\partial \,\beta }}\; = \;0\), from which we obtain the following system of maximum likelihood equations:

$$\frac{\partial R}{\partial \alpha }\hspace{0.33em}=\hspace{0.33em}\frac{n\left(\alpha \hspace{0.33em}+2\right)}{\alpha \left(\alpha \hspace{0.33em}+\hspace{0.33em}1\right)}\hspace{0.33em}-\hspace{0.33em}{\sum }_{i\hspace{0.33em}=\hspace{0.33em}1}^{n}\frac{\frac{2{z}_{i}}{{\left(\alpha {z}_{i}\hspace{0.33em}+\hspace{0.33em}\beta \right)}^{3}}\hspace{0.33em}+\hspace{0.33em}\frac{6{z}_{i}\left({z}_{i}\hspace{0.33em}+\hspace{0.33em}1\right)}{{\left(\alpha {z}_{i}\hspace{0.33em}+\hspace{0.33em}\beta \right)}^{4}}\hspace{0.33em}+\hspace{0.33em}\frac{24{{z}_{i}}^{2}}{{\left(\alpha {z}_{i}\hspace{0.33em}+\hspace{0.33em}\beta \right)}^{5}}\hspace{0.33em}}{\left[\frac{1}{{\left(\alpha {z}_{i}\hspace{0.33em}+\hspace{0.33em}\beta \right)}^{2}}\hspace{0.33em}+\hspace{0.33em}\frac{2\left({z}_{i}\hspace{0.33em}+\hspace{0.33em}1\right)}{{\left(\alpha {z}_{i}\hspace{0.33em}+\hspace{0.33em}\beta \right)}^{3}}\hspace{0.33em}+\hspace{0.33em}\frac{6{z}_{i}}{{\left(\alpha {z}_{i}\hspace{0.33em}+\hspace{0.33em}\beta \right)}^{4}}\right]}\hspace{0.33em}=\hspace{0.33em}0,$$
(19)
$$\frac{\partial R}{\partial \beta }\hspace{0.33em}=\hspace{0.33em}\frac{n\left(\beta \hspace{0.33em}+2\right)}{\beta \left(\beta +\hspace{0.33em}1\right)}\hspace{0.33em}-\hspace{0.33em}{\sum }_{i\hspace{0.33em}=\hspace{0.33em}1}^{n}\frac{\frac{2}{{\left(\alpha {z}_{i}\hspace{0.33em}+\hspace{0.33em}\beta \right)}^{3}}\hspace{0.33em}+\hspace{0.33em}\frac{6\left({z}_{i}\hspace{0.33em}+\hspace{0.33em}1\right)}{{\left(\alpha {z}_{i}\hspace{0.33em}+\hspace{0.33em}\beta \right)}^{4}}\hspace{0.33em}+\hspace{0.33em}\frac{24{z}_{i}}{{\left(\alpha {z}_{i}\hspace{0.33em}+\hspace{0.33em}\beta \right)}^{5}}\hspace{0.33em}}{\left[\frac{1}{{\left(\alpha {z}_{i}\hspace{0.33em}+\hspace{0.33em}\beta \right)}^{2}}\hspace{0.33em}+\hspace{0.33em}\frac{2\left({z}_{i}\hspace{0.33em}+\hspace{0.33em}1\right)}{{\left(\alpha {z}_{i}\hspace{0.33em}+\hspace{0.33em}\beta \right)}^{3}}\hspace{0.33em}+\hspace{0.33em}\frac{6{z}_{i}}{{\left(\alpha {z}_{i}\hspace{0.33em}+\hspace{0.33em}\beta \right)}^{4}}\right]}\hspace{0.33em}=0.$$
(20)

Solving the above system of maximum likelihood Eqs. (19) and (20) by applying the Newton–Raphson’s iteration method and using the computer package such as Maple, or R or MathCAD14, or other software, the maximum likelihood estimates (MLE) of the parameters \(\alpha\) and \(\beta\) can be obtained.

5 Applications

We demonstrate the applicability of our proposed EDTPL by considering two different data sets, namely, Bladder Cancer and COVID-19. The goodness-of-fit tests of our proposed EDTPL distribution is provided by comparing it with the fitting of some well-known right-skewed variations of Lindley distribution, namely; the LD Lindley [17], the NGLD Elbatal et al. [9], the NQLD (Shanker and Amanuel (34)), and ATPLD Shanker et al. [36], to the above said data sets. The parameters are estimated by using the maximum likelihood method, and for comparison we use − LL, K-S test, AIC, CAIC, BIC and HQIC. For details on these, the interested readers are also referred to Emiliano et al. [10]. All calculations for these criterions are executed by the computational software “MATHEMATICA 11.0”. The smaller values of these criteria for a distribution imply that the distribution fits better to the data.

Example 1

Application to Data for Bladder Cancer Patients

We consider an uncensored data set corresponding to remission times (in months) of a random sample of 128 bladder cancer patients (Lee and Wang (19)) as presented in Table 3.

Table 3 Data for bladder cancer patients

We have tested the normality of the data by Ryan-Joiner Test (Similar to Shapiro–Wilk Test), which is provided in Table 4.

Table 4 Ryan-Joiner normality assessment

From Table 4 of Ryan-Joiner Test of Normality Assessment, it is obvious that the shape of the data for bladder cancer patients is skewed to the right with a heavy-tailed distribution and is leptokurtic. This is also obvious from the skewness and kurtosis of the data which are computed as 3.4175 and 16.7810, respectively. Furthermore, since fitting of a probability distribution to the data for bladder cancer patients may be helpful in predicting the probability or forecasting the frequency of occurrence of the bladder cancer of patients, this suggests that y, the bladder cancer of patients, could possibly be modeled by some skewed distributions. Since our data are skewed in nature, we fitted our proposed ratio distribution to this data and compared it with the above-stated variations of Lindley distribution. The measures of goodness-of-fit including the AIC, CAIC, BIC, HQIC and K-S statistics are computed to compare the fitted models, which are provided in Table 5. In general, the distribution with smaller values of these statistics better fits to the data.

Table 5 The estimators of parameters for bladder cancer patients

Data Analysis: It is observed from the above results in Table 5 that our proposed ratio distribution (EDTPL) has smaller values of the AIC, CAIC, BIC, HQIC and K-S statistics as compared to the distributions, namely; the LD, the NGLD, the NQLD, and ATPLD. Therefore, we conclude that our proposed ratio distribution (EDTPL) fits better to the data for bladder cancer patients than the rest of the distributions considered here. For the estimated parameters, the pdfs of these distributions have been superimposed on the histogram of the said cancer data set as provided in Fig. 6.

Fig. 6
figure 6

Fitted densities for cancer data (Table 8)

Example 2

Application to COVID-19 Data of Italy:

The second data represents COVID-19 mortality rates data of Italy for 59 days that is recorded from 27 February to 27 April 2020. The data are provided in Table 6 as follows:

Table 6 COVID-19 data of Italy

We have tested the normality of the data by Ryan-Joiner Test (Similar to Shapiro–Wilk Test), which is provided in Table 7.

Table 7 Ryan-Joiner normality assessment

The skewness and kurtosis of the data are computed as 0.464258 and − 0.841489, respectively. It is obvious from these and the Table 7 of Ryan-Joiner Test of Normality Assessment that the shape of the data for COVID-19 mortality rates is skewed to the right with a light-tailed distribution and lack of outliers, and is platykurtic. Furthermore, since fitting of a probability distribution to the data for COVID-19 mortality rates may be helpful in predicting the probability or forecasting the frequency of occurrence of the COVID-19 mortality rates, this suggests that y, the COVID-19 mortality rates, could possibly be modeled by some skewed distributions. Since our data are skewed in nature, we fitted our proposed ratio distribution (EDTPL) to this data and compared it with those of the above-mentioned right-skewed variations of Lindley distribution; the LD, the NGLD, the NQLD and ATPLD. The measures of goodness-of-fit including the AIC, CAIC, BIC, HQIC and K-S statistics are computed to compare the fitted models, which are provided in Table 8. In general, the distribution with the smaller values of these statistics better fits to the data.

Table 8 The estimators of parameters for COVID-19 data of Italy

Data Analysis: It is observed from the results given above in Table 8 that our proposed exact distribution (EDTPL) has smaller values of the AIC, CAIC, BIC, HQIC and K-S statistics as compared to the compared distributions. Therefore, we conclude that our proposed exact distribution (EDTPL) fits better to the COVID-19 mortality rates data of Italy for 59 days (recorded from 27 February to 27 April 2020) than the LD, the NGLD, the NQLD and ATPLD. For the estimated parameters, the pdfs of these distributions have been superimposed on the histogram of the said COVID-19 mortality rates data set as provided in Fig. 7.

Fig. 7
figure 7

Fitted densities for COVID-19 data (Table 4)

6 Concluding Remarks

This paper has derived the exact distribution of the ratio of two independent Lindley random variables \(X\) and \(Y\). The expressions for the associated cdf, pdf, moment and entropy of the ratio of two variables are given. The plots for the pdf, cdf and moment are provided. The percentile points, characterizations, parameter estimation and some applications are also given. We hope that the topic is practically significant and the proposed model may attract wider applications in many areas of real-world data sets. Furthermore, we hope the findings of the paper will be useful for the practitioners in various fields of applied sciences as mentioned in Sect. 1.