01 / 21

Type I/II Errors
& Statistical Power

Master the critical concepts of hypothesis testing errors and understand how power determines a test's ability to detect real effects.

Biostatistics

The Foundation: Hypothesis Testing

Every statistical test begins with two competing claims about a population. We collect data and use evidence to decide which claim is more plausible.

\(H_0\): Null Hypothesis
The "status quo" claim: there is no effect or no difference. We assume this is true until evidence says otherwise.
\(H_a\): Alternative Hypothesis
The research claim: there is an effect or difference. This is what we hope to find evidence for.

Two Decisions, Two Realities

When we test a hypothesis, we make a binary decision: reject \(H_0\) or fail to reject \(H_0\). Meanwhile, reality is also binary: \(H_0\) is either true or false. This creates four possible outcomes.

REALITY DECISION
\(H_0\) True
\(H_0\) False
Reject \(H_0\) Fail to Reject \(H_0\) Type I Error (False Positive)
Prob = \(\alpha\)
Correct! (True Positive)
Prob = \(1 - \beta\) = Power
Correct! (True Negative)
Prob = \(1 - \alpha\)
Type II Error (False Negative)
Prob = \(\beta\)

Type I Error: The False Alarm

A Type I error occurs when we reject \(H_0\) even though \(H_0\) is actually true. We conclude there's an effect when none exists.

Probability
\(P(\text{Type I}) = \alpha\), the significance level you choose before testing (commonly \(\alpha = 0.05\)).
Analogy
A fire alarm going off when there is no fire. You react to a danger that doesn't exist.

Type II Error: The Missed Discovery

A Type II error occurs when we fail to reject \(H_0\) even though \(H_0\) is actually false. We miss a real effect.

Probability
\(P(\text{Type II}) = \beta\). Unlike \(\alpha\), \(\beta\) is not directly set: it depends on sample size, effect size, and \(\alpha\).
Analogy
A fire alarm not sounding when there actually is a fire. A real danger goes undetected.

Type I vs. Type II: Side by Side

Type I Error Type II Error
Also called False Positive False Negative
Reality \(H_0\) is true \(H_0\) is false
Decision Reject \(H_0\) Fail to reject \(H_0\)
Probability \(\alpha\) \(\beta\)
You control it by Choosing \(\alpha\) Increasing power
Drug trial example Approve useless drug Reject effective drug

Statistical Power

Power is the probability of correctly rejecting \(H_0\) when it is false: the ability to detect a real effect.

High Power
\(\text{Power} \ge 0.80\) means at least an 80% chance of detecting a real effect. This is the standard target in research.
Low Power
\(\text{Power} < 0.80\) means high risk of missing real effects (Type II error), wasting time and resources.

What Affects Power?

1
Sample size \((n)\): Larger samples give more information, reducing variability and increasing power.
2
Effect size: Larger true effects are easier to detect. A drug that cuts risk by 50% is easier to find than one cutting risk by 5%.
3
Significance level \((\alpha)\): A larger \(\alpha\) (e.g., 0.10 vs. 0.05) makes it easier to reject \(H_0\), raising power but also raising Type I risk.
4
Variability \((\sigma)\): Less noise in the data makes the signal clearer, increasing power.

Visualizing \(\alpha\), \(\beta\), and Power

Test Statistic
\(H_0\) distribution
\(H_a\) distribution
Critical Value
\(\alpha\)
\(\beta\)
Power = \(1 - \beta\)
\(\mu_0\)
\(\mu_a\)
Reject \(H_0\) region →
← Fail to reject \(H_0\)

Identifying Errors: Step by Step

1
State the hypotheses. Write \(H_0\) (no effect) and \(H_a\) (effect exists) clearly.
2
Identify the decision. Did the test reject or fail to reject \(H_0\)?
3
State what reality is. In the scenario, is \(H_0\) actually true or false?
4
Match to the grid. Decision + Reality = one of four outcomes (Correct, Type I, Type II, or Correct).
5
State consequences. Describe what the error means in the real-world context.

Example 1: Drug Trial

A new blood pressure drug is tested. \(H_0\): the drug has no effect. \(H_a\): the drug lowers blood pressure. The trial concludes the drug works, but in reality it has no effect.

1
Decision: Reject \(H_0\) (concluded the drug works).
2
Reality: \(H_0\) is true (drug has no real effect).
3
Error type: Type I error (false positive).

Example 2: Cancer Screening

A screening test checks for early-stage cancer. \(H_0\): the patient is cancer-free. \(H_a\): the patient has cancer. The test comes back negative, but the patient actually has cancer.

1
Decision: Fail to reject \(H_0\) (test says no cancer).
2
Reality: \(H_0\) is false (the patient does have cancer).
3
Error type: Type II error (false negative).

Example 3: Boosting Power

A researcher finds their clinical trial has power of only 0.60. They want \(\text{power} \ge 0.80\). What can they do?

Increase \(n\)
Enroll more patients. Doubling the sample size can dramatically increase power.
Increase \(\alpha\)
Use \(\alpha = 0.10\) instead of \(0.05\). More lenient threshold, but higher Type I risk.
Reduce noise
Use more precise measurements or a more homogeneous sample to lower \(\sigma\).

The \(\alpha\)-\(\beta\) Trade-Off

Significance Level (\(\alpha\))
Probability 0.01 0.05 0.10 0.20 0 0.5 1.0 Power
\(\beta\)
\(\alpha = 0.05\)

Common Mistakes

✕ Mixing Up I and II
Remember: Type I = false positive (reject a true \(H_0\)). Type II = false negative (fail to reject a false \(H_0\)).
✕ "Accepting" \(H_0\)
We never "accept" \(H_0\). We only fail to reject it. Absence of evidence is not evidence of absence.
✕ Power = \(\beta\)
Power is \(1 - \beta\), not \(\beta\). High \(\beta\) means low power (more Type II errors).

Complete Summary

Concept Symbol Meaning
Significance level \(\alpha\) \(P(\text{Type I error})\)
Type I error False \(+\) Reject true \(H_0\)
Type II error False \(-\) Fail to reject false \(H_0\)
Beta \(\beta\) \(P(\text{Type II error})\)
Power \(1 - \beta\) \(P(\text{Reject false } H_0)\)
Power target \(\ge 0.80\) Standard minimum in research

Question 1 of 5

A medical test concludes a patient has a disease, but the patient is actually healthy. Which error occurred?

Question 2 of 5

A clinical trial has power = 0.75. What does this mean?

Question 3 of 5

Which action will increase the power of a hypothesis test?

Question 4 of 5

If \(\alpha = 0.05\) and \(\beta = 0.20\), what is the probability of correctly concluding an effective drug works?

Question 5 of 5

A researcher lowers \(\alpha\) from 0.05 to 0.01 without changing anything else. What happens?