Solution (source code)

= Solution

With a common hazard and the <Nelson–Aalen estimator> from part a,
$$
\widehat M_i
=v_i-\widehat H(x_i)
=v_i-\sum_{j=1}^i\frac{v_j}{n-j+1}.
$$