Most powerful test Created 2026-10-05 Updated 2026-11-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 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 2007 ib Paper 2 19C Solution Created 2026-09-24 Updated 2026-10-14
The Neyman-Pearson lemma concerns a simple hypothesis with density against a simple alternative with density . Allow a randomized test . Choose a threshold and, if necessary, randomize on the equality set so thatThen is a most powerful test among all tests of size at most . To prove it, let . Pointwise, : above threshold both factors are nonnegative; below threshold both are nonpositive; on the threshold their product vanishes. ThereforeThis proves the lemma, including regions with , where a positive alternative density must be rejected. It also shows that ties in the likelihood ratio are the only discretionary region when the inequality is strict off the threshold.
For the stated family, has the Gamma distribution with shape and unit rate. At it has the exponential distribution, and the likelihood ratio for against isbecause . The most powerful test therefore rejects for large . Since , its exact size- critical value and rejection rule areThe distribution is continuous, so boundary randomization is unnecessary. Under , integration by parts gives the power function of a statistical testFor every fixed , the likelihood ratio against the same null is , strictly increasing in . The size constraint still selects exactly the same critical value , independent of the alternative. The Neyman-Pearson lemma therefore makes this single test most powerful against each separately. Hence it is uniformly most powerful for the composite alternative .
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.
Past exam of the mathematics course of the University of Cambridge 2017 ib Paper 4 19H b Solution Created 2026-09-24 Updated 2026-10-05
Under the null hypothesis , has the uniform distribution on . Against , the likelihood ratio is , increasing on that interval. The Neyman-Pearson lemma therefore givesThe size of a statistical test is , and there is no boundary randomisation issue for this continuous probability distribution. Its statistical power against is .
For every admissible alternative , the likelihood ratio is strictly increasing. The same upper-tail rejection set has size and is a most powerful test against each fixed such alternative, again by the Neyman-Pearson lemma. Hence the same test is a uniformly most powerful test against , where the alternative is understood within the specified parameter range. Its full power function isFor or , the never-reject or always-reject test supplies the respective endpoint case.
The Neyman-Pearson lemma concerns testing a simple null density against a simple alternative . A test that rejects where , accepts where the ratio is below , and if necessary randomizes on the boundary to have null rejection probability , is a most powerful test among tests of size at most . Thus a likelihood-ratio threshold maximizes power at the specified simple alternative. The boundary randomization is relevant for discrete distributions.
The Neyman-Pearson lemma concerns testing a simple null density against a simple alternative . A test that rejects where , accepts where the ratio is below , and if necessary randomizes on the boundary to have null rejection probability , is a most powerful test among tests of size at most . Thus a likelihood-ratio threshold maximizes power at the specified simple alternative. The boundary randomization is relevant for discrete distributions.
Put . For interior parameters , the alternative-to-null likelihood ratio isThe second base is greater than one, so this is strictly increasing in . The Neyman-Pearson lemma therefore gives an upper-tail rejection rule. Under the null hypothesis, , and an ordinary conservative threshold can be chosen asThere is an important discrete qualification: an integer cutoff need not have test size exactly . To obtain exact size, choose an integer with , reject certainly when , and at reject with probabilityThis randomized statistical test is a most powerful test at exact size ; when a binomial upper tail equals , no randomization is needed and the stated region is literal. Otherwise the unrandomized upper-tail region has size at most , and the exact-size result includes the boundary randomization. Endpoint parameter cases retain the same upper-tail ordering by taking limits, with ties resolved on the null-supported outcomes.
For two simple statistical hypotheses with joint probability density functions and , fix a significance level . A randomized statistical test is the conditional probability of rejection given the data. Choose and, if necessary, randomization on the equality set so thatThe Neyman-Pearson lemma says that this is a most powerful test among all tests with test size at most :Thus the optimal ordering rejects where the alternative-to-null likelihood ratio is largest. On null-impossible observations with , the rejection probability is one. Randomization is dispensable whenever an ordinary threshold already attains the required test size.
Let , which has a binomial distribution with parameters . For , the alternative-to-null likelihood ratio of the independent Bernoulli trials isSince , this is strictly decreasing in . A threshold on large is therefore a lower-tail likelihood-ratio test, and a threshold between and gives the stated critical region . The Neyman-Pearson lemma also proves it is a most powerful test at its attained test size.
Using the binomial probability mass, its test size and statistical power are respectivelyThe associated power function is . These formulas hold for positive integer ; when the test always rejects and has size one. If the boundary value is admitted, all alternative probability is at ; the same test still has statistical power one and can be represented using a threshold with ties in the likelihood ratio.
The Neyman-Pearson lemma states that a test which rejects where the joint likelihood ratio is largest is a most powerful test of its size: its power is at least that of any test with no larger size. More precisely, choose a threshold and reject if , accept if it is smaller, and if necessary randomize on equality to attain the specified size.
For an independent and identically distributed statistical sample, takeThe are independent and identically distributed random variables under either simple hypothesis, and the log joint ratio is their sum. Thus the nonrandomized threshold form can be writtenwith , using either strict or non-strict inequality when the boundary has probability zero. The usual finite-log expression assumes positive common support; zero densities can instead be handled by the extended likelihood ratio on the relevant supports. Continuous observations alone do not ensure a continuous likelihood-ratio statistic: ties may require the boundary randomization in the lemma. This qualification preserves the exact-size formulation.