Lably
Skip to content

Neyman–Pearson lemma

Theorem about the power of the likelihood ratio test

  • 7 min read
  • 6 chapters

Related on Lably

Through Statistics, Type I and type II errors and Power (statistics)

Statement

Consider a test with hypotheses H0:θ=θ0 and H1:θ=θ1, where the probability density function (or probability mass function) is ρ(x∣θi) for i=0,1.

For any hypothesis test with rejection set R, and any α∈[0,1], we say that it satisfies condition Pα if

  • α=Prθ0(X∈R)
    • That is, the test has size α (that is, the probability of falsely rejecting the null hypothesis is α).
  • ∃η≥0 such that
x∈R∖A⟹ρ(x∣θ1)>ηρ(x∣θ0)x∈Rc∖A⟹ρ(x∣θ1)<ηρ(x∣θ0)
where A is a negligible set in both θ0 and θ1 cases: Prθ0(X∈A)=Prθ1(X∈A)=0.
  • That is, we have a strict likelihood ratio test, except on a negligible subset.

For any α∈[0,1], let the set of level α tests be the set of all hypothesis tests with size at most α. That is, letting its rejection set be R, we have Prθ0(X∈R)≤α.

Neyman–Pearson lemma—Existence:

If a hypothesis test satisfies Pα condition, then it is a uniformly most powerful (UMP) test in the set of level α tests.

Uniqueness: If there exists a hypothesis test RNP that satisfies Pα condition, with η>0 , then every UMP test R in the set of level α tests satisfies Pα condition with the same η.

Further, the RNP test and the R test agree with probability 1 whether θ=θ0 or θ=θ1.

In practice, the likelihood ratio is often used directly to construct tests — see likelihood-ratio test. However it can also be used to suggest particular test-statistics that might be of interest or to suggest simplified tests — for this, one considers algebraic manipulation of the ratio to see if there are key statistics in it related to the size of the ratio (i.e. whether a large statistic corresponds to a small ratio or to a large one).

Proof

Given any hypothesis test with rejection set R, define its statistical power function βR(θ)=Prθ(X∈R).

Existence:

Given some hypothesis test that satisfies Pα condition, call its rejection region RNP (where NP stands for Neyman–Pearson).

For any level α hypothesis test with rejection region R we have [1RNP(x)−1R(x)][ρ(x∣θ1)−ηρ(x∣θ0)]≥0 except on some ignorable set A.

Then integrate it over x to obtain 0≤[βRNP(θ1)−βR(θ1)]−η[βRNP(θ0)−βR(θ0)].

Since βRNP(θ0)=α and βR(θ0)≤α, we find that βRNP(θ1)≥βR(θ1).

Thus the RNP rejection test is a UMP test in the set of level α tests.

Uniqueness:

For any other UMP level α test, with rejection region R, we have from Existence part, [βRNP(θ1)−βR(θ1)]≥η[βRNP(θ0)−βR(θ0)].

Since the R test is UMP, the left side must be zero. Since η>0 the right side gives βR(θ0)=βRNP(θ0)=α, so the R test has size α.

Since the integrand [1RNP(x)−1R(x)][ρ(x∣θ1)−ηρ(x∣θ0)] is nonnegative, and integrates to zero, it must be exactly zero except on some ignorable set A.

Since the RNP test satisfies Pα condition, let the ignorable set in the definition of Pα condition be ANP.

R∖(RNP∪ANP) is ignorable, since for all x∈R∖(RNP∪ANP), we have [1RNP(x)−1R(x)][ρ(x∣θ1)−ηρ(x∣θ0)]=ηρ(x∣θ0)−ρ(x∣θ1)>0.

Similarly, RNP∖(R∪ANP) is ignorable.

Define AR:=(RΔRNP)∪ANP (where Δ means symmetric difference). It is the union of three ignorable sets, thus it is an ignorable set.

Then we have x∈R∖AR⟹ρ(x∣θ1)>ηρ(x∣θ0) and x∈Rc∖AR⟹ρ(x∣θ1)<ηρ(x∣θ0). So the R rejection test satisfies Pα condition with the same η.

Since AR is ignorable, its subset RΔRNP⊂AR is also ignorable. Consequently, the two tests agree with probability 1 whether θ=θ0 or θ=θ1.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Statistics