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
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
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\):
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\}\).
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:
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:
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.
Check Your Understanding
Try these questions before moving on.
- If \(S(t)=e^{-3t}\) for \(t\geq0\), what are \(H(t)\) and the distribution of \(H(T)\)?
- For \(h(t)=2t\), derive \(H(t)\) and solve \(H(T)=E\) for \(T\).
- Why is local absolute continuity needed to conclude that \(h(t)e^{-H(t)}\) is a density?
- For a nondecreasing cumulative hazard with a flat stretch, why can the generalized inverse still be used to generate a lifetime?
- Explain why a hazard rate is generally not itself the lifetime density.