Past exam of the mathematics course of the University of Cambridge 2019 ib Paper 1 19H a Solution Created 2026-09-24 Updated 2026-09-29
The Neyman-Pearson lemma says that for simple hypotheses with densities , a size- test that rejects where and accepts where , with possible randomization on equality to attain size , is most powerful among all tests of size at most . To prove it, let be this test and any competing test. Pointwise,After integration,which proves maximal power.
For the exponential sample, with ,Since , this ratio is increasing in . The likelihood-ratio test therefore rejects for large :where is the distribution function of the rate-parameterized Gamma distribution .
Past exam of the mathematics course of the University of Cambridge 2019 ib Paper 1 19H c Solution Created 2026-09-24 Updated 2026-09-29
A level- test is uniformly most powerful for a composite alternative when its power is at least that of every other level- test at every parameter value in that alternative.
For every fixed , the likelihood ratio is increasing in the same statistic , and the size- threshold is always the null quantile , independent of . The Neyman-Pearson lemma therefore makes the test from part (a) most powerful against every individual . Consequently it is
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 2021 ib Paper 1 18H d Solution Created 2026-09-24 Updated 2026-09-25
The normalized density isFor against , the sample likelihood ratio isIt is strictly decreasing in . Under , parts (a) and (b) giveIf is the lower -quantile of this gamma distribution, the Neyman-Pearson lemma gives the most powerful size- critical region
For any fixed ,is again strictly decreasing in the same statistic . Thus the same critical region is most powerful against every and is consequently a uniformly most powerful test of against .
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 224 1 b Solution 2026-09-28
The Neyman-Pearson lemma gives an optimal acceptance region for of the formwith possible boundary randomization. If is the empirical mass function, thenso equivalently
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 2024 iii Paper 223 3 d Solution Created 2026-09-24 Updated 2026-09-25
For and , the nominal log-likelihood ratio for one observation is . Under sufficiently small epsilon-contamination neighborhoods, the least-favourable pair clips this likelihood ratio between two constants. Symmetry turns its log into a positive multiple of the winsorized scoreThe robust form of the Neyman-Pearson lemma therefore rejects for large values ofwith boundary randomization and threshold chosen so that the worst-case null rejection probability is . Extreme observations contribute only , preventing a few contaminants from dominating the test.
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.