In statistics, the Neyman–Pearson lemma was introduced by Jerzy Neyman and Egon Pearson in a paper in 1933. The Neyman-Pearson lemma is part of the Neyman-Pearson theory of statistical testing, which introduced concepts like errors of the second kind, power function, and inductive behavior. The previous Fisherian theory of significance testing postulated only one hypothesis. By introducing a competing hypothesis, the Neyman-Pearsonian flavor of statistical testing allows investigating the two types of errors. The trivial cases where one always rejects or accepts the null hypothesis are of little interest but it does prove that one must not relinquish control over one type of error while calibrating the other. Neyman and Pearson accordingly proceeded to restrict their attention to the class of all level tests while subsequently minimizing type II error, traditionally denoted by . Their seminal paper of 1933, including the Neyman-Pearson lemma, comes at the end of this endeavor, not only showing the existence of tests with the most power that retain a prespecified level of type I error (), but also providing a way to construct such tests. The Karlin-Rubin theorem extends the Neyman-Pearson lemma to settings involving composite hypotheses with monotone likelihood ratios.
Consider a test with hypotheses and , where the probability density function (or probability mass function) is for . Denoting the rejection region by , the Neyman-Pearson lemma states that a most powerful (MP) test satisfies the following: for some ,
- if ,
- if ,
- for a prefixed significance level .
Also, if there is at least one MP test that satisfies the two conditions, the Neyman-Pearson lemma states that every existing -level MP test should obey the likelihood ratio inequalities. Note that the most powerful test may not always be unique as can be inferred from the lemma. In fact, it may not exist at all.
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).
Define the rejection region of the null hypothesis for the Neyman–Pearson (NP) test as
where is chosen so that
Any alternative test will have a different rejection region that we denote by .
The probability of the data falling within either region or given parameter is
For the test with critical region to have significance level , it must be true that , hence
It will be useful to break these down into integrals over distinct regions:
where is the complement of region R. Setting , these two expressions and the above inequality yield that
The powers of the two tests are and , and we would like to prove that:
However, as shown above this is equivalent to:
in what follows we show that the above inequality holds:
Let be a random sample from the distribution where the mean is known, and suppose that we wish to test for against . The likelihood for this set of normally distributed data is
We can compute the likelihood ratio to find the key statistic in this test and its effect on the test's outcome:
This ratio only depends on the data through . Therefore, by the Neyman–Pearson lemma, the most powerful test of this type of hypothesis for this data will depend only on . Also, by inspection, we can see that if , then is a decreasing function of . So we should reject if is sufficiently large. The rejection threshold depends on the size of the test. In this example, the test statistic can be shown to be a scaled Chi-square distributed random variable and an exact critical value can be obtained.
Application in economics
A variant of the Neyman–Pearson lemma has found an application in the seemingly unrelated domain of the economics of land value. One of the fundamental problems in consumer theory is calculating the demand function of the consumer given the prices. In particular, given a heterogeneous land-estate, a price measure over the land, and a subjective utility measure over the land, the consumer's problem is to calculate the best land parcel that he can buy – i.e. the land parcel with the largest utility, whose price is at most his budget. It turns out that this problem is very similar to the problem of finding the most powerful statistical test, and so the Neyman–Pearson lemma can be used.
Uses in electrical engineering
The Neyman–Pearson lemma is quite useful in electronics engineering, namely in the design and use of radar systems, digital communication systems, and in signal processing systems. In radar systems, the Neyman–Pearson lemma is used in first setting the rate of missed detections to a desired (low) level, and then minimizing the rate of false alarms, or vice versa. Neither false alarms nor missed detections can be set at arbitrarily low rates, including zero. All of the above goes also for many systems in signal processing.
Uses in particle physics
The Neyman–Pearson lemma is applied to the construction of analysis-specific likelihood-ratios, used to e.g. test for signatures of new physics against the nominal Standard Model prediction in proton-proton collision datasets collected at the LHC.
- Neyman, J.; Pearson, E. S. (1933-02-16). "IX. On the problem of the most efficient tests of statistical hypotheses". Phil. Trans. R. Soc. Lond. A. 231 (694–706): 289–337. Bibcode:1933RSPTA.231..289N. doi:10.1098/rsta.1933.0009. ISSN 0264-3952.
- The Fisher, Neyman-Pearson Theories of Testing Hypotheses: One Theory or Two?: Journal of the American Statistical Association: Vol 88, No 424: The Fisher, Neyman-Pearson Theories of Testing Hypotheses: One Theory or Two?: Journal of the American Statistical Association: Vol 88, No 424
- Wald: Chapter II: The Neyman-Pearson Theory of Testing a Statistical Hypothesis: Wald: Chapter II: The Neyman-Pearson Theory of Testing a Statistical Hypothesis
- The Empire of Chance: The Empire of Chance
- Statistical Inference: Casella, George, Berger, Roger L.
- Berliant, M. (1984). "A characterization of the demand for land". Journal of Economic Theory. 33 (2): 289–300. doi:10.1016/0022-0531(84)90091-7.
- van Dyk, David A. (2014). "The Role of Statistics in the Discovery of a Higgs Boson". Annual Review of Statistics and Its Application. 1 (1): 41–59. Bibcode:2014AnRSA...1...41V. doi:10.1146/annurev-statistics-062713-085841.
- E. L. Lehmann, Joseph P. Romano, Testing statistical hypotheses, Springer, 2008, p. 60