Statistics & Probability · Grade 12 and undergraduate
Power of a Test and Choosing a Sample Size
Quick answer
A significance test can miss a real effect: that is a Type II error. The power of a test is the probability that it does reject H₀ when a specific alternative is true. To compute it, find the cutoff for rejecting under H₀, then find the chance of passing that cutoff under the alternative. Power grows with a larger sample, a larger α, a bigger true effect and less variability. Working backward gives the sample size needed for, say, 80% power.
What you'll learn
- Define power as 1 minus the chance of a Type II error
- Compute the power of a z-test against a specific alternative
- Explain how sample size, α and effect size change power
- Find the sample size needed for a target power
Will the test notice?
A hypothesis test controls the chance of a false alarm with . The other risk is missing a real effect, a Type II error, with probability . The power is the chance of catching it:
Computing power takes two steps:
- Assuming , find the cutoff beyond which the test rejects.
- Assuming the alternative, find the probability of landing beyond that cutoff.
Why sample size drives power
The standard error shrinks like . With more data, the sampling distributions under and under the alternative become narrower and overlap less. The cutoff moves closer to the null value while the alternative’s distribution stays centered on the true value, so more of it falls past the cutoff. A larger moves the cutoff inward too, buying power at the price of more false alarms; a larger true effect moves the alternative farther away.
- under H₀, mean 100
- true mean 105
- cutoff 104.1
Worked examples
Common mistakes
Practice problems
-
A test has power against an alternative. What is ?
Answer
Full solution
.
-
In Example 1, find the power with instead of .
Answer
About
Full solution
The standard error is , the cutoff , and .
-
In Example 1, find the power with ().
Answer
About
Full solution
The cutoff rises to , and . A stricter costs power.
-
Name four changes that increase the power of a test.
Answer
Larger , larger , larger true effect, smaller
Full solution
Each one separates the null and alternative distributions more, or moves the cutoff toward .
-
What is the power of a test against an alternative equal to the null value itself?
Answer
Full solution
If the “alternative” is , rejecting is a false alarm, which happens with probability .
-
How many observations would Example 3 need to detect with power?
Answer
Full solution
. Doubling the effect cuts the sample size by a factor of .
-
A study fails to reject with power . What should readers conclude?
Answer
Little: the test had only a chance of detecting the effect even if it were real.
Full solution
Low power makes a non-significant result weak evidence for .
-
A student computes the cutoff in Example 1 as . What went wrong?
Answer
The cutoff must be centered at the null value .
Full solution
The rejection rule is set assuming ; the alternative enters only when computing the probability of rejecting.
Frequently asked questions
What is the power of a test?
The probability that the test rejects H₀ when a particular alternative is true. Power = 1 − P(Type II error).
How do you compute power?
Find the rejection cutoff assuming H₀ is true. Then, assuming the alternative value, find the probability that the statistic lands beyond that cutoff.
What increases power?
A larger sample size, a larger significance level α, a larger true difference from H₀, and less variability in the data.
How large a sample is needed?
For a one-sided z-test on a mean, n = ((z_α + z_β)σ/δ)², where δ is the difference to detect and 1 − β the desired power.
Why is 80% a common target?
It balances cost against risk: a study then misses a real effect of the planned size only one time in five.