Pearson residuals are used to deteremine the difference between observed and expected cells in a contingency table. ri,j=Ei,j[Oi,j−Ei,j]2