This is the third series of posts I’m writing on topics related to what we are covering in our book on heavy-tails (which I discussed in an earlier post). The first two were on the catastrohphe principle (subexponential distributions) and power laws (regularly varying distributions). This time I’ll focus on connections between residual life, hazard rate, and long tailed distributions.

** Residual life in our daily lives **

Over the course of our days we spend a lot of our time waiting for things — we wait for a table at restaurants, we wait for a subway train to show up, we wait for people to respond to our emails, etc. In such scenarios, we hold on to the belief that, as we wait, the likely amount of remaining time we will need to wait is getting smaller. For example, we believe that, if we have waited ten minutes for a table at a restaurant, the expected time we have left to wait should be smaller than it was when we arrived and that, if we have waited five minutes for the subway, then our expected remaining wait time should be less than it was when we arrived.

In many cases this belief holds true. For example, as other diners finish eating, our expected waiting time for a table at a restaurant drops. Similarly, subway trains follow a schedule with (nearly) deterministic gaps between trains and thus, as long as the train is on schedule, our expected remaining waiting time decreases as we wait. However, a startling aspect of heavy-tailed distributions is that this is not always true. For example, if you have waited a very long time past the scheduled arrival time for a subway train, then it is very likely that there was some failure and the train may take an extremely long time to arrive, and so your expected remaining waiting time has actually increased while you waited. Similarly, if you are waiting for a response to an email and have not heard for a few days, it is likely to be a very long time until a response comes (if it ever does).

The above examples highlight another fundamental distinction between light-tailed distributions (e.g. restaurant waiting times) and heavy-tailed distributions (e.g. email waiting times). To make the contrast even more clear, we can illustrate the same distinction using our classic examples of heavy-tailed and light-tailed distributions: incomes and heights. If we know someone is taller than 6′, then it is most likely that they are only a few inches taller; but if we know someone has more than $1 million, then it much more likely that they are multi-millionaires than that they are just barely millionaires.

All these examples highlight that, as with scale-invariance and the catastrophe principle, the behavior we expect to see is aligned with what happens under light-tailed distributions and so, upon first encounter, the behavior of heavy-tailed distributions is mysterious. Said in a slightly more formal manner, we expect that if we have waited a long time the remaining waiting time, i.e., the *residual life*, should have decreased, and so it is particularly jarring that under heavy-tailed distributions the residual life will have increased dramatically.

In this series of posts we explore the residual life of heavy-tailed distributions in order to build intuition for the counterintuitive phenomena described above. To do this, we start by exploring the distribution of residual life via two common measures: the hazard rate function and the mean residual life function. We then study the relationship between heavy-tailed distributions and properties of the hazard rate and the mean residual life, which leads us to the formalization of a subclass of heavy-tailed distributions, termed *long-tailed distributions*, that we explore in depth.

**Residual lives and hazard rates **

The residual life of a distribution refers to the remaining waiting time given that you have already been waiting for some amount of time. Thus, it crucially depends on how long you have waited already; and so it is clear that it is a conditional concept. Formally, we define the residual life distribution as follows.

Definition 1For a nonnegative random variable with distribution function the residual life distribution is defined such that

Thus, is the distribution of the waiting time given that you have already waited for time. Though it is a relatively simple concept, the residual life is compelling because of the wide variety of applications it has found, ranging from the insurance assessment and reliability theory to the social sciences, where it has found use in studying the lifetimes of everything from the length of wars to human life expectancies.

To begin to get a feel for the residual life distribution, let us consider some examples. Conveniently, it tends to be quite straightforward to calculate for common distributions. For example, for the Pareto distribution can be computed as follows

Interestingly, this highlights that, for any , follows a Burr distribution, and thus has a regularly varying tail.

Similarly, the residual life distribution of the Exponential can be calculated easily.

A striking aspect of the above is that . This is a restatement of the “memoryless” property of the exponential distribution, which says that regardless of how long you have waited so far, the distribution of the remaining time you have to wait is exactly the same as if you just arrived. This is a particularly special property of Exponential distributions, which are the only continuous distributions that are memoryless.

Finally, let us consider the the residual life of the Weibull distribution. Again, it is simple to calculate.

However, though it is simple to calculate for the Weibull, the resulting form is not particularly informative without a deeper study.

More generally, despite the fact that the residual life distribution is typically easy to derive, it it often useful (or even necessary) to look at statistics of the residual life distribution in order to obtain insight into its behavior. There are two statistics that are most commonly used: the mean residual life and the hazard rate.

** The mean residual life **

Of course whenever we consider a distribution, it is natural to use its mean in order to obtain insight. In this case, because residual life is a conditional concept that depends on the how long you have waited so far, the mean of the residual life distribution is actually a function. In particular, the mean residual life function is defined as follows.

Definition 2For a nonnegative random variable with distribution function define the mean residual life (MRL) function Equivalently

Though the definition of the mean residual life function is far less common that of the density function , the distribution function , or moment generating function , like these completely determines the distribution when the distribution has a finite mean. Thus, for example, it is possible to “invert” to calculate the distribution function .

The simplicity of the definition of the mean residual life means that it is typically not hard to compute for common distributions. To illustrate the behavior of let us return to the examples of the Pareto, Exponential, and Weibull. For the Pareto distribution, it is quite straightforward to calculate . In particular, assuming that the mean is finite (), we have

Interestingly, from the above we see that the mean residual life of the Pareto distribution is increasing, and grows unboundedly with . In particular, under a Pareto distribution, the expected remaining waiting time grows linearly with the amount of time you have waited so far.

The calculation of the mean residual life is also straightforward for the Exponential distribution

This derivation highlights a consequence of the memoryless property of Exponential distributions — the mean residual life is constant with respect to , specifically . That is, the expected remaining waiting time is the same as when you first arrived, regardless of how long you have waited.

Though it has been straightforward to calculate the residual life function for the Pareto and the Exponential, it is not always easy. The example of the Weibull distribution highlights this fact. In particular, it is difficult to derive an explicit formula for for the Weibull distribution.

** The hazard rate **

A second important statistic of the residual life distribution is the hazard rate. We have already mentioned the hazard rate a few times in the book, but here we will introduce it more formally and study it in detail, since it is fundamentally related to the residual life distribution. In particular, the residual life distribution looks at the remaining waiting time given that you have already waited for a certain amount of time , and the hazard rate can be thought of as the likelihood of the wait time ending now, given that you have waited time already. Thus, as we will see, the hazard rate is tied to the density of the residual life distribution.

Formally, the hazard rate is defined as follows.

Definition 3For a nonnegative random variable with distribution function and density function , define the hazard rate, a.k.a., the failure rate, as Further, define the cumulative hazard as .

It is easy to see that the hazard rate and the residual life are intimately related. In particular, the hazard rate corresponds to the density of the residual life distribution evaluated at zero.

Further, the hazard rate is intrinsically tied to the tail of the distribution. To see this, note that

and so

which gives

As a consequence of the above, it is easy to see that the hazard rate and the mean residual life are also closely related. In particular, as long as both exist, we have

which highlights that if the hazard rate is monotonically decreasing (increasing) then the mean residual life will be monotonically increasing (decreasing). Further, it is possible to show that

The first of these is easy to verify, but the second requires some effort.

To get a feeling for the behavior of the hazard rate let us return again to our examples of the Pareto, Exponential, and Weibull. Either computing directly, or using the above relationships it is straightforward to see that the hazard rates of the Pareto and the Exponential are as follows.

Thus, the Pareto has a hazard rate that decreases to zero, while the Exponential has a constant hazard rate. This contrast is interesting: the memoryless property of the Exponential distribution means that the likelihood that your waiting time ends is unchanging as you wait, while under the Pareto distribution the likelihood that your waiting time ends decreases to zero as you wait.

It is also straightforward to compute the hazard rate of the Weibull distribution, which is in contrast to the difficulty of computing in this case. In particular, the hazard rate of the Weibull satisfies the following

The form of the hazard rate under the Weibull distribution highlights a similar contrast to what we saw between the Pareto and the Exponential, only more extreme. When the hazard rate is increasing (and thus the mean residual life is decreasing), which means that the likelihood your wait ends increases as you wait, while when the hazard rate is decreasing (and thus the mean residual life is increasing), similarly to that of the Pareto distribution. Of course, corresponds to the case of the Exponential distribution, and so the hazard rate is constant.

** Heavy tails and residual lives **

The simple examples of the Pareto, Exponential, and Weibull that we have used so far highlight exactly the contrast between light-tailed and heavy-tailed distributions that we have discussed informally in the introduction to this post: if we have waited a long time, then under light-tailed Weibull distributions the expected remaining waiting time will have decreased, while under the heavy-tailed Weibull and Pareto distributions the expected remaining waiting time will have increased dramatically.

In particular, we have seen that under the light-tailed Weibull the mean residual life is decreasing and the hazard rate is increasing, while under the heavy-tailed Weibull and Pareto distributions the mean residual life is increasing unboundedly and the hazard rate is decreasing to zero. The fact that these three distributions all have monotonic hazard rates and mean residual lives points us toward the importance of this property, and in particular, motivates the definition of the following four classes of distributions.

Definition 4A nonnegative distribution with mean residual life function is said to have increasing/decreasing mean residual life (IMRL/DMRL) if is increasing/decreasing in for all such that .

Definition 5A nonnegative distribution with hazard rate is said to have increasing/decreasing hazard rate (IHR/DHR) if is increasing/decreasing in for all such that .

Clearly, heavy-tailed Weibull and Pareto distributions are IMRL and DHR; while light-tailed Weibull distributions are DMRL and IHR. Given these examples and the relationship between the hazard rate and the mean residual life, one would expect a strong connection between the DMRL/IMRL and IHR/DHR, and this is indeed the case. In fact, it follows immediately from (2) that the IHR class is contained within the DMRL class and the DHR class is contained within the IMRL class.

Theorem 6All distributions with an increasing (decreasing) hazard rate have a decreasing (increasing) mean residual life, i.e., IHRDMRL and DHRIMRL.

At this point it is natural to notice that, because the Exponential distribution has constant mean residual life and hazard rate, it is, in some sense, the boundary between the IHR and DHR classes and between the IMRL and DMRL class. Of course, Exponential distributions also serve as the boundary between light-tailed and heavy-tailed distributions, and so it is quite tempting to think of IMRL/DHR distributions has “heavy-tailed” and DMRL/IHR distributions as “light-tailed”. In fact, the temptation is so strong that in some disciplines, IMRL is used as a defining property of “heavy-tailed” distributions. However, one must be careful with this view since “heavy-tailed” and IMRL/DHR are actually quite different concepts, as are “light-tailed” and DMRL/IHR.

In particular, it is easy to construct examples of IMRL and DHR distributions that are not heavy-tailed and examples of heavy-tailed distributions that are not IMRL or DHR. For example, a heavy-tailed distribution that is not IMRL or DHR is the Burr distribution. Though the is eventually increasing and is eventually decreasing for the Burr distribution, they are monotonic over the entire distribution.

Similarly, it is easy to construct examples of light-tailed distributions that are IMRL and IHR. In particular, the Hyperexponential distribution is an example of a light-tailed distribution that has increasing mean residual life and a decreasing hazard rate. Recall that the Hyperexponential distribution is a mixture of exponential distributions where with probability a sample is drawn from an Exponential distribution with rate , for with .

Correspondingly, one must be careful to distinguish “light-tailed” from DMRL. Here, it is true that all DMRL and IHR distributions are light-tailed. However, there are many examples of light-tailed distributions that are not DMRL or IHR. An easy example to highlight this is a bounded Pareto distribution, i.e., a distribution that has a Pareto body, but has a finite upper bound. For such a distribution, is initially increasing, since the unbounded Parteo is IMRL and DHR, but eventually decreases to zero, since there is an upper bound on the size.

** Long-tailed distributions **

The previous discussion has highlighted that one must be careful in connecting “heavy-tailed” with the concepts of “increasing mean residual life” and “decreasing hazard rate”. In particular, there are many examples of light-tailed distributions that are IMRL and DHR. However, if we think again about the informal examples that we discussed at the beginning of the post, it becomes clear that IMRL and DHR are too “precise” to capture the phenomena we were describing. For example, if we return to the case of waiting for a response to an email. It is not that we expect our remaining waiting time to be monotonically increasing as we wait. If fact, we are very likely to get a response quickly, and so the expected waiting time should drop initially (and the hazard rate should increase initially). It is only after we have waited a “long” time already, in this case a few days, that we expect to see a dramatic increase in our residual life. Further, in the extreme, if we have not received a response in a month, we can reasonably expect that we may never receive a response, and so the mean residual life is, in some sense, growing unboundedly, or equivalently the hazard rate is decreasing to zero. The example of waiting for a subway train highlights the same issues. Initially, we expect that the mean residual life should decrease, because if the train is on schedule, things are very predictable. However, once we have waited a long time beyond when the train was supposed to arrive, it likely means something went wrong, and could mean the train has had some sort of mechanical problem and will never arrive.

These examples highlight two important aspects that need to be captured in a formalization of this phenomena. First, they highlight that strict monotonicity of the residual life is not crucial (or desirable), and that we should instead focus on the behavior of the tail. And, second, they highlight that the phenomena we would like to capture includes the fact that the residual life distribution “blows up”, in the sense that if we have waited a very long time we should expect to wait forever. Note that this property is true of heavy-tailed Weibull and Pareto distributions, but is not true of the light-tailed distributions that are a part of the IMRL and DHR classes. For example, the Hyperexponential distribution with rate parameters has a mean residual life that is upper bounded by .

These two observations lead us to the definition of the class of long-tailed distributions, which is where we will start the next post.

Pingback: Rigor + Relevance | Residual Lives, Hazard Rates, and Long Tails (Part II)

Hi Adam,

Great blog series.

I suspect that there is a typo in the following statement about the hazard rate of the Weibull distribution:

“When {k>1} the hazard rate is increasing (and thus the mean residual life is increasing),”

Shouldn’t it be “mean residual life is decreasing”?

Cheers, Roy

Thanks for the comment and the catch — I’ve fixed the typo!