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 ib Paper 1 18D Solution Created 2026-09-24 Updated 2026-10-14
A simple hypothesis specifies the entire probability distribution. A critical region is the set of observations for which the null hypothesis is rejected. The size of a statistical test is , which reduces to for a simple hypothesis. The power function is as a function of the true parameter or distribution. At a specified alternative, the Type II error probability is , the chance of failing to reject a false null hypothesis. The Type I error probability is the corresponding rejection probability under the null hypothesis.
The Neyman-Pearson lemma says that, for two simple hypotheses, a test rejecting where , accepting where , and if necessary randomizing on equality to achieve prescribed size , has maximal statistical power among tests of size at most . Conversely a most powerful test can be taken in this likelihood ratio form, up to equality sets and null sets.
Here the likelihood ratio for isIts value is infinite at , which has probability zero under both continuous distributions. Large likelihood ratios correspond to small . Thus the best critical region is , whereThere is no boundary randomization to worry about. The complete answer is
For the minimum sum of errors in a simple hypothesis test, write the error sum as . At each observation its smaller contribution is obtained by rejecting exactly where . This proves optimality over all tests, including randomized ones, rather than just optimizing within an assumed family. Here it gives , and thereforeThe minimum error sum is . This criterion weights the two error probabilities equally; it does not impose a conventional significance level.
Past exam of the mathematics course of the University of Cambridge 2009 ib Paper 1 18H Solution Created 2026-09-24 Updated 2026-10-14
A critical region is the set of sample outcomes on which a test rejects its null hypothesis. Its power function is ; its size of a statistical test is . Randomized tests replace the indicator of by a rejection probability .
The Neyman-Pearson lemma states that for two simple hypotheses with densities , the test that is one where , zero where , and randomized on equality to have null rejection probability , maximizes power among tests of size at most . Here . To prove it, let be any competing test. Pointwise, , since both factors have the same sign off the equality set. Integrating givesThis proves the lemma, including equality-set randomization and points where .
Take the exponential parameter to be its rate: for . For , the joint likelihood ratio is , decreasing in . Hence for the most powerful test isThere is no boundary randomization because has a continuous gamma distribution. Its density follows by repeated convolution: . Integrating by parts gives the exponential-rate likelihood-ratio test powerThe threshold is the unique positive solution of this formula at with value . Differentiating the finite sum yieldsThus the power function is strictly increasing, and its supremum over is . Therefore the same test has size for the composite null . Since the threshold does not depend on the particular larger rate, it is also uniformly most powerful against all . The endpoint sizes zero and one have their trivial constant tests.
Past exam of the mathematics course of the University of Cambridge 2014 ib Paper 1 19H Solution Created 2026-09-24 Updated 2026-10-06
Put . Independence gives a likelihood ratioSince , this is strictly increasing in . A threshold chosen between its values at and gives precisely the stated upper-tail critical region, so it is a likelihood-ratio test.
The sum has a Poisson distribution with mean . Thus the size of a statistical test and its statistical power at are
For the grouped-area problem, let , , . The null log likelihood, up to data-only constants, isThe maximum-likelihood estimate is , giving fitted means and in the two groups. Under the alternative, the fitted group means are and .
Use the increasing generalized likelihood-ratio test convention , consistent with the printed positive . The exponential and factorial factors cancel, yielding the likelihood-ratio test of area-proportional Poisson meansTerms with zero count are interpreted as ; if , take . If the inverse ratio is used, the reported test statistic is instead .
Under the null, the regular large-sample Wilks theorem approximation is : the alternative has two rate parameters and the null one. The value far exceeds the usual critical value, about , and has approximate tail probability . Thus reject proportionality of the expected counts to area: the two groups show evidence of different territory densities. The statistic alone does not say which group has greater density; that requires versus . For small counts, an exact conditional test uses under the null instead of the asymptotic calibration.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 37 1 b Solution Created 2026-10-03 Updated 2026-10-06
A unit-root autoregressive process retains shocks permanently, whereas a causal time series with reverts towards its mean. Testing the unit root determines whether stationary autoregressive analysis is appropriate or differencing is needed. For the model without an intercept or trend, use the Dickey–Fuller test against the lower-sided alternative near the null. PutThis is the ordinary regression statistic for a zero coefficient when is regressed on , but its null probability distribution is not the usual Student law. Under the standard unit-root initialization and innovations independent of the starting value,where is standard Brownian motion. If is the lower -quantile of , the asymptotic level- critical region isThe deterministic terms and null initialization must match the critical-value table. For exact finite-sample size of a statistical test, calibrate the statistic from its Gaussian random walk null with the specified initial condition and noise scale; for a zero starting value its distribution is scale-free. The printed two-sided recurrence alone specifies neither an initial law nor a universal finite-sample critical value. Ordinary normal quantiles do not give the intended size of a statistical test.
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.
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.
The derivative of the log ratio is , so increases from zero to one on and decreases to zero on . Rejecting for a sufficiently small ratio therefore gives two tails with .
Under , Cochran's theorem gives the exact sampling distribution , independently of the unknown mean. Writing for its cumulative distribution function, the two cutoffs are determined byThe first equation calibrates the exact size of a statistical test. The second is , so both tails belong to one likelihood ratio cutoff. Hence the exact critical region is . Its two tail probabilities are not generally equal: equal-tailed chi-squared cutoffs give a different test.
For a critical region , the size of a statistical test of the simple null hypothesis is , the Type I error probability. Its statistical power against the simple alternative hypothesis is , the probability of correctly rejecting that null. For a randomized test function , replace these by and .
Statistical test Created 2026-10-05 Updated 2026-10-14
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.