Deviance residual 2026-10-06
A deviance residual is the signed square root of an observation's contribution to fitted-model deviance. For a Poisson regression, , with . Its squared sum is the Poisson deviance. Leverage and estimated dispersion can further standardize these residuals; a normal quantile-quantile plot is a diagnostic approximation, not a requirement that count errors have a normal distribution.
Negative binomial deviance 2026-10-14
With known size , the mean-dependent log mass of a negative binomial distribution is . Its derivative is , so the saturated mean is , including its boundary value zero. Subtracting the fitted log mass from that maximum gives the displayed deviance. This formula needs no fitted-intercept cancellation. As , its second term tends to and it becomes the full Poisson deviance.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 36 3 i Solution Created 2026-10-03 Updated 2026-10-14
Use for the expected accident count, not for the accident rate. With a design row consisting of an intercept, seven non-reference site indicators and the after-treatment indicator,Here is a known generalized linear model offset, with coefficient fixed at one. Differentiating the Poisson regression log-likelihood gives the score function equationsThese nine equations estimate the intercept, seven site contrasts and one treatment contrast, with the stated reference-level constraints.
The Fisher information is , where . A Fisher scoring update adds to the current coefficient vector. In iteratively reweighted least squares, the working response is ; regress on the design with weights . Thus the reported four iterations solve the likelihood equations while accounting for unequal exposure periods.
The common adjusted rate ratio is obtained by exponentiating the after coefficient:This estimates a lower accident rate after the intervention, conditional on the additive site model. The standard error gives normal Wald statistic , two-sided , and an approximate confidence interval for the rate ratioThe label t value is again a normal-reference Wald ratio under fixed Poisson dispersion, rather than an exact Student statistic.
The intercept gives the before rate at reference site one: accidents per year. The seven site coefficients are log baseline-rate ratios relative to that site. In site order two through eight, their exponentials are about . The third site has the largest estimated rate and a nominal Wald ratio about against the reference. These are adjusted baseline comparisons, not differences in absolute accident counts. The overall unadjusted before/after rate ratio is , and it differs from because site risks and their relative exposure weights differ.
An independent way to solve the fit is the profile likelihood for a common Poisson rate ratio with unequal exposures. Put and . For fixed , the site score gives . The remaining equation isIts positive root reproduces the reported treatment estimate. Comparing the same site model with to the fitted model gives a deviance improvement about on one degree of freedom, with nominal likelihood-ratio .
There are count observations and fitted mean parameters, leaving residual degrees of freedom. The null deviance on degrees of freedom is for the intercept-only rate model, still including the exposure offset. The residual Poisson deviance is on degrees of freedom. A chi-squared comparison gives approximately , suggesting potential lack of fit of a single common treatment ratio; the extreme deviance residuals near and also deserve inspection. Several after-cell expected counts are below one or near two, so this absolute-fit calibration is only approximate. Site-specific treatment effects, overdispersion or temporal dependence are possible explanations to investigate, with a parametric bootstrap available to calibrate the sparse-count fit statistic. A before/after association alone does not isolate a causal effect from secular changes or regression to the mean at selected sites.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 36 5 ii Solution Created 2026-10-03 Updated 2026-10-14
With the negative-binomial size held fixed, collect all mean-independent terms into . The cell log-likelihood isIts derivative isFor it is positive below and negative above , so the saturated maximum is at . For , the maximum is the boundary limit . Evaluating the saturated-minus-fitted log-likelihood gives the negative binomial devianceAll gamma-function and factorial terms cancel because the same known is used in both models. The zero-count logarithmic term is interpreted as zero; its remaining cell contribution is . No intercept score cancellation is required for this formula, so it applies to the specified design whether or not its covariates include an intercept.
For completeness, the fitted coefficients obey the score equations of the fixed-size negative binomial generalized linear model,The logarithmic link is not the canonical link for this family, but it produces the requested positive means. As a check, when ,so the formula tends to the full Poisson deviance, including the linear terms when an intercept-balance equation is unavailable. The size used here is the negative-binomial size parameter; it is distinct from the random-multiplier variance denoted by the same letter in Question 4.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 36 5 i Solution Created 2026-10-03 Updated 2026-10-14
For independent Poisson counts, the log-likelihood at mean vector isThe saturated model maximizes each cell separately at , including the boundary value zero. If is the fitted mean under the log-linear regression, twice the saturated-minus-fitted log-likelihood is the full Poisson deviancewith understood by continuity. The fitted intercept has score function , since differentiating the logarithmic mean with respect to that intercept gives one. Its maximum-likelihood equation therefore gives . This is why Poisson deviance simplifies when an intercept is fitted:Without the fitted unpenalized intercept, one cannot generally discard the two linear terms. The individual logarithmic terms in the simplified sum need not each be positive; nonnegativity belongs to the full deviance, or to the full cell contributions before cancellation.
For the approximation, write and expand . When relative residuals are small,Consequently the quadratic Pearson approximation to the Poisson deviance isthe Pearson chi-squared statistic for unit Poisson dispersion. Adequate expected counts and small relative residuals are what make the quadratic approximation useful; it is not an exact identity and can be poor for sparse cells, especially a zero count with positive fitted mean. Any further chi-squared goodness-of-fit reference needs its own large-count regularity assumptions.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 38 2 Solution Created 2026-10-03 Updated 2026-10-14
The prose names a second year that differs from the table label. The calculations use the four supplied counts, interpreting the first and second rows as the two displayed periods; no numerical conclusion depends on resolving that label discrepancy.
The first generalized linear model treats the four counts as independent Poisson random variables, with a log link and both row and column regression factors. The row-by-column interaction makes the log-linear model saturated. With , writeIts four maximum-likelihood fitted values equal the observed counts. Thus , , , andThe interaction is the log odds ratio measuring association of row and column. Under independent Poisson sampling, the delta-method variances are for the intercept, for the row contrast, for the column contrast, and for the interaction. Their square roots reproduce the printed standard errors. Although the software labels the standardized ratios as t values, these are asymptotic normal Wald statistics, with known Poisson dispersion one, not exact finite-df Student tests.
The statistical saturated model has zero residual deviance and zero residual degrees of freedom; this is a perfect interpolation, not evidence of predictive adequacy. The null deviance compares the four observed counts with an intercept-only model, whose four fitted means are . Fisher scoring is the numerical score/information iteration used to fit the model; the iteration count is a convergence report, not a test statistic.
Dropping the interaction gives the independence log-linear model for a two-way contingency table, . Its Poisson regression margin-matching score equations match the row and column totals, soHere and denote the observed row and column totals. In particular the fitted row multiplier is , the column multiplier is , and the intercept is . These produce the second coefficient table. Their standard errors follow from the inverse Fisher information matrix; for the row and column contrasts their squared values are and , while the intercept variance is .
The Poisson deviance relative to the saturated fit isThe linear terms cancel because fitted and observed totals agree. The additive model has three coefficients, leaving one degree of freedom. Wilks theorem calibrates this likelihood-ratio test approximately by , giving . The interaction Wald test instead gives ; the two are only asymptotically equivalent.
Fisher's exact test conditions on both margins under independence. If is the upper-left count, thenIts usual two-sided p-value sums the probabilities of all tables no more probable than the observed . That sum is , reproducing the output without an asymptotic approximation. It tests the same absence of row-column association, but conditioning and discreteness explain the numerical difference from the likelihood-ratio test.
In ordinary language, the male proportion among the cases is in the first row and in the second. The estimated case-sex odds ratio is , but its approximate 95-percent confidence interval is wide, . These small samples do not give convincing evidence that the sex composition of cases changed between the two periods. Failure to reject is not evidence that the compositions are exactly equal. Nor do these counts establish a male-to-female disease-incidence ratio or an incidence trend: population denominators and comparable ascertainment would be needed for those interpretations.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 38 4 Solution Created 2026-10-03 Updated 2026-10-14
Use for the intercept, to avoid confusing it with the observation means. Let be the fitted Poisson regression mean. Apart from constants, its log-likelihood isAt a finite interior maximum-likelihood estimate, the intercept score equation gives the Poisson regression margin-matching score equations:The statistical saturated model fits each mean to , taking the boundary mean zero if . Subtracting fitted from saturated log-likelihood gives the Poisson devianceThe intercept balance cancels the sum of linear terms. ConsequentlyThe unsimplified formula makes nonnegativity transparent; individual terms in the simplified formula need not each be positive.
For the deviance goodness-of-fit test, if the fitted design has rank , compare a suitably calibrated with , rejecting for large values. This approximation applies in a regular large-count regime, such as a fixed set of cells with increasing exposure and positive fitted proportions. It is not automatically accurate for many sparse Poisson observations. Check residual patterns and overdispersion; where the approximation is doubtful, simulate independent Poisson random variables with fitted means, refit each sample, and use a parametric bootstrap distribution of the same statistic. A large p-value means no detected lack of fit, not proof of the model. If a finite interior estimate fails to exist, the score proof needs a boundary-limit interpretation; for example all-zero data give a supremum with every fitted mean tending to zero and limiting deviance zero.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 37 1 i Solution Created 2026-10-03 Updated 2026-10-14
Let be the design matrix with row , let , and write . Independence gives the Poisson regression likelihood functionThe score function and negative Hessian matrix areBecause , the score has mean zero; independence and the Poisson distribution variance give . Thus the observed and expected Fisher information matrices are the same here.
Assume has full column matrix rank . For a nonzero vector , . The concavity of the Poisson regression likelihood therefore makes any finite solution of the unique maximum-likelihood estimator. If the design is rank deficient, parameters differing by a vector in give the same distribution, so only identifiable combinations can be estimated. Full rank alone does not ensure a finite maximizer: for an intercept-only model with all observations zero, approaches its supremum as . More generally, directions that decrease only fitted means attached to zero counts can produce boundary fits. A useful sufficient case for a finite fit is full rank with every count positive: each summand tends to in either tail, and some diverges whenever diverges.
For an interior fit, Newton's method and Fisher scoring give the same update:This is also iteratively reweighted least squares. Define the working response , with , and regress on using weights :A numerical implementation solves these linear equations rather than explicitly forming the inverse, checks convergence of the score and likelihood, and can shorten a step when necessary.
Under the usual fixed-design regularity conditions, with growing information and no single observation dominating it, a score Taylor expansion about the true parameter givesEstimate the covariance matrix by ; its diagonal square roots are the coefficient standard errors. This justifies large-sample Wald confidence intervals and Wald tests for specified coefficients or contrasts. Finite-sample unbiasedness is not being asserted. A likelihood-ratio test compares nested fits through twice their maximized log-likelihood difference. The Poisson deviance against the saturated fit iswith . Residual diagnostics and a check of overdispersion assess whether the assumed Poisson variance is adequate; the variance correction required when it is not is derived in the next part.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 41 2 i Solution Created 2026-10-03 Updated 2026-10-14
The Poisson deviance compares the fitted Poisson regression with a saturated statistical model:using . If the usual deviance goodness-of-fit test approximation is adequate, compare with a chi-squared distribution on statistical degrees of freedom. Its upper-tail p-value is about , and . There is no detected lack of fit or evidence of substantial overdispersion from this deviance. This neither proves the Poisson regression correct nor establishes that the slope is nonzero. Small expected counts, dependence or inadequate covariate specification can undermine the reference approximation, so deviance residuals and other regression diagnostics still matter.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 41 3 Solution Created 2026-10-03 Updated 2026-10-14
The Poisson distribution mass function isIt is an exponential dispersion family of order one withIndeed, and . A generalized linear model specifies independent random variables from a response exponential family, together with a linear predictor and a link function relating it to the response mean. The Poisson canonical link is .
For the insurance counts, let class and merit be the reference levels in a regression factor. The fitted Poisson regression assumesThe insured exposure is known; its logarithm is an offset, not a coefficient to estimate. The model has eight free mean parameters and fixes the dispersion parameter at one. It assumes additive class and merit effects on the log-rate scale, hence multiplicative effects on the rate scale without a class-by-merit interaction.
Apart from constants independent of the parameters, the log-likelihood isDifferentiating gives the Poisson regression margin-matching score equationsThus the fitted totals equal the observed totals in each class and merit category, including the reference categories by subtraction. In design matrix notation these equations are . Fisher scoring solves them iteratively; the reported three iterations describe the numerical fit, not an additional statistical result.
The regression intercept gives the baseline fitted claim rate per insured car year. The merit rate ratios, relative to merit at the same class, areThe class rate ratios, relative to class at the same merit, areEach predicted cell rate is the baseline rate times its class and merit multipliers. The output's coefficient-to-standard error ratios are asymptotic normal Wald test statistics under the fitted Poisson regression, despite the software label “t value”; there is no estimated Gaussian residual scale in this model. All nonreference effects have very large absolute ratios.
The null Poisson deviance is on nineteen statistical degrees of freedom; adding the seven factor coefficients reduces it by . But the final Poisson deviance is still on twelve statistical degrees of freedom, and the deviance residuals include values near and . These are far beyond what a well-fitting unit-dispersion model would normally produce. The additive Poisson model fits substantially better than a common rate, but remains grossly inadequate. A class-by-merit interaction, overdispersion, or statistical dependence between claims could contribute; the summary alone does not distinguish these explanations. Its very small nominal standard errors and formal Wald tests rely on the rejected model, so improved mean structure and error assumptions are needed before treating them as reliable uncertainty assessments.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 41 3 Solution Created 2026-10-03 Updated 2026-10-14
A Poisson distribution has probability mass , where . It is an exponential family with , mean and variance . The responses are independent, their linear predictors are , and the log link relates these predictors to their means. These are precisely the components of a generalized linear model; the log link is its canonical link function and the dispersion is one.
The log-likelihood and score function areThus a finite maximum-likelihood estimator satisfiesThe Hessian is ; with a full-rank design matrix it is negative definite at finite parameter values, so a finite solution is the unique maximum. A finite maximum need not exist for every possible response/design combination; the displayed equations describe it when it does exist. If the first component of every is one, the first score equation gives .
The saturated model fits each mean as , with the limiting mean zero allowed for a zero count. Subtracting the fitted log-likelihood from the saturated log-likelihood gives the Poisson deviancewhere . With an intercept, the sum of the second terms is zero, but retaining them is necessary without that score equation.
Take low pH as a reference level. For group , the model with interaction haswhere is biomass. The additive model sets every to zero. The interaction model estimates six parameters and the additive model four. In the additive model the log-mean curves are parallel straight lines, while the mean curves are positive exponentials with fixed ratios . In the interaction model the log-mean slopes differ, and the mean ratio is . The following sketches illustrate common versus factor-specific slopes in Poisson regression; their coefficients are illustrative, not estimates from the data.
The additive model is nested in the interaction model with two restrictions. The likelihood-ratio test therefore useswhose p-value is . There is strong evidence that the biomass slope on the log-mean scale depends on pH. The interaction-model residual deviance is close to its residual degrees of freedom, giving no obvious indication of overdispersion from this comparison alone. The supplied deviances contain no slope estimates: they do not establish which pH group has more species, whether each slope is positive or negative, or whether any actual curves cross. Those conclusions require the fitted coefficients and their uncertainty.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 41 4 c Solution Created 2026-10-03 Updated 2026-10-14
The second analysis is an exposure-adjusted Poisson regression for case counts:Cell counts are independent, and their conditional variance equals their conditional mean. The population term is an offset with coefficient fixed at one. Thus the fitted case rate is ; treating as a free covariate would fit a different model. Age multipliers and the adjusted city rate ratio are exponentials of the corresponding regression coefficients.
The fitted model again has nine parameters and six residual degrees of freedom. Sequential additions of age and city reduce the Poisson deviance by on seven degrees of freedom and on one, respectively. The residual deviance is , close to the six residual degrees of freedom. The city likelihood-ratio test is overwhelmingly significant, as in the binomial analysis. The table provides no Poisson coefficient estimates, so an exact Poisson city rate ratio cannot be read from it.
Past exam of the mathematics course of the University of Cambridge 2008 ii Paper 4 5J Solution Created 2026-09-24 Updated 2026-10-14
These are nested Poisson regression models with independent counts and the default log link function. If is biomass and is the three-level pH group, model 1 specifies : one common intercept and slope. Model 2 specifies : three group-specific intercepts and a common slope. Model 3 specifies : three intercepts and three slopes, because the multiplication syntax includes both main effects and their interaction. The parameter counts are therefore .
The analysis of deviance compares model 1 against model 2 by testing equality of the three intercepts, conditional on a common biomass slope. The likelihood-ratio test statistic is with two additional parameters, giving the reported tiny p-value. The next test compares model 2 against model 3 by testing equality of their three slopes. Its statistic is , again with two degrees of freedom and reported . Both restrictions are rejected. Thus model 3 is the supported choice: both baseline richness and its biomass dependence vary with pH. Under the Poisson assumptions, residual deviance on residual degrees of freedom is also consistent with a satisfactory fit, although these nested tests themselves establish improvement rather than every possible aspect of model adequacy.
The prediction from model 2 is on its linear-predictor scale. Exponentiating gives its fitted means. The final expression is twice the saturated log likelihood minus the model-2 log likelihood, i.e. the Poisson deviance of model 2. ConsequentlyIn the saturated model each mean equals the corresponding observed count, with the usual continuous convention for a zero count.
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 102 3 b Solution Created 2026-10-03 Updated 2026-10-14
Let be passenger count and use a Poisson regression with log mean, initially treating the response as a working daily count:Center and scale the continuous predictors before fitting, and compare a small set of defensible reduced models rather than saturating twenty observations. Household counts should not be called household proportions without a household denominator; population-scaled counts are alternative intensity covariates. Bus miles can be an estimated elasticity term rather than an offset, since proportionality of passenger numbers to bus miles has not been established.
For actual counts, the log-likelihood score is , with . Fitting by iteratively reweighted least squares uses weights and working response . Compare nested means by a likelihood-ratio test only if the Poisson variance assumption is plausible; check the Poisson deviance, Pearson dispersion , residuals, leverage and sensitivity to influential providers. Consider Quasi-Poisson regression or negative binomial regression if variance exceeds the mean.
The recorded response is actually a daily average, so Poisson working models for averaged counts need special care. If a provider was observed for days and total passengers were , fit with offset . If only the average and no observation duration are available, a Poisson mean model can still be explored, but its likelihood and standard errors are not automatically justified by integer-looking averages.
A one-unit increase in an untransformed predictor has fitted multiplicative mean effect ; a bus-mile elasticity gives a doubling effect . No numerical coefficient estimates or selected twenty-provider model are identifiable from the printed excerpt. The full provider file and, ideally, the averaging periods are needed to execute these model comparisons.
Past exam of the mathematics course of the University of Cambridge 2010 ii Paper 1 13J Solution Created 2026-09-24 Updated 2026-10-14
Let denote the maximized log-likelihood in the saturated model, with one fitted mean per observation. With known dispersion, define the deviance of a fitted model as ; for an exponential-dispersion convention that scales deviance by the dispersion , divide that scaled quantity by in the following test.
Let be the fitted deviances under the null and full models. Their difference is the likelihood-ratio test statisticUnder the regular identifiable interior null hypothesis, Wilks theorem gives the limiting distribution. Reject for an observed difference above its chosen upper-tail critical value. This concerns the difference of fitted model deviances, not simply the full-model deviance compared with zero.
For a Poisson regression, the means are and . Saturation sets , taking the limiting value at . Consequently the Poisson deviance iswith . The intercept score implies at a finite fit, although retaining that term makes the individual deviance contributions clear.
For with small, expand . The linear term cancels and the result is . Thereforethe Pearson chi-squared statistic. The approximation requires adequately large fitted counts and small relative residuals; it is not an identity for sparse observations.
Past exam of the mathematics course of the University of Cambridge 2011 ii Paper 4 5J Solution Created 2026-09-24 Updated 2026-10-14
Model each person's infections over the fixed exposure period as an independent Poisson random variable with mean , conditional on the explanatory variables. The sum over people is then Poisson distributed with mean , because independent Poisson counts add. This is reasonable for repeatable events occurring at an approximately constant rate without substantial clustering; the count need not be at most , so a binomial model would not describe repeated infections.
The Poisson regression uses a log link and the known offset . The omitted factor levels are the reference categories under treatment contrasts: their effects are absorbed into the intercept. Including all levels together with an intercept would make the design matrix linearly dependent. For the proposed new group, the relevant predictor uses the intercept, the infrequent-swimmer coefficient and the age-20–24 coefficient; beach and female are reference levels. HenceTo add the age-by-sex interaction, one possible R command iswhere
glm(count ~ freq + loc + age * sex, family = poisson, offset = log(n), data = swimmers)swimmers denotes the data frame. The product expands to both main effects and their interaction. There are two additional interaction coefficients because age has three levels and sex has two.The nested-model comparison is a likelihood-ratio test. The reduction in Poisson deviance is , asymptotically under the null hypothesis that both interaction coefficients are zero. Its reported -value gives evidence for an age-by-sex interaction at the five-percent level, though not at the one-percent level.
Neither fitted Poisson model fits well in an absolute sense. Comparing residual deviances with and respectively gives small tail probabilities: the deviance-to-degree-of-freedom ratios are about and . Improvement relative to the simpler model does not establish goodness of fit. Omitted structure, dependence or overdispersion could account for the remaining lack of fit; if the Poisson variance assumption is false, the nominal interaction-test calibration also needs reconsideration. The age label in the introductory legend is inconsistent with the actual model levels; the prediction uses the unambiguous age-20–24 row.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 4 b Solution Created 2026-10-03 Updated 2026-10-07
The saturated model estimates each Poisson mean separately as , permitting the boundary value zero when . Subtracting fitted from saturated log-likelihood gives the Poisson deviancewith . A zero observation contributes . If the model includes an intercept, the score equation gives , so the summed linear terms cancel; the unsimplified expression applies generally.
For goodness of fit, the null hypothesis is that the specified independent Poisson mean model is correct; the alternative is an unrestricted collection of means. When a quadratic likelihood approximation is valid, for example with fixed and large expected counts, has approximately a chi-squared distribution with statistical degrees of freedom. Reject for a large upper-tail deviance. Merely increasing the number of sparse observations does not make this saturated-model reference reliable: the alternative dimension also increases. With small fitted means, replication-based checks or a parametric bootstrap are more defensible. This qualification concerns the absolute goodness-of-fit deviance; a fixed-dimensional nested likelihood-ratio comparison can have a better chi-squared approximation.
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 1 10J Solution Created 2026-09-24 Updated 2026-10-06
The Poisson regression uses independent counts with mean and logarithmic link function. Writing for concentration, the fitted predictors for strains are respectivelyThe interaction formula includes concentration, strain indicators and their products. The intercept is the baseline log mean at zero toxin; exponentiating it gives about fleas. Strain coefficients compare log means at zero concentration. Interaction coefficients compare concentration slopes with the common strain. A unit concentration increase multiplies the three means by about , and respectively.
For design matrix , the fitted expected Fisher information is , , since a Poisson count has variance equal to its mean. Standard errors are square roots of diagonal entries of . Each reported Wald test divides its coefficient estimate by its standard error and compares with an approximate standard normal distribution under a zero-coefficient null, conditional on the other terms. Concentration has strong evidence of a negative baseline effect. At zero concentration strain 1 is not significant at 5% (), while strain 2 is (). The strain-1 slope differs strongly from the baseline (); the strain-2 slope has no detected difference (). A nonsignificant difference is not proof of equality. The very significant intercept is a test of mean one at zero toxin, with little scientific relevance.
Relabelling factor levels merges strains 0 and 2 into one group and leaves strain 1 separate. Model retains three intercepts but allows only two slopes: strain 1 versus the common slope of strains 0 and 2. Thus it has five parameters, compared with six in . Model merges both intercepts and slopes for strains 0 and 2, retaining only four parameters. The natural nesting is .
For these nested generalized linear models, the difference in Poisson deviance is an asymptotic likelihood-ratio test statistic with degrees of freedom equal to the parameter difference. Comparing with gives on one degree of freedom, far below : the additional strain-2 slope is unnecessary. Comparing with gives on one degree of freedom, far above : merging the strain-0 and strain-2 intercepts is rejected. Comparing with uses on two degrees of freedom and requires a two-degree-of-freedom threshold, about , rather than the supplied .
is the most appropriate of the three models: retain different strain baselines and the special strain-1 slope, but pool the unsupported strain-2 slope difference. Residual degrees of freedom are ; deviances of this magnitude give no obvious evidence of overdispersion from these summaries alone.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 206 3 b Solution Created 2026-10-03 Updated 2026-10-06
For independent Poisson distributions, ignoring the factorial term only when taking likelihood differences,The saturated likelihood maximizes each mean separately at , including its limiting value at zero. Therefore the Poisson deviance iswhere is defined to be zero and . The expression is twice a saturated-model likelihood ratio difference, not twice a likelihood ratio itself.
With sufficiently large fitted counts and regularity, is approximately under a correctly specified Poisson regression. Here on 28 residual degrees of freedom, with upper-tail probability . The Poisson model fits poorly on this diagnostic. Its deviance is nearly three times its degrees of freedom, consistent with overdispersion, although a wrong mean function, dependence, or influential islands could also cause the discrepancy. The smaller Akaike information criterion than its competitors does not make this an adequate absolute fit.
