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 α\alpha. The other risk is missing a real effect, a Type II error, with probability β\beta. The power is the chance of catching it:

power=1−β=P(reject H0∣a specific alternative is true)\text{power} = 1 - \beta = P(\text{reject } H_0 \mid \text{a specific alternative is true})

Computing power takes two steps:

  1. Assuming H0H_0, find the cutoff beyond which the test rejects.
  2. Assuming the alternative, find the probability of landing beyond that cutoff.

Why sample size drives power

The standard error shrinks like 1n\tfrac{1}{\sqrt{n}}. With more data, the sampling distributions under H0H_0 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 α\alpha moves the cutoff inward too, buying power at the price of more false alarms; a larger true effect moves the alternative farther away.

Power when the true mean is 105 Two normal curves for the sample mean with standard error 2.5: one centered at the null value 100, one at the true value 105. A dashed vertical line at the cutoff 104.1 separates the rejection region. The area of the right curve beyond the cutoff, about 0.64, is the power. 95100105110xy
  • under H₀, mean 100
  • true mean 105
  • cutoff 104.1
Power when the true mean is 105

Worked examples

Common mistakes

Practice problems

  1. A test has power 0.750.75 against an alternative. What is β\beta?

    Answer

    0.250.25

    Full solution

    β=1−power\beta = 1 - \text{power}.

  2. In Example 1, find the power with n=100n = 100 instead of 3636.

    Answer

    About 0.950.95

    Full solution

    The standard error is 1.51.5, the cutoff 100+1.645(1.5)=102.47100 + 1.645(1.5) = 102.47, and P(Z>102.47−1051.5)=P(Z>−1.69)≈0.95P(Z > \tfrac{102.47 - 105}{1.5}) = P(Z > -1.69) \approx 0.95.

  3. In Example 1, find the power with α=0.01\alpha = 0.01 (z=2.326z = 2.326).

    Answer

    About 0.370.37

    Full solution

    The cutoff rises to 100+2.326(2.5)=105.82100 + 2.326(2.5) = 105.82, and P(Z>0.33)≈0.37P(Z > 0.33) \approx 0.37. A stricter α\alpha costs power.

  4. Name four changes that increase the power of a test.

    Answer

    Larger nn, larger α\alpha, larger true effect, smaller σ\sigma

    Full solution

    Each one separates the null and alternative distributions more, or moves the cutoff toward H0H_0.

  5. What is the power of a test against an alternative equal to the null value itself?

    Answer

    α\alpha

    Full solution

    If the “alternative” is H0H_0, rejecting is a false alarm, which happens with probability α\alpha.

  6. How many observations would Example 3 need to detect μ=110\mu = 110 with 80%80\% power?

    Answer

    1414

    Full solution

    (2.487⋅1510)2≈13.9\left(\tfrac{2.487 \cdot 15}{10}\right)^2 \approx 13.9. Doubling the effect cuts the sample size by a factor of 44.

  7. A study fails to reject H0H_0 with power 0.20.2. What should readers conclude?

    Answer

    Little: the test had only a 20%20\% chance of detecting the effect even if it were real.

    Full solution

    Low power makes a non-significant result weak evidence for H0H_0.

  8. A student computes the cutoff in Example 1 as 105+1.645(2.5)105 + 1.645(2.5). What went wrong?

    Answer

    The cutoff must be centered at the null value 100100.

    Full solution

    The rejection rule is set assuming H0H_0; the alternative 105105 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.