01 / 20
I II

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.

College Statistics

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?

\(H_0\): Null Hypothesis
The default claim: "nothing is happening." We assume \(H_0\) is true until evidence says otherwise.
\(H_a\): Alternative Hypothesis
The research claim: "something IS happening." We need strong evidence to accept this.

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:

Type I Error
Rejecting \(H_0\) when it is actually true. A false positive: you see an effect that isn't really there.
Type II Error
Failing to reject \(H_0\) when it is actually false. A false negative: you miss a real effect.

The Decision Matrix

Reality \(H_0\) True \(H_0\) False Decision Reject \(H_0\) Fail to Reject Type I Error (False Positive) Correct! (Power = \(1-\beta\)) Correct! (Confidence = \(1-\alpha\)) Type II Error (False Negative) \(P = \alpha\) \(P = \beta\)

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.

\(\alpha = 0.05\)
Most common: a 5% chance of a false positive. Standard in social sciences.
\(\alpha = 0.01\)
Stricter: only 1% false positive risk. Used when errors are costly (medicine, law).
\(\alpha = 0.10\)
More lenient: 10% risk. Used in exploratory research or low-stakes screening.

\(\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\).

High Power
Small \(\beta\), meaning you rarely miss real effects. Achieved with large sample sizes and large effect sizes.
Low Power
Large \(\beta\), meaning you often fail to detect real effects. Common with small samples or tiny effects.

The \(\alpha\) vs. \(\beta\) Tradeoff

Strictness of \(\alpha\) (smaller \(\to\) stricter) Probability \(\alpha\) \(\beta\) Balance point More false positives More false negatives

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?

1
Sample size \(n\): Larger samples increase power. More data makes it easier to detect real effects.
2
Effect size: Larger true differences between \(H_0\) and reality are easier to detect.
3
Significance level \(\alpha\): Increasing \(\alpha\) (more lenient) increases power, but also increases Type I risk.
4
Population variability \(\sigma\): Less variability (smaller \(\sigma\)) makes effects stand out, increasing power.

How to Identify Error Types

1
State \(H_0\) and \(H_a\) clearly. Write out exactly what the null and alternative hypotheses claim.
2
Determine the test decision. Did you reject or fail to reject \(H_0\)?
3
Identify what reality is. Is \(H_0\) actually true or false?
4
Match to the matrix. If you rejected a true \(H_0\), it's Type I. If you kept a false \(H_0\), it's Type II.
5
Describe consequences. Explain what the error means in the real-world context.

Example 1: Medical Test

A drug company tests whether a new medication lowers blood pressure. They set \(\alpha = 0.05\).

\(H_0\)
The drug has no effect on blood pressure.
\(H_a\)
The drug does lower blood pressure.

Example 2: Fire Alarm

Think of a fire alarm as a hypothesis test: it "tests" whether there is a fire.

\(H_0\)
There is no fire.
\(H_a\)
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\).

1
\(H_0\!: p = 0.5\) (the coin is fair).
2
\(H_a\!: p \neq 0.5\) (the coin is not fair).
3
She computes the test statistic: \(z = \frac{0.58 - 0.50}{\sqrt{0.50 \cdot 0.50 / 100}} = \frac{0.08}{0.05} = 1.60\).
4
The \(p\text{-value} \approx 0.11\). Since \(0.11 > 0.05\), she fails to reject \(H_0\).

Visualizing \(\alpha\) and \(\beta\)

\(H_0\) distribution \(H_a\) distribution Critical value \(\alpha\) \(\beta\)

Common Mistakes

✕ Confusing the Two Types
Type I = false positive (reject true \(H_0\)). Type II = false negative (keep false \(H_0\)). Memorize: "Type I = I see something that isn't there."
✕ Thinking \(\alpha\) Controls Both
Setting \(\alpha = 0.01\) only limits Type I risk. It actually increases Type II risk. You need larger \(n\) to control both.
✕ Saying "\(H_0\) Is Proven True"
Failing to reject \(H_0\) does NOT prove it is true. It only means there wasn't enough evidence against it. A Type II error may have occurred.

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: