Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 4 27K d Solution Created 2026-09-24 Updated 2026-10-05
Use the convention that the likelihood ratio is maximized alternative likelihood divided by null likelihood. The alternative excludes zero, but its supremum agrees with the unrestricted maximum, even on the exceptional sample . Completing the square givesUnder the null, , so exactly for every . Equivalently is distributed as for . With the reciprocal likelihood-ratio convention the statistic is instead.
Wilks theorem predicts a limiting chi-squared distribution with degrees of freedom equal to the difference of parameter dimensions, here , under regularity and an interior null point of the unrestricted model. This example strengthens the asymptotic conclusion to an exact finite-sample identity.
Past exam of the mathematics course of the University of Cambridge 2018 ib Paper 2 8H Solution Created 2026-09-24 Updated 2026-10-03
A simple hypothesis specifies a single probability distribution. For a test with rejection region , its size of a statistical test is the rejection probability under the simple null hypothesis, while its statistical power against the simple alternative is the rejection probability under that alternative. The Neyman-Pearson lemma states that among tests of size at most , a test rejecting for the largest values of the likelihood ratio has greatest power, with boundary randomization if needed.
Past exam of the mathematics course of the University of Cambridge 2021 ib Paper 1 18H c Solution Created 2026-09-24 Updated 2026-09-25
The Neyman-Pearson lemma states that, for testing one simple hypothesis with density against another with density , a size- test that rejects for the largest values of the likelihood ratio is most powerful among all tests of size at most , with boundary randomization if needed.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 223 3 a Solution 2026-09-28
Let . For one observation from the unit-variance normal location family,The sample log-likelihood ratio is therefore . By the Neyman-Pearson lemma, the level- most powerful test rejects for a sufficiently large likelihood ratio, equivalently when , with chosen to give null rejection probability .
Past exam of the mathematics course of the University of Cambridge 2023 ib Paper 3 18H b ii Solution Created 2026-09-24 Updated 2026-09-25
For , the likelihood ratio iswhich is increasing in . Thus the logistic location family has a monotone likelihood ratio in .
The upper-tail rejection probability is increasing in the location parameter, since with having the standard logistic distribution. Hence for the critical value from part (i),The test has size for the composite null.
Now fix any alternative . The Neyman-Pearson lemma applied to the simple hypotheses and says that this same upper-tail test is most powerful among all tests whose rejection probability at is at most . Every test of size at most for the composite null satisfies that restriction. The upper-tail test is therefore most powerful at every , so it is the uniformly most powerful upper-tail test for a logistic location.
Past exam of the mathematics course of the University of Cambridge 2023 ib Paper 3 18H b i Solution Created 2026-09-24 Updated 2026-09-25
The likelihood ratio of the simple alternative to the simple null isThis is a strictly increasing function of . By the Neyman-Pearson lemma, the most powerful test therefore rejects for . The logistic distribution hasThe size condition givesBecause the distribution is continuous, no boundary randomization is needed. The most powerful size- test is therefore
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 3 28K c Solution Created 2026-09-24 Updated 2026-10-03
For , let be the Bayes classifier with class-zero prior , and define its two class-conditional error probabilities byWriting the likelihood ratio as , the rule chooses class one whenThe Gaussian likelihood-ratio level sets have probability zero, so dominated convergence shows that and depend continuously on . As , the threshold tends to zero and the classifier chooses class one almost surely, givingAs , it chooses class zero almost surely, giving the opposite limit . The intermediate value theorem therefore provides such that
The rule is an equalizer rule with worst-case risk . For any classifier ,because minimizes the integrated risk for its prior. Hence is a minimax decision rule, as summarized by the minimax Gaussian Bayes classifier from equal class errors.
The prior is indeed least favorable. Its Bayes risk is , while for any other prior the Bayes risk is at most the integrated risk of the same equalizer rule , namelyThus no prior has larger Bayes risk.
Second moment of a mixture likelihood ratio Created 2026-10-06 Updated 2026-10-07
If and the nonnegative mixture weights sum to one, the likelihood ratio of the mixture model is . Expanding proves the displayed chi-squared divergence identity. For independent random variables sampled from a fixed component, one-observation cross moments multiply across observations. The component is drawn once for the whole sample; redrawing it per observation gives a different mixture model.
Statistical test Created 2026-10-05 Updated 2026-10-06
A statistical test is a measurable rule for deciding whether to reject a null hypothesis. Allowing randomisation, it is represented by a function giving the conditional rejection probability after observing . A deterministic test takes only values zero and one. Under a simple null, is its size of a statistical test; under an alternative, is its statistical power. Randomisation on a likelihood ratio equality set allows a Neyman-Pearson lemma threshold test to attain a prescribed size even for discrete data.
For independent samples from an exponential distribution, a test of rate at most against rate greater than rejects for small sample sums. All simple-alternative likelihood ratios against decrease with that sum; its gamma distribution calibrates the size at . Monotonicity of the rejection probability in the rate proves that this is a uniformly most powerful test for the composite hypotheses.