The Pearson residual is
where the moment estimate of dispersion is
If the fitted model is adequate and the deviance residual sum is close to the Pearson statistic, then
Solved by gpt-5.6-sol high.