1. Introduction
The comparison of random quantities in terms of the so called “stochastic orders” has received great attention along the last 50 years and we can find applications of this topic in different fields such as reliability, insurance, risks, finance, epidemics, and so on (see [
1,
2,
3,
4,
5,
6]). This topic deals with several criteria to compare two random quantities in order to select which one is “larger”, according to their magnitude, dispersion, residual lifetimes, concentration, and so on. An interesting topic in this context is that of finding sufficient conditions for several stochastic orders when there are no closed expressions for some of the functions used in the comparison. Results in this direction can be traced from [
7] up to most recent ones by [
8,
9,
10] and the references therein. Whereas most of the results on this topic are given for continuous random variables, it is hard to find results in the discrete case. As far as we know, there is just one paper related to the comparison of two discrete random variables in the usual stochastic order (see [
11]). The purpose of this paper is to fill the gap and provide tools that are easy to deal with, to check if two discrete random variables are ordered according to the most prominent stochastic orders in reliability and survival analysis, which are the hazard rate and mean residual life orders.
Usually, the lifetime of a unit or a living organism is treated as a continuous random variable. However, there are situations where the random lifetime has to be treated as a discrete random variable. For example, in some cases, the number of operations completed correctly prior to the failure of the system or the number of times switching a device to turn it on till it fails is more interesting than the time until failure Moreover, even if the failure time has interest, we deal with discrete times whenever the unit or the system is checked only once per time period. Along the last two decades, there is an increasing interest in the study of reliability modeling and survival analysis in discrete time as can be seen in [
12]. Therefore, it is natural to study the hazard rate and mean residual life orders for discrete random variables.
Despite being a powerful tool to compare the residual lifetime of two random lifetimes, the checking of these criteria requires the computation of series which usually do not have a closed expression, which is an important disadvantage in real problems. It is well-known that a sufficient condition for both criteria is the likelihood ratio order, which is satisfied when the ratio of the mass probability (density) functions is monotone. However, there are many situations where this ratio is not monotone but it is unimodal. In the continuous case, the unimodality of the likelihood ratio has been proved to be a sufficient condition, under some additional mild conditions, for the hazard rate and mean residual life orders. In the discrete case, ref. [
11] related the unimodality of the ratio of two mass probability functions to the usual stochastic order, as well as applying the results to compare some well-known discrete families of distributions.
In this paper, we show that there are situations where the unimodality of the likelihood ratio is a sufficient condition for the hazard rate order (which is stronger than the stochastic order) or the mean residual life order. These results will be applied to the comparison of some of the most important discrete families of distributions in the context of reliability in discrete time.
The organization of the paper is as follows. In
Section 2 we state the notation and main definitions of reliability measures and stochastic orders that are considered along the paper. The main results are provided in
Section 3, where the unimodality of the likelihood ratio is related to the comparison of hazard rate and mean residual life functions. Later, in
Section 4, we provide applications of these results to the comparison of specific discrete parametric models of interest in reliability.
2. Notations and Definitions
In this section we provide the definition of the main reliability measures and stochastic orders considered in the context of reliability in discrete time. In order to provide a unified framework, we have followed [
12]. Along this paper “increasing” and “decreasing” mean “nondecreasing” and “nonincreasing,” respectively. For any random variable
X and any event
A, we use
to denote the random variable whose distribution is the conditional distribution of
X given
A. Given a discrete random variable
X the mass probability function will be denoted by
, the distribution function by
and the support by
. The lower and upper extremes of the support will be denoted by
and
, respectively. Given that in this context a random variable
X represents the random lifetime of an item or a living organism, the random variable is non negative with
and
.
First, we provide the definitions of the survival, hazard rate, and mean residual life functions.
Definition 1. Let X be a discrete random variable with mass probability function .
We define the following reliability measures:
- (i)
The survival function of X, denoted by , is defined as This function provides the probability of being alive at time x for a unit with random lifetime X.
- (ii)
The hazard rate function of X, denoted by , is defined as The hazard rate at time X is the probability to fail at time x for a unit that has survived up to time x, which is not the case for continuous distributions. Therefore, it is a local measure.
- (iii)
The mean residual life function of X, denoted by , is defined as The mean residual life is the expected additional time for a unit that has survived beyond x. This function is more informative than the hazard rate, given that it takes into account the history of the unit beyond x.
Remark 1. - (i)
If the support of X is , with , then . As a convention, we consider , for all . It is clear that , for all . Therefore, the interpretation and the boundedness of the hazard rate is different from that of the continuous case.
- (ii)
From Definition 1 (iii) trivially follows that .
Now, we introduce the discrete versions of the stochastic orders based on the previous reliability measures. Additionally, we give the definition of the likelihood ratio order.
Definition 2. Let X and Y be two discrete non negative random variables with . We say that:
- (i)
X is less than Y in the stochastic order, denoted by , if - (ii)
X is less than Y in the hazard rate order, denoted by , if where .
- (iii)
X is less than Y in the mean residual life order, denoted by , if - (iv)
X is less than Y in the likelihood ratio order, denoted by , if where is taken to be equal to whenever .
Remark 2. Taking into account that , it is easy to see that the condition in Definition 2 (ii) is equivalent to the following one The ratio is usually known as the likelihood ratio.
It is well-known that the following implications between the previous criteria hold
3. Sufficient Conditions Based on the Unimodality of the Likelihood Ratio
According to (
2), the monotonicity of the likelihood ratio is a sufficient condition for the hazard rate order (and the mean residual life and stochastic orders). However, there are situations where the likelihood ratio is non monotone. The purpose of this section is to provide sufficient conditions for the hazard rate and mean residual life orders when the likelihood ratio order is not satisfied, or equivalently, when the likelihood ratio is non monotone. Along the paper, we will denote by
l the ratio of the mass probability functions of
X and
Y, that is, the likelihood ratio will be denoted by
In addition, we will assume that l is (strictly) unimodal, that is, there exists a value , such that is increasing (not constant) over and decreasing (not constant) over . Despite the fact that a unimodal function can be increasing or decreasing according to the literature, the distinction among strictly unimodal functions and monotone functions is fundamental in our study. Therefore, when we assume unimodality, we mean strict unimodality.
The first theorem states the behavior of the ratio of the survival functions when is unimodal. As we will see, under some additional condition, the hazard rate order is satisfied when the likelihood ratio order does not hold. As we have mentioned previously, along this section we will assume that .
Theorem 1. Let X and Y be two discrete random variables with supports . If l is unimodal over , then
- (i)
is decreasing over if, and only if, .
- (ii)
is unimodal over if, and only if, .
Proof. Let us assume that is increasing for all and decreasing for all , where .
Then
and, from (
2),
. According to (
1), this inequality is equivalent to the following property
Now, let us define the following function
Since
is increasing over such set, we have for all
that
Therefore, is decreasing for all . Furthermore, since is decreasing for all , it is easy to see that .
Now, let us distinguish the following cases.
- (i)
: In this case, we have that
and, therefore,
for all
. Therefore,
or, equivalently,
, for all
, which is equivalent to
be decreasing over
. Therefore,
is decreasing over
. It is easy to see that, if
is decreasing over
, then
.
- (ii)
: In this case, we have that
Then, there exists a value such that for all and for all . Analogously to the previous case, we get that is (strictly) increasing for all and decreasing for all . Therefore, is unimodal over . Given the characterization in (i), if is unimodal over , then .
To sum up, combining (
3) with the previous discussion, we conclude that
is decreasing if, and only if,
and it is unimodal otherwise. □
We observe that the conditions on can be described in terms of the comparison of probability of failed components before to put into operation. For example if X is the lifetime of a device after a burn-in process then .
Therefore, there are situations where
is unimodal but the hazard rate order holds and, consequently, the mean residual life order too. Now, a natural question arises: In the situations where the ratio of the survival functions is unimodal, does the mean residual life order hold? Ref. [
10] provides a result in this direction in the continuous case. Given that the mean residual life function in the discrete case can be obtained from the formula in the continuous case, the next result trivially follows from Theorem 2.3 in [
10].
Theorem 2. Let X and Y be two discrete random variables with supports , and survival functions such that is unimodal over . Then, if, and only if, .
Remark 3. We also want to point out that the mean residual life order holds when the survival ratio is unimodal and , but the stochastic order does not hold. Let us justify this assertion. Given that is unimodal we have that , for all . Furthermore, there exists at least a value such that , since otherwise we have . Therefore, the stochastic order does not hold in such situations in any sense.
Taking into account this remark and Theorems 1 and 2, we can state the following corollary that characterizes the hazard rate and the mean residual life orders when the ratio of the mass probability functions is unimodal.
Corollary 1. Let X and Y be two discrete random variables with supports . If l is unimodal over , then
- (i)
if, and only if, .
- (ii)
() if, and only if, and .
As we have mentioned in the introduction, ref. [
11] has dealt with the unimodality of
l to establish conditions for the usual stochastic order for two discrete random variables. In particular, they prove that the umimodality and the condition in Corollary 1 (i) imply the stochastic order. Therefore, we have improved their result, concluding that the hazard rate order holds under such condition, which is stronger than the stochastic one. In fact, they also ask for another assumption on the limit of
l which is not necessary. Furthermore, we also state what happens in the situations where the limit condition is not satisfied, which characterizes all the possible scenarios in terms of these stochastic orders when the likelihood ratio
l is unimodal.
4. Applications
In this section we apply Corollary 1 and Theorem 2 to compare two random variables belonging to some of the most important discrete parametric families in reliability. The starting point is to apply Corollary 1 to look for situations where the likelihood ratio is unimodal. Unluckily, there are situations where this is not an easy task. It is well-known that a sufficient condition for the unimodality is the property of logconcavity. Let us formally define it.
Definition 3. Let be a succession of real values, then A is said to be logconcave if , for all , where k can be finite or infinite.
It is easy to see that if
is a succession of positive real values, then
A well-known property is that if
is logoncave and positive then
A is (not strictly) unimodal, that is, there exists a value
such that
(see [
13]) and, therefore,
A can be increasing, decreasing, or unimodal. In order to apply the results of the previous section, it is fundamental to determine if the succession of the likelihood ratio values is monotone or strictly unimodal. Next, we give a result that characterizes these two situations.
Proposition 1. Let be a logoncave and positive succession, and let us assume that exists. Then,
- (i)
A is decreasing if, and only if, .
- (ii)
A is increasing if, and only if, .
- (iii)
A is unimodal if, and only if, and .
Proof. Case (i): Let us assume first that
A is decreasing, then we have that
. Let us prove now the reversed implication. From (
4) we have that
is decreasing, therefore
and then
A is decreasing.
Case (ii): It follows under similar arguments as in case (i).
Case (iii): If A is unimodal the result follows from (i) and (ii). □
Next, we combine the previous proposition with Corollary 1 to provide sufficient conditions for the likelihood, hazard rate, and mean residual life orders, under the assumption of logconcavity of the likelihood ratio.
Proposition 2. Let X and Y be two discrete random variables with support in , such that , and mass probability functions such that is logconcave over . Then we have the following results:
- (i)
if, and only if, .
- (ii)
then
- (ii.a)
() if, and only if, .
- (ii.b)
() if, and only if, and .
Now, we provide an application of this result to the most classical parametric discrete models of interest in reliability, that is, the binomial, negative binomial and Poisson distributions, which are particular cases of the Panjer’s family. It is easy to see that is logconcave for any pair of Panjer’s distributions and, therefore, we can apply Proposition 2 to compare two random variables belonging to each one of these families. Let us formally define the Panjer’s family.
Example 1. Panjer’s family: Ref. [14] considered a family of discrete random variables with mass probability function satisfying the following relationshipwhere and . Ref. [15] proved that the only three discrete distributions that satisfy the previous relationship are the Poisson, binomial, and negative binomial distributions, with the following parameters: - (a)
Poisson : , and , where .
- (b)
Binomial : , and , where and .
- (c)
Negative binomial : , and , where and .
Let X and Y be defined according to the Panjer’s family with parameters , and , , respectively, and . Since , for all , we have that and it is easy to see that Therefore, according to Proposition 2, the succession is logoncave for if, and only if, . In addition, we have that Then, by the previous discussion, we can easily state the following results applying Proposition 2.
- (a)
Poisson: Let and . Then, if, and only if,
- (b)
Binomial:Let and , where without loss of generality. Then,
- (b.1)
if, and only if, - (b.2)
(and ) if, and only if, - (b.3)
(and ) if, and only if,
- (c)
Negative binomial:Let and , where without loss of generality. Then,
- (c.1)
if, and only if, - (c.2)
(and ) if, and only if, - (c.3)
(and ) if, and only if,
Let us now make some comments on the previous results. As for the Poisson family regards, it is an already well-known result in the literature. As the binomial is concerned, the previous result improves Theorem 1.1 in [
11] since they establish the stochastic order under the same conditions as we do for the hazard rate order. Finally, regarding the binomial negative family, our result also improves Theorem 1.1 in [
11] because in those cases where
the likelihood order or the hazard rate order hold under the same conditions as the stochastic order. Let us point out that the assumption
is not a restriction since, otherwise, the roles of
X and
Y can be exchanged.
Next, we consider a discrete version of the continuous Weibull distribution. Ref. [
16] introduced the Weibull discrete family in the context of reliability in discrete time. The problem of estimation of its parameters can be seen in [
17,
18]. In this case the results follow from the analysis of the ratio of the survival functions.
Example 2. Discrete Weibull distribution:Let X be a discrete random variable. We say that X follows a discreteWeibulldistribution with parameters and , denoted by , if its mass probability function is given by where . The survival function has also a closed expression and it is given by Let and be two random variables with Weibull distributions and let us assume without loss of generality that . Then,
- (a)
if, and only if. - (b)
(and ) if, and only if,
Let us see the justification of the previous results. Denoting by the ratio of the survival functions, that is, , it is not difficult to prove that L is unimodal over (not necessarily over ), where the maximum is attained at Given that , it is easy to see that is decreasing for all if, and only if, and it is unimodal otherwise. In other words, we have that if, and only if, (5) holds. Furthermore, if (5) does not hold, we have that is unimodal and, applying Theorem 2, we have that if, and only if, (6) holds. In Figure 1, we provide examples of the two previous situations. The upcoming applications are based on the unimodality of the likelihood ratio. First, we consider a generalization of the Poisson family that covers some other situations apart from the Poisson distribution. A comprehensive study of this distribution is available in [
19].
Example 3. Generalized Poisson’ family:Let X be a discrete random variable. We say that X follows ageneralized Poissondistribution with parameters and , denoted by , if its mass probability function is given by The distribution function has no closed expression and the mean is given by .
Let and be two random variables with generalized Poisson distributions where without loss of generality. Then,
- (a)
if, and only if, - (b)
( and ) if, and only if, - (c)
( and ) if, and only if,
Let us justify the previous results. First, we show that is decreasing or unimodal over whenever . In order to prove it, we consider the behavior of over or, equivalently, the behavior of over . After some computations, we get that where On the one hand, it is easy to see that is increasing (decreasing), whenever . We also have that On the other hand, we get that is decreasing for all and increasing for all , where Taking into account the previous information, we get that the modes of are the crossing points of an increasing (decreasing) function with a parabola with a minimum. Now, since implies it is easy to see that is decreasing for all if, and only if, (7) or (8) holds. Otherwise, is unimodal. Now, applying Corollary 1 and taking into account that we get that (and ) if, and only if, (9) holds and (and ) if, and only if, (10) holds. In Figure 2, we provide examples of the previous situations. Finally, we deal with the Hurwitz-Lerch family. Ref. [
20] introduced this family as a unified representation of some discrete distributions. Particular cases of this family are Zipf, Zipf-Mandelbrot, and Good distributions. Ref. [
21] study several properties of this family as well as their application in reliability. The reader can find a detailed study and further references in [
12]. As we will see, the left extreme of the support is 1 instead of 0. The results provided in this paper have been given for random variables with left extreme equal to 0, but it is clear that can be used for non zero common left extremes considering a change of origin.
Example 4. Hurwitz-Lerch’s family:Let X be a discrete random variable. We say that X follows aHurwitz-Lerchdistribution with parameters , and , denoted by , if its mass probability function is given by where . Once again, the distribution function does not have a closed expression and the mean is given by .
Let and be two random variables with Hurwitz-Lerch distributions such that without loss of generality. Then,
- (a)
If , then
- (a.1)
if, and only if, - (a.2)
(and ) if, and only if, - (a.3)
(and ) if, and only if
- (b)
If , then
- (b.1)
if, and only if, either (11), or (12) or (13) holds, where - (b.2)
(and ) if, and only if, either (14) or (15) holds, where - (b.3)
(and ) if, and only if, either (16) or (17) holds, where
In Figure 3, we provide some examples of the previous situations. Additionally, we can provide similar results on the different stochastic orders in the reverse sense that do not follow just exchanging the role of the random variables.
- (a)
if, and only if, one of the following sets of conditions holds: - (b)
(and ) if, and only if, - (c)
(and ) if, and only if,
Let us provide a justification of these results. In this case, we have that The study of the changes of monotonicity of over is equivalent to study the sign changes of Taking into account that the previous expression is the difference between a convex decreasing function (since ) and a linear function, using geometric arguments we conclude that is either unimodal or monotone, setting the situations where each one occurs. Then, the arguments for the comparison of two members of this family are similar to those provided in the previous example and will not be reproduced with detail due to their length.
Let us point out that [
22] provides several results for the comparison of two Hurwitz-Lerch distributions in the likelihood ratio order. The conditions that we have stated improved their result for the likelihood ratio order, since we have characterized the situations where this criterion holds in some sense. In addition, we give situations where the hazard rate and the mean residual life orders hold.