Definitionintro
Type I and type II errors
Also called false rejection and false acceptance, alpha and beta errors.
A type I error rejects a true null hypothesis and a type II error keeps a false one. The size of a test bounds the first; its power is one minus the second.
A type I error is the rejection of a null hypothesis that is true; a type II error is the failure to reject when it is false. The two names come from Neyman and Pearson's 1933 theory of statistical hypothesis tests, in which a test is designed to keep the probability of the first below a level and, subject to that, to make the probability of the second as small as possible. For a fixed amount of data the two error probabilities pull against each other: a test that rejects less often makes fewer type I errors and more type II errors.
Definition
Let have a distribution with , let and with , and let a test reject exactly when falls in a rejection region . Its power function is .
| true () | true () | |
|---|---|---|
| reject | type I error, probability | correct, probability (the power) |
| do not reject | correct, probability | type II error, probability |
- The type I error probability at is .
- The size of the test is , the largest type I error probability. The test has level when its size is at most .
- The type II error probability at is . It is a function of the alternative, not one number: it is close to one minus the size, which is at least , for alternatives near and goes to 0 for alternatives far from it.
The probabilities are frequentist: they are over repeated data with held fixed. For a randomized test , the rejection probability is and the same definitions apply.
Examples and non-examples
A coin, and the trade-off. , against , rejecting for . The exact binomial sums are:
| type I error | type II error at | type II error at | |
|---|---|---|---|
| 13 | 0.1316 | 0.5841 | 0.2277 |
| 14 | 0.0577 | 0.7500 | 0.3920 |
| 15 | 0.0207 | 0.8744 | 0.5836 |
| 16 | 0.0059 | 0.9490 | 0.7625 |
| 17 | 0.0013 | 0.9840 | 0.8929 |
Raising lowers the type I error and raises the type II error. The smallest with level 0.05 is 15, whose size is 0.0207, and against it misses 87% of the time. Only more data lowers both at once.
A medical screening analogy. With "the patient is healthy", a type I error is a false positive and a type II error a false negative; is the specificity and the power is the sensitivity.
Non-example: the p-value. A p-value of 0.03 is not "a 3% chance of a type I error". The type I error probability is a property of the rule, fixed before the data: for the rule "reject if " it is 0.05 (or less), whatever is observed. The p-value is a statistic computed from the data.
Non-example: the probability that a rejection is wrong. is , not . Among 1000 tests at of which 900 nulls are true and 100 have power 0.8, the expected counts are 45 false rejections and 80 true ones, so 36% of the rejections are type I errors. The share depends on how many nulls are true, which the test does not control; the false discovery rate is the error rate built for this question.
Non-example: "accepting" . Not rejecting is not a proof of . With power 0.13 at (the test above), a coin with gives a non-significant result 87% of the time.
Related definitions
- Power is on the alternative; the power function covers both hypotheses.
- Unbiased test. A test with on and on : the probability of rejecting is never smaller under a false null than under a true one.
- Most powerful test. Among level- tests, one with the smallest type II error at a given alternative; the Neyman-Pearson lemma finds it for simple hypotheses, and a uniformly most powerful test minimizes it at every alternative at once.
- Family-wise error rate. For many tests, the probability of at least one type I error.
- False discovery rate. The expected share of type I errors among the rejections.
- Directional error. Rejecting a two-sided null and then concluding the wrong sign of the effect; some authors call it a type III error, a name that is also used for other mistakes and has no single meaning.
References
- J. Neyman and E. S. Pearson, On the problem of the most efficient tests of statistical hypotheses, Philosophical Transactions of the Royal Society A 231, 1933, pp. 289 to 337, The introduction (the two sources of error, rejecting a true hypothesis and accepting a false one, and the control of the first while minimizing the second)
- George Casella and Roger L. Berger, Statistical Inference, second edition, Duxbury, 2002, Section 8.3.1 (error probabilities and the power function, the definitions of type I and type II error, size and level)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag YNRN9V Edit this page History Report an error Markdown