Learn
Interactive·

Type I & Type II Errors and Power

A statistical test can be wrong in two different ways. Good study design starts by understanding both.

A logistics company tests a new route-optimization system. The company could conclude that the system works when it does not, or fail to detect a real reduction in delivery time.

Hypothesis tests always carry both risks: detecting an effect that is not real and missing an effect that is.

Key question

How do false positives and false negatives differ, and how can a study improve its chance of detecting a real effect?

1

Concept

How can a statistical test be wrong?

Decision and reality create four possible outcomes

A test either rejects the null hypothesis or does not. In reality, the effect either exists or it does not. Combining those possibilities produces four outcomes.

RealityReject H₀Do not reject H₀
No real effectType I error

A false positive

Correct decision

No effect detected

A real effect existsCorrect detection

Statistical power

Type II error

A false negative

Two outcomes are correct decisions. The other two are Type I and Type II errors.

2

Why It Matters

How do Type I and Type II errors differ?

A Type I error claims an effect that is not there

The new system has no real effect, but sampling variation produces p < 0.05. The probability of this error is controlled by α.

Type I error

The company adopts an ineffective system and continues investing in it.

A Type II error misses an effect that is real

The system really does reduce delivery time, but the sample is too small or too variable to produce clear evidence. The probability of this error is β.

Type II error

The company abandons a useful system because the study did not collect enough information.

The two risks are connected

With the same data, making α more stringent reduces Type I error but can increase Type II error. Thresholds and sample size must be planned together.

3

How It Works

What determines statistical power?

Power is the probability of detecting a real effect

Statistical power is the probability of correctly rejecting the null hypothesis when the assumed effect is real.

Statistical power

1 − β

Power of 80% means that studies conducted under the same assumptions would detect the specified effect about 80% of the time.

Effect size

Larger effects are easier to detect.

Sample size

Larger samples reduce standard error.

Data spread

Less variable data make a signal easier to separate from noise.

Significance level

A less strict threshold raises power but also raises Type I error.

What 80% power does not mean

It does not mean that a significant result has an 80% chance of being true. Power is a long-run detection rate under a specified effect size and study design.

4

Example

How should sample size be planned?

Plan sample size before collecting the data

A power analysis combines the target effect size, significance level, and desired power to estimate the required sample size.

Power analysis

Independent-samples t-test · two-sided

Target power 80%

Effect size

d = 0.50

Alpha

α = 0.05

Power

0.80

Required sample

64 per group

Assuming an unrealistically large effect produces an unrealistically small sample requirement. Use prior research, pilot data, or the smallest effect that would matter in practice.

InputCommon choice
Significance levelα = 0.05
Target power0.80 or 0.90
Effect sizePrior research or minimum important difference
Expected attritionAdd to the required sample

Reading a non-significant result

In a low-powered study, p > 0.05 often means “not enough information to separate the effect from noise,” not “the effect is zero.”

5

Interactive

Change effect size, sample size, and alpha

Change effect size, sample size, and alpha

Adjust the study conditions below and watch Type I error, Type II error, and power move together.

H₀H₁

α

0.05

β

0.193

Power

80.7%

Signal / noise

0.50

Under these assumptions, the study has about 80.7% power and a Type II error rate of 19.3%.

What to observe

  • How does power change as sample size increases?
  • How many more observations are needed when the effect becomes smaller?
  • What happens to power when alpha changes from 0.05 to 0.01?
  • How does greater variability affect Type II error?

Key lesson

Type I and Type II errors are not isolated settings. Effect size, sample size, variability, and alphadetermine them together.

Key takeaways

  • A Type I error detects an effect that is not real.
  • A Type II error fails to detect an effect that is real.
  • Alpha controls the long-run Type I error rate.
  • Power equals 1 − β and measures the chance of detecting the assumed effect.
  • Power depends on effect size, sample size, variability, and alpha.
  • Sample size should be planned before the data are collected.

A good test does more than calculate a p-value. It makes the acceptable risks explicit before the study begins.

What should a real analysis show?

Error criterion

Significance level α

Detection ability

Power 1 − β

Study planning

Effect size · sample size

Result interpretation

p-value · interval · effect size

Now examine power with a real analysisOpen in Lab

Go Deeper

t-tests