State and prove the Neyman–Pearson lemma for testing a simple against a simple . How do you show that for data with known , the test "reject when " is most powerful for against ?
Probability and statistics, Hypothesis testing
Level L5 Expert. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can prove that the likelihood-ratio test is optimal and apply the result to a standard case.
Key idea
Among all tests of size at most , the test that rejects when (with chosen so its size is exactly ) has the highest power. The proof uses a pointwise inequality, integrated over .
Steps
- Let the test when and otherwise, with . Let be any test with . Here is the probability of rejecting at .
- Claim: for every . If , then and the second factor is positive. If , then and the second factor is negative. If equal, the product is 0.
- Integrate over : .
- The right side is , because and . So : the likelihood-ratio test has the highest power.
- Gaussian case: .
- Since , this is increasing in . So "ratio " is the same as "". The constant is set by size: . The does not depend on , so this test is uniformly most powerful for all .
Common mistakes
- Forgetting randomised tests. For discrete data, an exact size may need randomisation at the boundary.
- Claiming the lemma works for composite alternatives directly. It needs the same rejection region to work for every , as happens here, but not for two-sided alternatives.
- Dropping the case in the pointwise argument.
How long your answer should be
One page, 10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Probability and statistics: For a smooth parametric family , show that for small , where is the Fisher information. How do you check it for with known?
Next in Probability and statistics: none