Type I and Type II errors, significance level and power
A test can wrongly reject a true null (Type I, probability α) or miss a real effect (Type II, probability β); power = 1 − β is the chance of detecting an effect of a given size.
- Significance level = Type I error rate.
- Type II error rate, for one specific effect size.
- A noncentral t variable with df and noncentrality .
- Degrees of freedom: (one-sample, paired) or (two-sample).
- Noncentrality: (one-sample/paired) or (two-sample).
- The standardised effect size (Cohen's d) you want to detect.
When to use
- Before a study: choose , the smallest effect worth detecting, and the target power (often 0.80 or 0.90), then solve for the sample size.
- After a non-significant result: ask whether the study had enough power to detect a meaningful effect (using a pre-specified effect size, not the observed one).
Assumptions
Power calculations assume the test's model (here normal data with equal variances for the two-sample t) and a guessed effect size and SD. They are planning tools, as good as those guesses.
How to interpret
| true | false | |
|---|---|---|
| Reject | Type I error () | Correct (power) |
| Fail to reject | Correct () | Type II error () |
Power increases with: a larger true effect, a larger sample, less noise (smaller SD, pairing, better measurement), a larger , and a one-sided test (in the predicted direction). Lowering reduces Type I errors but, at a fixed n, raises .
Common mistakes
- Thinking is the probability that a significant result is a false positive (that depends on how often is true and on power).
- "Post-hoc power" computed from the observed effect: it is just a transformation of the p-value and adds nothing.
- Treating a non-significant result from an underpowered study as evidence of no effect.
- Forgetting that power refers to one specific effect size.
Example
Two groups, two-sided t-test, , true effect . With 30 per group, power = 0.478 — more likely to miss the effect than to find it. Reaching 80% power needs 64 per group (achieved power 0.801). A one-sample design with and has power 0.754; it needs for 80%.