Summing the observed-minus-expected contributions gives the unstandardized log-rank statistic
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.