Deviance & Goodness-of-Fit - Statistics Graduate Level
- What is the likelihood-ratio deviance statistic for testing the two added coefficients, and what is its usual asymptotic reference distribution under the null hypothesis? Answer: , compared with a distribution When comparing nested Gaussian models fitted by maximum likelihood, the likelihood-ratio test (LRT) statistic is not simply the difference in RSS. Because ML estimates of use in the denominator (not ), the log-likelihood for a Gaussian model is: The deviance () statistic becomes: Under the null, this statistic follows an asymptotic distribution, where the degrees of freedom equal the number of added parameters (two coefficients). So B is correct. A is wrong because comes from naively halving the RSS difference , which corresponds to an F-statistic numerator scaled differently — not the LRT deviance. C incorrectly uses instead of (two coefficients were added), and the value is simply the raw RSS difference with no log transformation. D references , which would be the residual degrees of freedom of the full model — irrelevant to the chi-squared reference distribution for this test. A useful memory aid: whenever ML (not REML or OLS) is used in nested Gaussian models, compute the LRT as , not as a simple difference. The degrees of freedom always equal the number of additional parameters, not residual degrees of freedom.
- What is the combined contribution of these observations to the residual deviance? Answer: Approximately , including a contribution of from the zero count. When working with Poisson GLMs, residual deviance measures how far observed counts stray from their fitted values. The deviance contribution for a single observation is , with the convention that whenever . Apply this to each observation. For the first observation, and : the log term vanishes by convention, leaving . Notice that a zero count still contributes deviance through the term — it is not automatically zero. For the second observation, and : the contribution is . The combined deviance is , confirming B. Choice A makes the common mistake of assuming a zero observed count contributes nothing to deviance. While the logarithmic term disappears, the fitted-mean term remains and must be included. Choice C drops the correction term entirely, keeping only the log component; this gives roughly but ignores half the deviance formula. Choice D applies an erroneous extra factor of 2 to the already-doubled formula, inflating the result to around . A reliable study tip: always write out the full deviance formula before plugging in numbers. The piece is easy to overlook, especially when .
- Which statement about their deviance residuals is correct? Answer: The residuals are , and their squared sum equals the total deviance . Whenever you see a question about deviance residuals in a GLM, anchor yourself to one key definition: the deviance residual for observation is , where is the individual deviance contribution. The sign matches whether the observed value sits above or below its fitted mean, and the magnitude is the square root of the deviance contribution. The total deviance equals — the sum of squared deviance residuals. For this problem, the three deviance contributions are , so the magnitudes of the deviance residuals are , , and . The signs come from the direction of each residual: observation 1 is above its mean , observation 2 is below , and observation 3 is above . This gives deviance residuals . Their squared sum is , which equals the total deviance. That confirms D is correct. A is wrong because it assigns all positive signs, ignoring that observation 2 falls below its mean. It also incorrectly claims the ordinary sum equals the square root of total deviance — that's not a standard property. B is wrong on two counts: deviance residuals use square roots of deviance contributions, not the raw contributions themselves, and the sum of unsquared residuals does not generally equal the total deviance. C gets the signs right but wrong: observation 1 is above its mean, so its residual should be , not ; also, squared deviance residuals sum to total deviance, not necessarily to the residual degrees of freedom. Your study tip: always remember the formula , and that — not the unsquared sum.
- At the five-percent level, which conclusion is best supported by these results? Answer: The added predictors are significant, but the full model does not show significant lack of fit. When analyzing Poisson log-linear models, you typically need to run two separate chi-squared tests: one to assess whether the added predictors improve fit, and another to assess whether the full model itself fits the data adequately. Test 1 — Significance of added predictors (likelihood ratio test): Compare the two models by taking the difference in deviances: on degrees of freedom. You compare this to a distribution. The critical value at is approximately . Since , the three added predictors are statistically significant. Test 2 — Goodness-of-fit of the full model: Use the full model's residual deviance directly: on degrees of freedom. The critical value for at is approximately . Since , you fail to reject the null hypothesis of adequate fit — the full model does not show significant lack of fit. This confirms answer A: the predictors are significant, but the full model fits adequately. Answer B is wrong because it reverses both conclusions — the predictors are significant and the full model does not show lack of fit. Answer C correctly identifies the predictors as significant but wrongly concludes the full model shows lack of fit ( does not exceed the critical value). Answer D misses the significant drop in deviance from adding the predictors. Study tip: Always remember these are two distinct tests — never assume that a significant improvement automatically implies the full model fails goodness-of-fit, or vice versa.
- Which bootstrap procedure most appropriately accounts for estimation of the regression parameters? Answer: Simulate from the fitted model, refit the model to each simulated data set, and compare its deviance with the observed deviance. When you encounter a parametric bootstrap goodness-of-fit test, the central question is always: what sampling distribution are you trying to approximate? Residual deviance measures how much worse the fitted model is than the saturated model. Under the null hypothesis that your model is correct, you want to know the distribution of that deviance statistic — but this distribution depends on the fact that parameters are estimated, not known. Ignoring estimation uncertainty produces an overly optimistic (narrow) reference distribution. Option C is correct because it faithfully replicates the entire modeling pipeline. You simulate data from the fitted Poisson model, refit the model to each simulated dataset, and compute each simulated deviance from its own newly estimated parameters. This generates a reference distribution that correctly accounts for the variability introduced by parameter estimation, giving you a valid p-value even when fitted means are too small for the chi-square approximation to be reliable. Option A is wrong on two fronts: simulating from the saturated model generates data that doesn't reflect your fitted model's structure, and comparing raw counts bypasses the deviance statistic entirely. Option B makes the critical error of fixing coefficient estimates at their original values across all simulated datasets. This ignores estimation variability, producing a reference distribution that is too narrow and inflating the apparent significance of any departure. Option D abandons the parametric framework altogether — resampling deviance residuals without replacement is finite-population sampling, not a bootstrap, and assuming normality of the reference distribution defeats the entire motivation of avoiding asymptotic approximations. As a study rule: in any bootstrap test involving estimated parameters, ask whether the procedure refits the model at each iteration. If not, it's almost certainly underestimating variability.
- Which statement gives the most appropriate conventional deviance goodness-of-fit assessment? Answer: Compare the grouped residual deviance with because there are binomial groups and fitted parameters. Whenever you see a deviance goodness-of-fit question for logistic regression, your first instinct should be to identify whether the data are grouped (binomial counts) or ungrouped (individual Bernoulli trials), because this determines which chi-squared approximation is valid. Here, you have distinct covariate patterns, each with trials, and the model has parameters (intercept + two slopes). The residual deviance for grouped binomial data follows an approximate distribution with degrees of freedom equal to the number of groups minus the number of fitted parameters: . The passage explicitly tells you that fitted expected successes and failures are reasonably large within every pattern, satisfying the condition needed for this chi-squared approximation to work. That confirms A is correct. B is wrong because when data consist of individual Bernoulli trials (binary 0/1 outcomes), the deviance does not follow a chi-squared distribution in any useful approximating sense — the expected cell counts are simply too small (each is one observation). Comparing individual-trial deviance to is a well-known invalid approach. C incorrectly sets , ignoring that the 3 fitted parameters must be subtracted. Degrees of freedom are always residual — you lose one for each estimated parameter. D invents an extra degree-of-freedom penalty for the intercept. The intercept is already counted among the parameters, so subtracting it again is double-counting. Key takeaway: For grouped logistic regression, use , and remember that the individual-trial deviance chi-squared approximation is invalid regardless of sample size.
- Which assessment is most defensible? Answer: The nominal reference is , but a conditional or bootstrap calibration is preferable because the table is sparse. Whenever you fit an independence model to a contingency table, two issues arise simultaneously: the degrees of freedom and the validity of the chi-squared approximation. Keep both in mind when the data are sparse. For a table, the independence model has degrees of freedom, so the nominal reference distribution is . Under regular conditions, the likelihood-ratio statistic would be compared to this distribution and would exceed the critical value near , suggesting rejection. However, the chi-squared approximation for relies on large expected counts — roughly, all expected counts should exceed 1 and most should exceed 5. Here, five of the twelve expected counts fall below 1, meaning the table is sparse. In sparse settings, the approximation can be unreliable in either direction, so the nominal p-value is untrustworthy. The most defensible path is to acknowledge the reference but use a conditional exact test or bootstrap/permutation calibration to obtain valid p-values. That reasoning makes D correct. Choice A is wrong on two counts: the degrees of freedom are correctly 6, but sparsity does not systematically make the approximation conservative — the direction of the bias is unpredictable. Choice B is wrong because it confuses the saturated model's parameter count with degrees of freedom; the correct df is 6, not 11. Choice C is wrong because it falsely claims sparsity is irrelevant — sparse expected counts are precisely when the approximation breaks down most severely. As a study rule: whenever you see small expected counts (especially below 1), always flag the chi-squared approximation as suspect and consider exact or resampling methods, regardless of which test statistic is used.
- Which interpretation of the deviance is most appropriate under this dispersion adjustment? Answer: The estimated dispersion is , so the adjusted deviance is and does not indicate excess lack of fit. When you encounter quasi-Poisson regression questions, focus on two things: how dispersion is estimated, and what that estimate does to your inference tools. In quasi-Poisson models, the dispersion parameter is typically estimated as the Pearson statistic divided by the residual degrees of freedom. Here, that gives . Once you have this estimate, the residual deviance is rescaled by dividing by : the adjusted deviance becomes . This adjusted statistic is then compared to a distribution. Since (well below the mean of the reference distribution), there is no evidence of excess lack of fit — the model fits adequately. This confirms B as correct. A is wrong on two counts: it uses the deviance () rather than the Pearson statistic to estimate dispersion, and then incorrectly claims the adjusted deviance equals exactly , implying "exact fit" — a nonsensical standard. C makes a critical error by suggesting you compare the unadjusted deviance against . Under quasi-Poisson, overdispersion inflates the deviance, so comparing the raw deviance without scaling by would spuriously signal lack of fit. D inverts the dispersion estimate entirely, computing — which would imply underdispersion and an inflated adjusted deviance of . Dispersion is always Pearson statistic divided by df, never the other way around. A reliable rule: in quasi models, dispersion comes from the Pearson statistic ÷ df, and you always divide the deviance by to adjust it.
- Which comparison is justified from the reported deviances? Answer: Model A has an AIC lower by , but the deviance difference has no standard nested-model chi-square reference. When comparing non-nested models, you need to think carefully about which tools are valid. The likelihood-ratio test (LRT) requires nested models — one must be a special case of the other. AIC, however, works across any models fit to the same data, making it the appropriate comparison tool here. AIC is defined as , where is the number of fitted parameters. Since both models have , the penalty is identical ( for each). The AIC difference is therefore driven entirely by the deviance difference: Model A's AIC is and Model B's is , so Model A is lower by exactly . Crucially, because the models are non-nested, you cannot use a chi-square reference distribution to interpret the deviance difference as a formal hypothesis test. This makes A correct. B is wrong on two counts: the LRT requires nested models, and even if it applied, the degrees of freedom would be the difference in parameters (here , not ). C has the likelihood direction exactly backwards — a lower residual deviance corresponds to a higher maximized log-likelihood, so Model A, not B, would be preferred. D is tempting but wrong: equal numbers of parameters means equal penalty terms, but AIC still differs because the deviance terms differ. Your takeaway: memorize that LRT nested models only, while AIC is the go-to for non-nested comparisons. Equal penalty terms mean deviance differences translate directly into AIC differences.
- Which conclusion best explains this behavior? Answer: The likelihood supremum occurs at an infinite coefficient, so near-zero deviance does not establish regular model adequacy. Whenever you see a question involving logistic regression where a predictor perfectly separates the two outcome groups, you should immediately think about complete separation and its consequences for maximum likelihood estimation. In logistic regression, the log-likelihood for a binary outcome involves terms like and . When one predictor perfectly separates outcomes, increasing the coefficient toward drives predicted probabilities toward 1 for all cases and toward 0 for all cases, pushing the log-likelihood toward its theoretical maximum of 0. Critically, this maximum is never actually achieved at any finite value of — the likelihood has a supremum but no maximum. The MLE does not exist in the conventional sense. The iterative algorithm keeps inflating without converging, and the residual deviance approaches 0 simply because the algorithm is chasing an asymptote. This is exactly what C describes: the likelihood supremum occurs at infinity, so a near-zero deviance does not signal a well-fitted, well-identified model. A is wrong because standard chi-square goodness-of-fit inference requires a proper, finite MLE — that regularity condition fails here. B is wrong because the saturated model is not misspecified; the problem is with the fitted model's parameter space, not the reference model. D is wrong because this phenomenon has nothing to do with response variance or a Gaussian likelihood; it is a structural identifiability problem specific to complete separation. As a study tip: on graduate-level stats exams, questions about near-zero deviance paired with diverging coefficients almost always test your understanding of complete separation and MLE non-existence — not model fit quality.