Math 2.0

Statistics Proof

Proof of the Neyman–Pearson lemma

Builds on Statistical hypothesis testLikelihood functionType I and type II errorsProbability mass functionProbability density function

Proof

We compare the likelihood-ratio region with another region through one pointwise inequality, and then integrate it.

  1. Let f0(x)=L(θ0∣x)f_0(x) = L(\theta_0 \mid x) and f1(x)=L(θ1∣x)f_1(x) = L(\theta_1 \mid x) be the likelihoods. They are probability mass functions or densities of the data XX under θ0\theta_0 and θ1\theta_1. Write ∫g\int g for the sum over xx or the integral in xx of a function gg.
  2. A hypothesis test rejects H0H_0 when XX lies in a rejection region RR. Its size is Pθ0(X∈R)=∫1Rf0P_{\theta_0}(X \in R) = \int 1_R f_0, and its power at θ1\theta_1 is Pθ1(X∈R)=∫1Rf1P_{\theta_1}(X \in R) = \int 1_R f_1, as for type I and type II errors.
  3. Let R∗={x:f0(x)≤ηf1(x)}R^* = \set{x : f_0(x) \le \eta f_1(x)}. Where f1(x)>0f_1(x) > 0, this is the condition Λ(x)≤η\Lambda(x) \le \eta. Where f1(x)=0f_1(x) = 0 and f0(x)>0f_0(x) > 0, the point is not in R∗R^*. There Λ(x)=+∞>η\Lambda(x) = +\infty > \eta, so the test does not reject either.
  4. Let N={x:f0(x)=f1(x)=0}N = \set{x : f_0(x) = f_1(x) = 0}. Then ∫1Nf0=∫1Nf1=0\int 1_N f_0 = \int 1_N f_1 = 0. So the convention for Λ\Lambda on NN changes no probability, and the likelihood-ratio test has size α=∫1R∗f0\alpha = \int 1_{R^*} f_0 and power ∫1R∗f1\int 1_{R^*} f_1.
  5. Let RR be the rejection region of another test with size ∫1Rf0≤α\int 1_R f_0 \le \alpha. Let h(x)=(1R∗(x)−1R(x))(ηf1(x)−f0(x))h(x) = \left(1_{R^*}(x) - 1_R(x)\right) \left(\eta f_1(x) - f_0(x)\right).
  6. Claim: h(x)≥0h(x) \ge 0 for every xx. If x∈R∗x \in R^*, then 1R∗(x)−1R(x)≥01_{R^*}(x) - 1_R(x) \ge 0, and ηf1(x)−f0(x)≥0\eta f_1(x) - f_0(x) \ge 0 by the definition of R∗R^*.
  7. If x∉R∗x \notin R^*, then 1R∗(x)−1R(x)≤01_{R^*}(x) - 1_R(x) \le 0, and ηf1(x)−f0(x)<0\eta f_1(x) - f_0(x) < 0. In both cases the product is at least 00.
  8. The function hh is bounded in absolute value by ηf1+f0\eta f_1 + f_0, which has finite integral η+1\eta + 1. So ∫h\int h exists, and ∫h≥0\int h \ge 0 by step 6 and 7.
  9. Expand the product: ∫h=η(∫1R∗f1−∫1Rf1)−(∫1R∗f0−∫1Rf0)\int h = \eta \left(\int 1_{R^*} f_1 - \int 1_R f_1\right) - \left(\int 1_{R^*} f_0 - \int 1_R f_0\right).
  10. The second bracket equals α−∫1Rf0≥0\alpha - \int 1_R f_0 \ge 0, since the size of RR is at most α\alpha.
  11. By steps 8 to 10, η(∫1R∗f1−∫1Rf1)≥α−∫1Rf0≥0\eta \left(\int 1_{R^*} f_1 - \int 1_R f_1\right) \ge \alpha - \int 1_R f_0 \ge 0.
  12. Since η>0\eta > 0, ∫1R∗f1≥∫1Rf1\int 1_{R^*} f_1 \ge \int 1_R f_1. That is, Pθ1(X∈R∗)≥Pθ1(X∈R)P_{\theta_1}(X \in R^*) \ge P_{\theta_1}(X \in R).
  13. So no test of size at most α\alpha has a larger power at θ1\theta_1 than the likelihood-ratio test. Since the likelihood-ratio test itself has size α\alpha, it is a most powerful test of size α\alpha.

Idea

The likelihood-ratio region collects exactly the points where f1f_1 is large compared with f0f_0, at the exchange rate η\eta. Any other region of no larger size must trade some of these points for points where f1f_1 is smaller relative to f0f_0. One pointwise inequality, integrated, shows that this trade cannot raise the power.

Reading path

To understand this page from the ground up, read these 59 pages in order. The foundations come first.

  1. Construction of the reals from Cauchy sequences concept
  2. Element definition
  3. Integers object
  4. Ordered field definition
  5. Proposition concept
  6. Random experiment concept
  7. Rational numbers object
  8. Real numbers object
  9. Set definition
  10. Ring of integers statement
  11. Disjunction definition
  12. Implication definition
  13. Predicate definition
  14. Ordered pair definition
  15. Union definition
  16. Sample space definition
  17. The rationals form a field statement
  18. Existential quantifier definition
  19. Universal quantifier definition
  20. Cartesian product definition
  21. Subset definition
  22. The rationals form an ordered field statement
  23. Uniqueness quantifier definition
  24. Binary relation definition
  25. Universal set definition
  26. Order on the reals definition
  27. Power set definition
  28. Complement definition
  29. Function definition
  30. Interval definition
  31. Injective function definition
  32. Preimage of a set definition
  33. Sigma-algebra definition
  34. Countable set definition
  35. Event definition
  36. Borel sigma-algebra definition
  37. Probability axioms concept
  38. Probability measure definition
  39. Probability distribution definition
  40. Probability space definition
  41. Conditional probability definition
  42. Random variable definition
  43. Cumulative distribution function definition
  44. Discrete random variable definition
  45. Law of a random variable definition
  46. Independence of two events definition
  47. Random variable with a density definition
  48. Probability mass function definition
  49. Mutual independence of events definition
  50. Identically distributed random variables definition
  51. Probability density function definition
  52. Independent sigma-algebras definition
  53. Independence of random variables definition
  54. Independent and identically distributed random variables definition
  55. Statistic definition
  56. Likelihood function definition
  57. Statistical hypothesis test concept
  58. Type I and type II errors definition
  59. Proof of the Neyman–Pearson lemma proof

Where this leads

2 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Neyman–Pearson_lemma, Proof
About this page
Tag5F4JG2980G
URIm2://5F4JG2980G
Kindproof
WritingW0 stub
MSC62F03
ProvesNeyman–Pearson lemma
UsesStatistical hypothesis test, Likelihood function, Type I and type II errors, Probability mass function, Probability density function
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.