An alternative to an Anscombe residual or a Pearson residual (see chi-squared test). In the case of a generalized linear model with random errors having a Poisson distribution, a deviance residual is
where y and ŷ are the corresponding observed and fitted values.