Past exam of the mathematics course of the University of Cambridge 2001 ib Paper 2 12D Solution Created 2026-09-24 Updated 2026-10-14
For a generalized likelihood-ratio test, maximize the likelihood separately over the null parameter space and the unrestricted space. Define , and reject for small , equivalently large . Choose the rejection threshold to achieve the desired null significance level, using an exact distribution when available or a justified asymptotic calibration; nuisance parameters are fitted under the respective restrictions.
For independent Poisson distributions, the likelihood is . The unrestricted maximizers are , allowing zero as a boundary value. Under the common-mean null, maximizing gives . The exponential and factorial factors cancel in the ratio, yieldingIf all counts are zero, set and ; no division by is then needed.
For positive , put , so . Expanding the logarithm givesConsequentlyIt is the quadratic Pearson approximation to the Poisson deviance. The approximated statistic is the logarithmic ratio , not the bounded raw ratio .
Under the null in the large-common-count regime, this statistic has an approximate chi-squared distribution with degrees of freedom: fitting the common mean removes one independent residual direction. For , use six degrees of freedom. At , the upper-tail probability in that approximation isThus reject the equal-mean null at conventional 5% or 1% significance levels, provided the expected counts justify the chi-square approximation. No particular significance level or common count was supplied, so the numerical decision is stated with those assumptions.
Past exam of the mathematics course of the University of Cambridge 2002 ib Paper 2 12H Solution Created 2026-09-24 Updated 2026-10-14
For independent observations from a normal distribution with unknown mean and positive variance, the maximum likelihood estimation of the mean givesIndeed , which is minimized at . The likelihood isFor fixed , differentiation in gives the maximizer . Thus the unrestricted fit has , whereas under the null hypothesis the fitted variance is . Both maximize rather than minimize the likelihood: it tends to zero at either variance endpoint when the residual sum of squares is positive.
The restricted-to-unrestricted likelihood ratio is thereforeThe generalized likelihood-ratio test rejects for small , equivalently large . Under the null, is standard normal, has a chi-squared distribution with degrees of freedom, and they are independent. To see the independence, apply an orthogonal matrix to the standardized normal sample, taking its first row to be : the transformed coordinates remain independent standard normal variables, and is the sum of squares of the other coordinates. Hence has Student's t-distribution with degrees of freedom.
Past exam of the mathematics course of the University of Cambridge 2004 ib Paper 1 10H Solution Created 2026-09-24 Updated 2026-10-14
Assume independent samples and , each consisting of independent normal random variables, with respective means and a common unknown variance . Take . Normality, independence and equal variances are the assumptions giving the exact pooled Student's t-test; unequal variances would require a different test. We test against an unrestricted difference.
Put andThe normal likelihood is proportional to , where is the residual sum of squares. Under the unrestricted model, the maximizing means are and . Under , the maximizing common mean is and decomposition about the sample means gives . For either model, maximizing over variance gives . Thus the generalized likelihood-ratio test statistic isSmall is therefore equivalent to large .
Under the null, is standard normal. In each sample an orthogonal change of Gaussian coordinates separates the sample-mean coordinate from the centered residual coordinates; those coordinates are independent. Consequently has a chi-squared distribution with degrees of freedom and is independent of . Therefore has the Student's t-distribution with degrees of freedom. At significance level , reject exactly when , the two-sample pooled t-test.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 43 2 ii Solution Created 2026-10-03 Updated 2026-10-14
Let , and . Define the within-group and between-group scatter matrices byThe within-group and between-group scatter decomposition gives total scatter : in each group the residuals about sum to zero, so all cross terms vanish. Under unrestricted group means, the maximum-likelihood estimators are and . Under the common-mean null hypothesis, they are and .
For either fitted scatter matrix , substitution into the log-likelihood givessince . Thus the maximized likelihood ratio isA generalized likelihood-ratio test rejects for small , equivalentlyThe cutoff is chosen for the desired significance level. The determinant ratio itself is the Wilks lambda statistic. The derivation assumes is positive-definite, which for continuous normal samples requires enough within-group degrees of freedom, ; singular does not support this ordinary determinant-based test without a modified model.
Past exam of the mathematics course of the University of Cambridge 2005 ib Paper 3 8D Solution Created 2026-09-24 Updated 2026-10-14
Write and . The normal-sample likelihood isWithout the mean restriction, its maximum has and . Under the null, the maximizing variance is . Substituting them gives the generalized likelihood-ratio test statisticwhere and . Assume ; almost surely for positive population variance.
The ratio decreases strictly as increases, so rejecting for small is equivalent to rejecting for large . Under , has Student's t-distribution with degrees of freedom. Therefore the exact size- rule isThis is the two-sided Student's t-test. Equivalently reject when . No large-sample chi-squared approximation is needed for this normal-mean likelihood ratio with unknown variance.
Past exam of the mathematics course of the University of Cambridge 2007 ib Paper 1 7C Solution Created 2026-09-24 Updated 2026-10-14
Write , , and . The normal likelihood is proportional to . Its unrestricted maximizers are , . Under the null the variance maximizer is . Substitution gives the generalized likelihood-ratio test statisticThe ratio decreases as increases, so the likelihood-ratio rejection region is two-sided in . Under , is standard normal and is independent chi-squared with degrees of freedom. Independence follows by resolving the isotropic Gaussian sample vector into its projection on the constant vector and its orthogonal complement. Hence has the exact Student t-distribution with degrees of freedom.
For a chosen significance level , compute the sample mean and the sample standard deviation with denominator , and reject precisely whenEquivalently, report the two-sided -value . This requires and positive population variance; holds almost surely under that model. The nuisance variance is removed by the exact null distribution, so one should not substitute a normal critical value or a large-sample chi-squared approximation. This is the normal-mean likelihood ratio with unknown variance.
Past exam of the mathematics course of the University of Cambridge 2013 ib Paper 4 19H Solution Created 2026-09-24 Updated 2026-10-07
A sufficient statistic is one for which the conditional distribution of the full sample, given its value, is independent of the parameter. For independent observations the likelihood is , depending on the data only through the counts. The factorization criterion for sufficiency therefore makes sufficient. Directly, all ordered samples with given counts have the same probability, so their conditional distribution is uniform over the possible arrangements, independently of the .
The unrestricted maximum-likelihood estimator is . Thus the generalized likelihood-ratio test useswith zero-count terms interpreted by continuity. Reject for small , equivalently large .
Write , so . A Taylor series expansion of gives . Summing cancels the linear terms, and yieldsUnder the null hypothesis, the multinomial central limit theorem places the standardized count deviations in the five-dimensional subspace with coordinate sum zero, with identity covariance on that subspace. Their squared norm consequently tends to the chi-squared distribution with five degrees of freedom. This gives the Pearson chi-squared goodness-of-fit test.
For , the asymptotic p-value is about . The 5% critical value of is approximately . Do not reject at the usual 5% level, or at 10%. A significance level is not specified in the paper, so an unconditional yes-or-no decision is not determined: using this approximation, rejection would require a chosen level at least about .
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 ib Paper 4 19H b Solution Created 2026-09-24 Updated 2026-10-06
Put for the unrestricted fit. Under , the best slope is still because the design is centered. Orthogonality of the residuals to the constant vector givesAt either fitted mean, the maximum-likelihood estimator of variance is . The ratio used by the generalized likelihood-ratio test is consequentlySmall likelihood ratios correspond to large . Under , part (a) gives independent and . Thus has the Student's t-distribution with degrees of freedom. The exact size-5% critical region iswhere is the 97.5th percentile of that distribution. The denominator uses the unbiased residual variance estimate, not the likelihood variance denominator .
Past exam of the mathematics course of the University of Cambridge 2018 ib Paper 3 20H Solution Created 2026-09-24 Updated 2026-10-03
Under the null hypothesis that treatment and recovery are independent, estimate each expected cell count byand form the Pearson chi-squared test of independence statistic . For a table its asymptotic null law is a chi-squared distribution with one degree of freedom. A second-order Taylor expansion of the generalized likelihood-ratio test statistic around the fitted counts gives this Pearson statistic, which explains its asymptotic null distribution.
Writing the four residuals over their fitted counts and simplifying givesFor ,whose one-degree-of-freedom p-value is about . There is no evidence of an effect. One fitted count is only , however, so the chi-squared approximation is questionable; Fisher's exact test would be preferable.
Past exam of the mathematics course of the University of Cambridge 2025 ib Paper 4 17H a Solution Created 2026-09-24 Updated 2026-10-03
The unrestricted maximum-likelihood estimates are , while the null fixes both means at zero. HenceUnder the null this is , so the size- generalized likelihood-ratio test rejects exactly when
Let be the likelihood function, with full parameter space and null hypothesis . The generalized likelihood-ratio test compares the best null fit to the best unrestricted fit:The likelihood ratio lies between zero and one, and small values count against the null hypothesis; equivalently, large values of the likelihood-ratio test statistic count against it.
Compute restricted and unrestricted maximum-likelihood estimates, evaluate their log-likelihoods, and form . Under the regular conditions of Wilks theorem, the null limit isThese statistical degrees of freedom count independent parameter restrictions. The regularity includes a locally identifiable smooth model, nonsingular Fisher information, and an interior null value; parameter-dependent support can invalidate the result.