Definition The Pearson residual is defined as rPi=V(μ^i)yi−μ^i where μ^=μ(θ)=b′(θ), V(μ^)=b′′(θ) is the variance function. Facts X2=i=1∑nrPi2 where X2 is the Pearson’s Chi-squared Statistic