Two equally numerous groups of independent counts with Poisson distributions have areas and . Under common density their group means are in ratio . With group sums and , the maximized alternative-to-null likelihood ratio isUse zero-count limits and when . The regular Wilks theorem calibration has one degree of freedom. Exactly conditioning on gives under the null; this supports small-count testing without the large-sample approximation.
Likelihood-ratio test statistic 2026-09-29
For nested null and alternative parameter spaces, the likelihood-ratio test statistic isUnder the regularity conditions of Wilks theorem, its null limit is a chi-squared distribution whose degrees of freedom equal the difference in model dimensions.
Past exam of the mathematics course of the University of Cambridge 2005 ii Paper 1 27I Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 4 27J c Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2007 ii Paper 2 27I i Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2010 ii Paper 1 13J Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2014 ib Paper 1 19H Solution Created 2026-09-24 Updated 2026-10-06
Put . Independence gives a likelihood ratioSince , this is strictly increasing in . A threshold chosen between its values at and gives precisely the stated upper-tail critical region, so it is a likelihood-ratio test.
The sum has a Poisson distribution with mean . Thus the size of a statistical test and its statistical power at are
For the grouped-area problem, let , , . The null log likelihood, up to data-only constants, isThe maximum-likelihood estimate is , giving fitted means and in the two groups. Under the alternative, the fitted group means are and .
Use the increasing generalized likelihood-ratio test convention , consistent with the printed positive . The exponential and factorial factors cancel, yielding the likelihood-ratio test of area-proportional Poisson meansTerms with zero count are interpreted as ; if , take . If the inverse ratio is used, the reported test statistic is instead .
Under the null, the regular large-sample Wilks theorem approximation is : the alternative has two rate parameters and the null one. The value far exceeds the usual critical value, about , and has approximate tail probability . Thus reject proportionality of the expected counts to area: the two groups show evidence of different territory densities. The statistic alone does not say which group has greater density; that requires versus . For small counts, an exact conditional test uses under the null instead of the asymptotic calibration.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 206 6 d Solution Created 2026-10-03 Updated 2026-10-06
The comparison removes the random slope and tests against , while retaining the same fixed intercept and slope. A variance cannot be negative, so zero is a boundary point of the parameter space. The regular Wilks theorem assumptions behind an ordinary likelihood-ratio test fail. Consequently the default chi-squared p-value from
anova is not reliably calibrated for this variance-component likelihood-ratio test at a boundary. This is different from the fixed-slope test in part (c). The reference to strength_model1 means the earlier object strength_model; no separate model 1 object was defined.A useful alternative is a parametric bootstrap. Fit the null random-intercept model, then simulate data on the actual predictor values and furnace grouping by generating null intercept effects and observation errors from its fitted Gaussian distribution. Refit null and alternative models to each simulated dataset using the same likelihood method and compute the same likelihood-ratio statistic. If is the observed statistic, estimate its upper-tail probability byThis incorporates the zero-variance boundary and the actual small group count. It is a fitted-null simulation approximation because nuisance parameters are estimated, not a universally exact test. Since both models have the same fixed-effect space, a similarly calibrated restricted-likelihood statistic is also possible. Under suitable asymptotics for a single identifiable added variance component the familiar limiting law is , but using the bootstrap avoids relying on that approximation with only three groups. There is no supplied statistic or calibrated bootstrap result here from which to decide whether the slope variance is required.