Solution
= Solution
Summing the observed-minus-expected contributions gives the unstandardized <log-rank statistic>
$$
T_0=\sum_{j=1}^m
\left\{u_j-
\frac{r_j^{(1)}}{r_j^{(0)}+r_j^{(1)}}
\right\}.
$$
Under the null it is centered at zero. A two-sided <Log-rank test> compares its magnitude with the square root of its null variance.