Solution (source code)

= Solution

Conditionally on survival, average the individual hazard $Uh_0(t)$:
$$
\overline h(t)
=h_0(t)\mathbb E(U\mid T>t)
=\frac{h_0(t)}{1+H_0(t)},
$$
which agrees with part a.