For the population identity, write , , and . Assume independent censoring, with . Then
while the Tonelli theorem and the cumulative hazard function give
This is mean accumulated hazard under independent censoring, proving . For the fitted martingale residual ,
Hence its expectation is approximately zero when the fitted hazard error at the observed time is small in mean. This spells out the required sense of a good estimate; pointwise consistency alone does not control a divergent tail. In particular, a Kaplan–Meier estimator with zero final survival gives infinite transformed times there and cannot supply finite residuals without a tail restriction. Neither exact finite-sample zero mean nor validity under informative censoring is being assumed.
To check an omitted explanatory variable , plot the martingale residuals against or compare groupwise mean residuals, using a smooth trend or appropriate uncertainty intervals. Under a correct conditional survival model and conditionally independent censoring, should be approximately zero. A systematic positive trend indicates more observed failures than the fitted accumulated hazard predicts; a negative trend indicates fewer. Such patterns suggest adding , a nonlinear term or an interaction and reassessing the fit. The bounded-above, often long negative tail of martingale residuals means that the diagnostic is a mean-pattern check, not a requirement for symmetric Gaussian residuals.