Most powerful test 2026-10-05
At level , a most powerful test against a specified simple alternative maximises statistical power among statistical tests whose size of a statistical test is at most . The Neyman-Pearson lemma constructs it by a likelihood ratio threshold. A uniformly most powerful test is most powerful simultaneously against every member of the specified alternative family; maximising power at one alternative alone need not give uniform optimality.
Most powerful test for a Laplace location shift Created 2026-10-14 Updated 2026-10-25
For two unit-scale Laplace distributions with locations , the likelihood ratio is nondecreasing in , with constant tails and an increasing middle interval. Therefore an upper-tail statistical test of exact size of a statistical test is a most powerful test. Its cutoff is for , and otherwise. Under location , its statistical power is if , and otherwise. Constant likelihood ratio tails can make the most powerful test nonunique.
Past exam of the mathematics course of the University of Cambridge 2002 ib Paper 2 3H Solution Created 2026-09-24 Updated 2026-10-14
Represent a possibly randomized statistical test by a function taking values in , its conditional probability of rejection. Its power function is , and its size of a statistical test is the supremum of this probability over the null hypothesis. At a prescribed significance level , a uniformly most powerful test has at least as much power as every other level- test at every parameter in the alternative.
Put . For any fixed alternative , the likelihood ratio iswhich is strictly increasing in . The Neyman-Pearson lemma therefore selects the upper tail . Its cutoff is determined solely by the null distribution, not by , so the same statistical test is most powerful against every allowed alternative and hence uniformly most powerful.
Under rate , has a gamma distribution with shape and rate . For completeness, convolution starts with and, if the -term density is , convolving once more gives . Integrating this density by parts repeatedly gives its upper-tail probability. Consequently reject precisely when , whereand the power function isFor the continuous strictly decreasing null tail gives a unique positive cutoff, with exact size and no boundary randomization.
Past exam of the mathematics course of the University of Cambridge 2004 ib Paper 2 21H Solution Created 2026-09-24 Updated 2026-10-14
A simple hypothesis specifies one probability distribution. Let the null hypothesis and alternative have probability density functions with respect to a common measure. A possibly randomized statistical test is a measurable function , its conditional probability of rejecting the null hypothesis. Its size of a statistical test is , and its statistical power at the alternative is . A most powerful test at level maximizes power among tests with size at most .
The Neyman-Pearson lemma says to choose and a test of size with where and where , choosing values on the equality set to reach the specified size. Equivalently, threshold the likelihood ratio, treating positive alternative density with zero null density as an infinite ratio. Randomization on a threshold atom ensures exact size when needed. If , all remaining null-only mass can be used to reach size without changing power.
For any test of size at most , the signs of the two factors givepointwise. Integrating provesThis is the required optimality proof. If and another test is equally powerful, both inequalities must be equalities. It must have size and agree with wherever , apart from null sets for the relevant densities. Thus freedom is confined to the equality set and sets null under both hypotheses; at , additional size need not improve power. This also explains the nonuniqueness below.
For the unit-scale Laplace distribution, put . Its likelihood ratio isIt is nondecreasing, so an upper-tail critical region has the Neyman-Pearson lemma form, even if the cutoff lies inside a constant-ratio tail. Solving gives the most powerful test for a Laplace location shift,Continuity of the distribution makes this nonrandomized test exactly size . It need not be the unique most powerful test: within a flat extreme likelihood ratio region, other selections having the same null probability are equally good.
Its statistical power isHere denotes power, not the probability of a type-II error. For , . Thus the power is for , and otherwise. The first branch is at most . On the second branch, power at least is equivalent to . Therefore the required pairs are exactly , with no restriction on the common location.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 44 4 c Solution Created 2026-10-03 Updated 2026-10-14
Assume equal allocation of independent offenders to each arm and a two-sided statistical test of significance level . Write for P30 and for initial community-service assignment, with and . The two event counts have independent binomial distributions. Under the stated alternative, the difference of sample proportions is approximately a normal distribution with mean and varianceThe pooled two-proportion test has approximate upper rejection threshold at the planning rates, where is the standard normal quantile. To obtain statistical power against a positive difference, place the alternative mean alternative-standard-errors above that threshold:Solving yields the usual sample size for comparing two proportions:per arm, rounded upwards, with total sample size . This targets the dominant rejection tail under the planning alternative; an exact power calculation can include the very small opposite-tail probability or use the binomial distributions directly.
For illustration, at , and , giving . ThusFor a prespecified one-sided test, replace by . The calculation assumes complete endpoint ascertainment, independent individual allocation and that the two initial-policy rates are appropriate; losses or clustered allocation would require corresponding design adjustments.
Past exam of the mathematics course of the University of Cambridge 2017 ib Paper 4 19H a Solution Created 2026-09-24 Updated 2026-10-05
Let be simple hypotheses with densities (their Radon-Nikodym derivatives) relative to a common dominating measure. A possibly randomised statistical test is a measurable function ; its size of a statistical test is and its statistical power is . The Neyman-Pearson lemma says that a likelihood ratio threshold testchosen to have size , is a most powerful test among tests of size at most . A constant randomisation on the equality set suffices to reach the required size; sets where are always rejected. For , a quantile of the likelihood ratio under gives such a threshold. If the threshold is zero, randomisation where may be needed to use the remaining size. At , one can reject only a -null set and optimally reject the part supporting ; at , always reject.
For the proof, every competing satisfiespointwise: the signs agree off the equality set, where the product is zero. Integrating givesThus the likelihood-ratio threshold test has maximum power at the stated level. If , a competing most-powerful test must have size and agree with off the equality set, apart from sets null for ; both inequalities must then be equalities. For , equal size is not necessary for optimality, because changing decisions where does not affect power. These qualifications account for ties and singular supports rather than assuming all densities are strictly positive.
Total variation distance Created 2026-09-24 Updated 2026-10-13
Total variation distance asks how much two probability distributions can disagree about the same event. For probability measures on one measurable space , its definition isThe supremum ranges over all measurable sets, so guarantees that every yes-or-no prediction has probability error at most . This metric takes values between zero and one; it is zero exactly when the two probability measures agree. This makes it useful for comparing a sampling algorithm's output with its target probability distribution, and for defining the mixing time of a Markov chain.
On a finite set, add the excess probability mass wherever exceeds . That excess is also half the sum of all absolute differences:The last expression reveals the common probability mass that the two probability distributions can share.[ref]
Markov Chains and Mixing Times, second edition by David A. Levin and others. §4.1, Proposition 4.2 and Remark 4.3, printed p. 48; §4.2, equation (4.13), printed p. 51
The coupling characterization of total variation distance turns this overlap into an actual joint construction; minimum sum of errors in a simple hypothesis test gives it a statistical interpretation. One quantity connects probability bookkeeping, comparison of sampling methods, and the limits of a statistical test.Suppose one observation comes from either or , each with prior probability . A decision rule that chooses on an event and otherwise has success probabilityOn a finite set, choosing therefore gives . This is the equal-prior version of minimum sum of errors in a simple hypothesis test; allowing a statistical test to use an auxiliary random variable cannot improve it, because for each outcome the better of the two decisions already maximizes its contribution.
For the four-outcome example, choose after and after or , with either decision allowed after . Choosing after yields . The best success probability is 65%, with a 35% error probability. A smaller total variation distance means the two sources are harder to distinguish from one observation. Unequal prior probabilities, unequal costs, or multiple observations change this particular decision problem; the figure is not a universal bound for every experiment.