Type I & Type II
Errors
Master the two ways a hypothesis test can go wrong: false positives and false negatives. Learn to control \(\alpha\) and understand statistical power.
What Is Hypothesis Testing?
In statistics, we make decisions about populations using sample data. A hypothesis test asks: is there enough evidence to reject a default assumption?
Two Ways to Be Wrong
Every hypothesis test can produce an error. There are exactly two types of mistakes, and they pull in opposite directions:
The Decision Matrix
The Significance Level \(\alpha\)
The probability of committing a Type I Error is denoted \(\alpha\) and is called the significance level. You choose \(\alpha\) before running the test.
\(\beta\) and Power
The probability of a Type II Error is \(\beta\). The power of a test is \(1 - \beta\): the probability of correctly rejecting a false \(H_0\).
The \(\alpha\) vs. \(\beta\) Tradeoff
Type I vs. Type II: Side by Side
| Type I Error | Type II Error | |
|---|---|---|
| Also Called | False Positive | False Negative |
| When It Happens | Reject \(H_0\) but \(H_0\) is true | Fail to reject \(H_0\) but \(H_0\) is false |
| Probability | \(\alpha\) | \(\beta\) |
| You Control It By | Choosing \(\alpha\) level | Increasing sample size or effect size |
| Courtroom Analogy | Convicting the innocent | Acquitting the guilty |
| Medical Analogy | Diagnosing a healthy patient as sick | Missing a real disease |
What Affects Power?
How to Identify Error Types
Example 1: Medical Test
A drug company tests whether a new medication lowers blood pressure. They set \(\alpha = 0.05\).
Example 2: Fire Alarm
Think of a fire alarm as a hypothesis test: it "tests" whether there is a fire.
Example 3: Calculating \(\alpha\) from Context
A researcher tests whether a coin is unfair. She flips it \(n = 100\) times and gets 58 heads. She uses \(\alpha = 0.05\).
Visualizing \(\alpha\) and \(\beta\)
Common Mistakes
Summary Table
| Concept | Symbol | Meaning |
|---|---|---|
| Significance level | \(\alpha\) | \(P(\text{Type I Error})\) |
| Type II probability | \(\beta\) | \(P(\text{Type II Error})\) |
| Power | \(1 - \beta\) | \(P(\text{Correctly reject false } H_0)\) |
| Confidence level | \(1 - \alpha\) | \(P(\text{Correctly keep true } H_0)\) |
| \(p\text{-value}\) | \(p\) | Probability of data as extreme as observed, given \(H_0\) true |
Question 1 of 5
A pregnancy test gives a positive result for a woman who is not pregnant. What type of error is this?
Question 2 of 5
If a researcher sets \(\alpha = 0.01\) instead of \(\alpha = 0.05\), what happens to the probability of a Type II Error?
Question 3 of 5
A jury acquits a defendant who actually committed the crime. In hypothesis testing terms, this is analogous to:
Question 4 of 5
Which of the following will increase the power of a hypothesis test?
Question 5 of 5
A researcher conducts a test with \(\alpha = 0.05\) and obtains a \(p\text{-value} = 0.03\). She rejects \(H_0\). If \(H_0\) were actually true, her decision would be: