Deviance goodness-of-fit test Created 2026-10-06 Updated 2026-11-05
A deviance goodness-of-fit test compares a fitted generalized linear model with its saturated statistical model. With independent response groups, an identifiable rank- mean model and known common dispersion parameter , the candidate statistic is the scaled devianceIn an appropriate large-information regime, compare it with a chi-squared distribution on statistical degrees of freedom. For a normal linear model this is exact when is known: is the residual sum of squares. For Poisson regression, ; adequate expected cell counts are still needed for a useful approximation.[ref]
More individual Bernoulli observations do not automatically justify comparing their residual deviance with . Small cell counts, dependence and overdispersion can invalidate that calibration. An unknown dispersion parameter also needs an explicit estimation and testing convention; estimating it from and then treating as an independent goodness-of-fit check is circular.
Nathaniel E. Helwig 2026-11-05
Nathaniel E. Helwig develops statistical methods at the intersection of psychology and computational statistics. His University of Minnesota research biography emphasizes multivariate and nonparametric statistics for complex observations.[ref]
His Generalized Linear Models in R by Nathaniel E. Helwig explains how a link function connects a response's conditional expected value with a linear predictor. For logistic regression, the predictor represents log odds; for Poisson regression, a logarithmic link ensures a positive fitted mean. This separates the model for the mean from the response's probability distribution, while making deviance and dispersion part of model assessment.[ref]
Generalized Linear Models in R by Nathaniel E. Helwig. Section 1 and logistic/Poisson examples; the notes explicitly credit their textbook basis