For independent observations, testing a fixed variance against larger variances uses the sum of squares . The likelihood ratio for any simple larger variance is strictly increasing in . The Neyman-Pearson lemma therefore gives the displayed rejection rule, where is the chi-squared distribution function with degrees of freedom. Its threshold is independent of the selected larger variance, so it is a uniformly most powerful test for the one-sided composite alternative. Its power function is , increasing continuously from zero to one and equaling at the null. A known nonzero mean is handled by replacing each observation by its difference from that mean.
Karlin-Rubin theorem Created 2026-09-24 Updated 2026-10-14
For a family with a monotone likelihood ratio in , a level- upper-tail test in is a uniformly most powerful test for the corresponding one-sided hypothesis.
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.
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 is
which 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 , where
and the power function is
For the continuous strictly decreasing null tail gives a unique positive cutoff, with exact size and no boundary randomization.
Put , and let be the exact standard-normal 95th percentile. Under parameter , with standard normal. This distribution can be justified directly: the joint density of the centered observations is proportional to . An orthogonal change of coordinates with first row has unit absolute Jacobian and preserves the sum of squares. Its density factors into one-dimensional standard-normal densities, making the first coordinate standard normal.
Consider the test . Its rejection probability is
increasing in . Therefore its maximum rejection probability over the null is achieved at zero and equals . This proves it has the required test size.
To prove the uniformly most powerful test property, rather than quote the Neyman-Pearson lemma, fix any . The likelihood ratio of the full sample against is
strictly increasing in . Set . For any competing possibly randomized test with composite-null size at most , we have . Pointwise,
because both factors are nonnegative above the threshold and both are nonpositive below it. Integrating gives
This comparison proves the likelihood-ratio optimality result needed here in full. Since the same critical region works for every , it proves the uniformly most powerful test property over the entire alternative.
For , the exact critical region and its quoted-table approximation are
Using the supplied rounded percentile gives . The exact cutoff uses and hence ; the rounded cutoff is the intended numerical approximation, not a literally exact size- threshold. The Gaussian distribution is continuous, so equality at the cutoff has probability zero and no randomization there is needed.
Interpret as the conditional rejection probability. The Type I error is , the Type II error is , the size is , and the power is . Their weighted sum is
Pointwise minimization over forces rejection where and acceptance where , with arbitrary randomization on equality. Conversely those choices minimize every integrand. The equivalence holds almost everywhere, since changing a test on a common null set cannot change its errors. With both weights strictly positive, any simultaneous improvement of the two errors, strict in at least one, would lower this weighted sum. Every such positive-threshold likelihood ratio test is admissible for the two simple hypotheses.
For the specified densities the likelihood ratio is
It increases strictly on from zero to . For , the likelihood-ratio test rejects when . Larger thresholds accept almost surely. Threshold zero rejects everywhere above and permits arbitrary rejection below , where both weighted choices tie; values at individual endpoints do not affect errors. These describe all nonnegative-threshold likelihood ratio tests, including their limiting accept-all and reject-all cases.
The upper-tail test has size . If , it is a positive-threshold likelihood ratio test and is admissible. If , it rejects exactly the alternative's support, with power one; no test can retain power one with smaller size, so it remains admissible. If , it still has power one but wastes rejection probability on , where the alternative density vanishes. The test has the same power and smaller size, so
Nevertheless is a uniformly most powerful test at size against all : for , apply the Neyman-Pearson lemma; for , its power is already the maximum one. It is also admissible against the composite alternative. Indeed choose any . Strict monotonicity of its likelihood ratio makes the unique positive-threshold minimizer up to null sets. A test dominating it for the composite problem would either improve the weighted simple risk at this , impossible, or tie that risk and coincide almost everywhere. Since throughout , such coincidence also precludes improvement at any other .
Under the null hypothesis , has the uniform distribution on . Against , the likelihood ratio is , increasing on that interval. The Neyman-Pearson lemma therefore gives
The 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 is
For or , the never-reject or always-reject test supplies the respective endpoint case.
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
The normalized density is
For against , the sample likelihood ratio is
It is strictly decreasing in . Under , parts (a) and (b) give
If 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 .
A possibly randomized test is a function , interpreted as the conditional probability of rejecting . Its power function is
It has size at most when
Such a test is a uniformly most powerful test of size if, for every other test of size at most ,
Thus one test maximizes power simultaneously at every parameter value in the alternative.
For , the ratio of the two sample likelihood functions is
For it is strictly increasing in . The Neyman-Pearson lemma therefore selects an upper tail:
Under the null, , so choose with this upper-tail probability at most . If exact size is required, randomize at the adjacent boundary value as needed. The rejection rule is the same for every , giving a uniformly most powerful test for the one-sided alternative.
For any fixed below 1, the ratio to the null is
It increases with . Its ordering is therefore the same for every such alternative, while the size is determined only by the null. The very same rule, reject when , is most powerful against each alternative and hence is a uniformly most powerful test. At its power is 1, also optimal.
More generally, for , the binomial likelihood ratio against any increases with . Choose an integer cutoff so that
and reject for , randomize with probability
when , and accept below. This gives exact size and is a uniformly most powerful test for every positive integer . Exact prescribed size may require this boundary randomization; a deterministic cutoff alone need not attain it. For , reject all and reject at with probability , which is likewise optimal. At the stated one-sided alternative is empty. The cutoff generally depends on ; there is no claim that one fixed cutoff serves every null parameter.
For a fixed alternative , the joint likelihood ratio is
It is strictly increasing in . By the Neyman-Pearson lemma, the most powerful level- rejection region is therefore . Under the null, with the second parameter interpreted as a rate. Its continuous distribution gives
This threshold depends on the null and , but not on the particular smaller alternative . Thus the same test is most powerful for every , making it uniformly most powerful.
Under a true alternative , , so its attained power is
For each , the Neyman-Pearson lemma bounds the power of every other level- test by this value. Hence the displayed function is not only an upper bound but the attainable power envelope on the specified alternative.
Yes, it is a uniformly most powerful test for the one-sided alternative. For every fixed , the likelihood ratio is increasing in the same statistic . The size- threshold found in part (c) depends only on the null variance and , not on the selected alternative variance. Thus one and the same test is most powerful against each simple member of the composite alternative, which is exactly uniform most powerfulness.
The statistical power of a test is , its rejection probability at parameter . Its size is ; for a simple null this is just .
The Neyman-Pearson lemma states that for testing a simple null probability density function against a simple alternative probability density function , a test rejecting where , accepting where it is below , and if needed randomizing on equality to attain the desired size is most powerful among all tests of that size. It follows by integrating and using the size constraint.
The proposed probability density function is nonnegative, and
For an independent sample, cancellation of the factors in the likelihood ratio gives
For this is increasing in . The most powerful test therefore has rejection region
The sum has a continuous positive probability density function on , so no boundary randomization is required. The threshold depends on the null and chosen size, but not on which was specified. The same test is therefore a uniformly most powerful test for the composite alternative .
For , the ratio of the two sample likelihood functions is
For it is strictly increasing in . The Neyman-Pearson lemma therefore selects an upper tail:
Under the null, , so choose with this upper-tail probability at most . If exact size is required, randomize at the adjacent boundary value as needed. The rejection rule is the same for every , giving a uniformly most powerful test for the one-sided alternative.
Let . For the exponential distribution with mean , the likelihood function is on positive observations. Fix any . The alternative-to-null likelihood ratio is
Since , this is strictly decreasing in . The Neyman-Pearson lemma says to reject for small . Under the null hypothesis, the given sum rule yields , where the second argument is a rate, and hence
Let be the lower quantile of this chi-squared distribution. The required critical region is
Its test size is exactly because the null distribution is continuous. Its cutoff is the same for every , so it is simultaneously most powerful against every such value: it is a uniformly most powerful test. Equivalently, reject if is below the lower quantile of the specified gamma distribution.
For any fixed , the alternative-to-null likelihood ratio is
which is strictly increasing in for . Consequently the Neyman-Pearson lemma selects the same upper-tail ordering for every such alternative hypothesis. At the null hypothesis value,
Therefore
is a uniformly most powerful test of the required exact test size. Its power function is . At its statistical power is one, so including that boundary alternative preserves the conclusion.
Here the gamma distribution uses a rate statistical parameter , with known shape . Write and . For each fixed , the alternative-to-null likelihood ratio is
strictly decreasing in . The Neyman-Pearson lemma therefore gives the same lower-tail critical region for every larger rate. Since has a continuous gamma distribution under the null hypothesis, there is a unique positive satisfying
Thus reject when is a uniformly most powerful test of exact test size . If denotes the unit-rate gamma distribution cumulative distribution function with shape , then
This is the uniformly most powerful test for a gamma rate.
When , the sum has shape one and hence an exponential distribution with rate . Therefore
In particular , and the power function is strictly increasing, exceeding for and tending to one as .
Uniformly most powerful test for a gamma rate Created 2026-10-25 Updated 2026-10-31
For an independent statistical sample from a gamma distribution with known shape and unknown rate , test against . The alternative-to-null likelihood ratio for any larger rate is , where . This decreases in , so the Neyman-Pearson lemma gives one common lower-tail ordering for all alternatives.
Let be the unit-rate gamma distribution cumulative distribution function with shape . The uniformly most powerful test of exact test size rejects when , where . Its power function is displayed above. If , the sum has an exponential distribution, so and . Monotonicity of also makes this test valid and uniformly most powerful for the larger null hypothesis .