Neyman-Pearson Lemma
Study guides: VEE-MS, Exam MAS-I
The Neyman-Pearson Lemma states that, for testing a simple null hypothesis H_0: \theta = \theta_0 against a simple alternative hypothesis H_1: \theta = \theta_1, the critical region of size \alpha with the greatest power is the set of samples where the likelihood ratio L(\theta_0)/L(\theta_1) is small. This best critical region is
C = \left\{\mathbf{x} : \frac{L(\theta_0)}{L(\theta_1)} \le k\right\}
L(\theta)is the likelihood of\theta, the joint pdf or pmf of the sample\mathbf{x} = (x_1, \ldots, x_n)evaluated at\theta. For a random sample it is the productf(x_1; \theta) \cdots f(x_n; \theta).k > 0is the constant for whichP(\mathbf{X} \in C \mid H_0) = \alpha.
Every other critical region whose probability of a Type I error is at most \alpha has power at \theta_1 no greater than that of C.
A single claim
Xis exponential. What is the best critical region of size 0.05 for testingH_0: mean 100 againstH_1: mean 200, and what is its power?
- With
f(x; \theta) = e^{-x/\theta}/\theta, the likelihood ratio is\frac{L(100)}{L(200)} = 2e^{-x/200}.- The ratio decreases as
xincreases, so the ratio is at mostkexactly whenxis at least somec.- The size is
P(X \ge c \mid H_0) = e^{-c/100} = 0.05, soc = 100 \ln 20 = 299.57.- The power is
P(X \ge 299.57 \mid H_1) = e^{-299.57/200} = 0.224.
Simplifying the best critical region
The inequality L(\theta_0)/L(\theta_1) \le k is reduced to a condition on a sufficient statistic in four steps:
- Write each likelihood as the product of the densities of all the observations. With two independent samples, the product runs over the observations of both samples.
- Divide, and cancel the factors that do not depend on the data.
- Take the natural log, which keeps the direction of the inequality because it is an increasing function.
- Move every constant into the right-hand side, and reverse the inequality if both sides are divided by a negative number.
A random sample
X_1, \ldots, X_nhas pdff(x; \theta) = \theta x^for0 < x < 1. What is the form of the best critical region forH_0: \theta = 1againstH_1: \theta = 2?
- The likelihoods are
L(1) = 1andL(2) = 2^n x_1 x_2 \cdots x_n.- The ratio is
\frac{L(1)}{L(2)} = \frac{1}{2^n x_1 x_2 \cdots x_n}, and it is at mostkwhenx_1 x_2 \cdots x_n \ge \frac{1}{2^n k}.- Taking natural logs, the best critical region is
\sum_{i=1}^{n} \ln x_i \ge cfor a constantc.
Regions where the likelihood ratio is constant
Where L(\theta_1) = 0 and L(\theta_0) > 0, the ratio is infinite, so such samples are never in the best critical region. They would add to the probability of a Type I error without adding power. Where the ratio is constant over a region, any part of that region with the required probability under H_0 gives the same size and the same power.
H_0:Xis uniform on[0, 10], andH_1:Xis uniform on[5, 10]. A single observation is used with a best critical region whose power is 0.8. What is the probability of a Type I error?
- The densities are
1/10underH_0and1/5on[5, 10]underH_1.- On
[0, 5)the density underH_1is 0, so the ratio is infinite and no point there is in the best critical region.- On
[5, 10]the ratio is the constant\frac{1/10}{1/5} = 0.5, so the best critical region is any part of[5, 10]with the required power.- Power 0.8 needs a region of length
0.8 \times 5 = 4inside[5, 10].- The probability of a Type I error is the probability of that region under
H_0,4/10 = 0.4.
Uniformly most powerful tests
A test is uniformly most powerful (UMP) against a composite alternative hypothesis if it is the most powerful test against every simple alternative in it. When the best critical region for \theta_0 against \theta_1 is the same for every \theta_1 > \theta_0, that region is the UMP test of H_0: \theta = \theta_0 against H_1: \theta > \theta_0. One-sided tests of a normal mean, an exponential mean or a binomial probability are UMP. Two-sided tests are not, because the best region against \theta_1 > \theta_0 is the upper tail and the best region against \theta_1 < \theta_0 is the lower tail.
Claim sizes are normal with standard deviation 250. A sample of 25 claims tests
H_0: \mu = 1000againstH_1: \mu = 1100at significance level 0.05. What are the best critical region and its power, and why is it UMP forH_1: \mu > 1000?
- For normal data with
\mu_1 > \mu_0, the ratioL(\mu_0)/L(\mu_1)decreases as\bar{x}increases, so the best region is\bar{X} \ge c.- Under
H_0,\bar{X}is normal with mean 1,000 and standard deviation250 / \sqrt{25} = 50, soc = 1{,}000 + 1.645 \times 50 = 1{,}082.25.- The power at
\mu = 1{,}100isP\left(Z \ge \frac{1{,}082.25 - 1{,}100}{50}\right) = P(Z \ge -0.355) = 0.639.- The value
cwas found fromH_0alone, so the same region is best against every\mu_1 > 1{,}000, and the test is UMP.