Tutorials › Statistical Theory I - Probability and Distribution Theory › Transforming Lifetimes by Cumulative Hazard

Reliability and Extreme-Value Laws · Tutorial 676 of 994

Transforming Lifetimes by Cumulative Hazard

Use the cumulative hazard to convert lifetimes to exponential variables and to generate lifetimes from specified hazard functions.

Intermediate 10 min read

What You'll Learn

  • Define cumulative hazard from a lifetime’s survival function and hazard rate.
  • Prove when the cumulative-hazard transform has a unit exponential distribution.
  • Generate lifetimes by applying a generalized inverse to an exponential draw.
  • Derive lifetime distributions from Weibull, piecewise-constant, and increasing hazards.
  • Recognize why absolute continuity matters when deriving a density from a cumulative hazard.

Why Transform a Lifetime by Its Cumulative Hazard?

A hazard rate describes how failure risk accumulates over time, but its shape can make direct probability calculations or simulation awkward. The cumulative hazard provides a useful scale change: under suitable conditions, applying it to a lifetime removes the original hazard shape and produces a unit exponential random variable. Conversely, an exponential draw can be mapped back to a lifetime with a specified hazard.

The distinction between a hazard and a cumulative hazard is important. A hazard rate is a local rate, while the cumulative hazard integrates that rate over time. The transformation result depends on the lifetime’s survival distribution; deriving a density from a proposed cumulative hazard requires an additional regularity condition.

Definitions and Conditions

Definition: Let \(T\) be a nonnegative lifetime with \(P(T>0)=1\). Its survival function is \(S(t)=P(T>t)\). On times for which \(S(t)>0\), its hazard rate, when a density \(f\) exists, is \(h(t)=f(t)/S(t)\) almost everywhere. The cumulative hazard is \(H(t)=-\log S(t)\). If \(H\) is locally absolutely continuous, then \(H(t)=\int_0^t h(u)\,du\), where \(h=H'\) almost everywhere.

A function is locally absolutely continuous if it is absolutely continuous on every bounded time interval in its domain. In particular, a locally absolutely continuous \(H\) is the integral of its almost-everywhere derivative on each such interval. This condition matters: merely differentiating \(1-e^{-H(t)}\) at points where \(H'\) exists does not establish that this function has a density.

For a proper lifetime, \(S(t)\) decreases to zero as time tends to infinity, or approaches zero at a finite endpoint. Consequently, \(H(t)\) tends to infinity along the lifetime’s time range. When \(T\) has a continuous distribution, its survival probability evaluated at the observed lifetime is uniform on \((0,1)\). That fact gives the exponential transformation.

The Exponential Transformation

Theorem: If \(T\) has a continuous distribution and is finite almost surely, then \(H(T)=-\log S(T)\) has the unit exponential distribution: \(P(H(T)>y)=e^{-y}\) for every \(y\geq 0\). If, in addition, \(H\) is locally absolutely continuous with derivative \(h\) almost everywhere, then the lifetime distribution has density \(f(t)=h(t)e^{-H(t)}\) almost everywhere.

To justify the first statement, write \(F(t)=P(T\leq t)\). Since \(F\) is continuous, \(F(T)\) is uniform on \((0,1)\). One way to see this is to fix \(0<u<1\) and consider the rightmost point \(b\) up to which \(F(t)\leq u\). Continuity gives \(F(b)=u\), and \(P(F(T)\leq u)=P(T\leq b)=F(b)=u\). Flat stretches of \(F\) do not change this probability. Thus \(S(T)=1-F(T)\) is also uniform on \((0,1)\), and for \(y\geq0\):

$$ P(H(T)>y) =P(-\log S(T)>y) =P(S(T)<e^{-y}) =e^{-y}. $$

This is the survival function of a unit exponential random variable, proving the transformation claim. For the density statement, \(F(t)=1-S(t)=1-e^{-H(t)}\). On each bounded interval, local absolute continuity of \(H\) implies absolute continuity of \(F\); the chain rule for absolutely continuous functions gives \(F'(t)=h(t)e^{-H(t)}\) almost everywhere. Because \(F\) is absolutely continuous, this derivative is a density, not merely a formula for a derivative at selected points. \(\square\)

Worked Example: Transforming a Weibull Lifetime

Suppose \(T\) has Weibull survival function \(S(t)=\exp[-(t/3)^2]\) for \(t\geq0\). Find its cumulative hazard, verify the transformed distribution, and use the result to generate a lifetime.

Taking the negative logarithm of the survival function gives \(H(t)=(t/3)^2=t^2/9\). Its derivative is \(h(t)=2t/9\), which is nonnegative and continuous. Since \(H(t)\) tends to infinity, the lifetime is proper.

For the transformed variable, the theorem gives \(H(T)=T^2/9\sim\operatorname{Exp}(1)\). Equivalently, for \(y\geq0\), \(P(T^2/9>y)=P(T>3\sqrt{y})=\exp[-(3\sqrt{y}/3)^2]=e^{-y}\).

Now draw \(E\sim\operatorname{Exp}(1)\) and solve \(H(T)=E\). The nonnegative solution is \(T=3\sqrt{E}\). Its survival function checks the calculation: \(P(3\sqrt{E}>t)=P(E>t^2/9)=e^{-t^2/9}\) for \(t\geq0\), exactly the specified Weibull survival function.

Generating a Lifetime from a Hazard Function

Suppose a nonnegative hazard function \(h\) is specified, with \(h\geq0\) and locally integrable. Define \(H(t)=\int_0^t h(u)\,du\). If \(H(t)\to\infty\), it covers every nonnegative cumulative-hazard value, though it need not be strictly increasing. Let \(E\sim\operatorname{Exp}(1)\) and define the generalized inverse \(H^{-1}(e)=\inf\{t\geq0:H(t)\geq e\}\).

Theorem: If \(H\) is continuous, nondecreasing, \(H(0)=0\), and tends to infinity, then \(T=H^{-1}(E)\) has survival function \(P(T>t)=e^{-H(t)}\). Continuity also gives \(H(T)=E\) almost surely. If \(H\) is locally absolutely continuous with derivative \(h\), the resulting lifetime has density \(f(t)=h(t)e^{-H(t)}\) almost everywhere.

For any \(t\geq0\), continuity and monotonicity imply \(T\leq t\) exactly when \(E\leq H(t)\). Indeed, if \(E\leq H(t)\), the set in the generalized inverse includes \(t\); conversely, if the first time \(H\) reaches \(E\) is at or before \(t\), then \(H(t)\geq E\). Therefore:

$$ P(T>t)=P(E>H(t))=e^{-H(t)}. $$

Continuity ensures that the first time \(H\) reaches \(E\) has cumulative-hazard value \(E\), so \(H(T)=E\). If \(H\) is locally absolutely continuous, differentiating the survival function \(e^{-H(t)}\) gives the density \(h(t)e^{-H(t)}\) almost everywhere. Local absolute continuity ensures that this derivative accounts for the entire distributional increase. \(\square\)

This gives a general simulation procedure: draw a unit exponential variable, then solve \(H(t)=E\), using the generalized inverse if \(H\) has flat stretches. If \(H\) has a convenient algebraic inverse, simulation is direct. Otherwise, a monotone numerical root-finding method can be used.

Worked Example: A Piecewise-Constant Hazard

Suppose the hazard is \(h(t)=1/4\) for \(0\leq t<2\), and \(h(t)=1/2\) for \(t\geq2\). Derive \(H\), find the inverse-hazard simulation rule, and calculate the simulated lifetime when \(E=1.1\).

Integrating the hazard over the two time intervals gives:

$$ H(t)= \begin{cases} t/4, & 0\leq t<2,\\ 1/2+(t-2)/2, & t\geq2. \end{cases} $$

The boundary values agree: both pieces give \(H(2)=1/2\). For \(0<E<1/2\), solving \(E=t/4\) gives \(T=4E\), which lies below 2. For \(E\geq1/2\), solve \(E=1/2+(t-2)/2\), giving \(T=2E+1\), which is at least 2. Thus the simulation rule is \(T=4E\) below the threshold and \(T=2E+1\) at or above it.

For \(E=1.1\), the second branch applies, so \(T=2(1.1)+1=3.2\). Substitution verifies the result: \(H(3.2)=1/2+(3.2-2)/2=0.5+0.6=1.1\).

The survival probability at \(t=3.2\) is \(e^{-H(3.2)}=e^{-1.1}\). More generally, the construction theorem gives \(P(T>t)=e^{-H(t)}\), so both the hazard before time 2 and the larger hazard afterward are represented.

Worked Example: An Increasing Hazard

Let the hazard be \(h(t)=1+t\) for \(t\geq0\). Find the cumulative hazard and an inverse-hazard simulation formula. Then evaluate the lifetime generated by \(E=2\).

Integrating from zero gives \(H(t)=t+t^2/2\). To solve \(H(t)=E\), use the quadratic equation \(t^2/2+t-E=0\), or \(t^2+2t-2E=0\). Its roots are \(-1\pm\sqrt{1+2E}\); only the nonnegative root is a valid lifetime. Therefore \(T=\sqrt{1+2E}-1\).

For \(E=2\), this gives \(T=\sqrt{5}-1\), approximately \(1.236\). Substitution confirms \(H(T)=(\sqrt{5}-1)+(\sqrt{5}-1)^2/2=2\). The corresponding survival function is \(S(t)=e^{-t-t^2/2}\), and its hazard is \(-\frac{d}{dt}\log S(t)=1+t\), as specified.

Why Absolute Continuity Matters

The exponential transformation itself is a statement about the survival probability evaluated at a continuous lifetime. But a hazard function specified as an ordinary rate is commonly used through an integral, \(H(t)=\int_0^t h(u)\,du\). To recover a density by differentiating \(1-e^{-H(t)}\), \(H\) must be locally absolutely continuous.

A continuous, nondecreasing \(H\) need not be absolutely continuous. For example, a Cantor-function increase on \([0,1]\) has derivative zero almost everywhere but still increases across that interval. If one used that \(H\) in \(F(t)=1-e^{-H(t)}\), the resulting distribution would have a singular increase there. The expression \(h(t)e^{-H(t)}\), with \(h=H'=0\) almost everywhere on that interval, would miss that probability. Local absolute continuity rules out this failure by ensuring the whole increase is represented by the integral of the derivative.

A related practical mistake is to treat \(h(t)\) as though it were the density. The density is \(h(t)S(t)=h(t)e^{-H(t)}\), not \(h(t)\) alone: the hazard rate is multiplied by the probability of surviving to time \(t\). The cumulative-hazard transform is useful precisely because it keeps this distinction clear while providing a standard exponential scale for calculation and simulation.

Key takeaway: For a continuous lifetime, \(H(T)=-\log S(T)\) is unit exponential. To generate a lifetime from a hazard, integrate the hazard to obtain \(H\), draw \(E\sim\operatorname{Exp}(1)\), and set \(T=H^{-1}(E)\). Use local absolute continuity when asserting a density formula.

Check Your Understanding

Try these questions before moving on.

  1. If \(S(t)=e^{-3t}\) for \(t\geq0\), what are \(H(t)\) and the distribution of \(H(T)\)?
  2. For \(h(t)=2t\), derive \(H(t)\) and solve \(H(T)=E\) for \(T\).
  3. Why is local absolute continuity needed to conclude that \(h(t)e^{-H(t)}\) is a density?
  4. For a nondecreasing cumulative hazard with a flat stretch, why can the generalized inverse still be used to generate a lifetime?
  5. Explain why a hazard rate is generally not itself the lifetime density.