State and prove the Neyman–Pearson lemma for testing a simple H0:f0 against a simple H1:f1. How do you show that for N(μ,σ2) data with known σ, the test "reject when xˉ>c" is most powerful for μ0 against μ1>μ0?

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 f1(x)/f0(x)>k (with k chosen so its size is exactly α) has the highest power. The proof uses a pointwise inequality, integrated over x.

Steps

  1. Let the test φ∗(x)=1 when f1(x)>kf0(x) and 0 otherwise, with E0[φ∗]=α. Let φ be any test with E0[φ]≤α. Here φ(x)∈[0,1] is the probability of rejecting at x.
  2. Claim: (φ∗(x)−φ(x)) (f1(x)−kf0(x))≥0 for every x. If f1>kf0, then φ∗=1≥φ and the second factor is positive. If f1<kf0, then φ∗=0≤φ and the second factor is negative. If equal, the product is 0.
  3. Integrate over x: ∫(φ∗−φ)f1 dx≥k∫(φ∗−φ)f0 dx.
  4. The right side is k (E0[φ∗]−E0[φ])=k (α−E0[φ])≥0, because k≥0 and E0[φ]≤α. So E1[φ∗]≥E1[φ]: the likelihood-ratio test has the highest power.
  5. Gaussian case: f1f0=exp⁡ ⁣(n(μ1−μ0)σ2xˉ−n(μ12−μ02)2σ2).
  6. Since μ1>μ0, this is increasing in xˉ. So "ratio >k" is the same as "xˉ>c". The constant c is set by size: c=μ0+z1−ασ/n. The c does not depend on μ1, so this test is uniformly most powerful for all μ1>μ0.

Common mistakes

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 pθ, show that DKL(pθ∥pθ+δ)=12I(θ)δ2+O(δ3) for small δ, where I(θ) is the Fisher information. How do you check it for N(μ,σ2) with σ known?
Next in Probability and statistics: none