You test H0:μ=0 against H1:μ>0 with a one-sided z-test at α=0.05, where σ=1 is known and n=25. Use z0.95=1.645 and z0.80=0.8416. If the true mean is 0.5, what is the power? How large must n be for 80% power?

Probability and statistics, Hypothesis testing
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can compute power from the distribution of the test statistic under the alternative, and invert it for sample size.

Key idea

Reject when Xˉ>c=z1−ασ/n. Power =P(Xˉ>c∣μ=μ1)=Φ ⁣(μ1−cσ/n). Setting this to 1−β gives n=(z1−α+z1−β)2σ2μ12.

Steps

  1. The standard error is σ/n=1/5=0.2.
  2. The rejection threshold is c=1.645×0.2=0.329. We reject H0 when Xˉ>0.329.
  3. If μ=0.5, then Xˉ∼N(0.5, 0.22). Power =P(Xˉ>0.329)=P ⁣(Z>0.329−0.50.2)=P(Z>−0.855).
  4. That is Φ(0.855)≈0.804, so the power is about 80%.
  5. For 80% power: n=(1.645+0.8416)2×1/0.52=6.18/0.25≈24.7. Round up to n=25.
  6. So n=25 is just enough for 80% power at an effect size of 0.5.

Common mistakes

How long your answer should be

Half a page, 4–5 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: For i.i.d. N(μ,σ2) data, consider σ^c2=c∑i=1n(Xi−Xˉ)2. Which c gives the smallest mean squared error, and how do the unbiased choice c=1n−1 and the MLE c=1n compare for n=10?
Next in Probability and statistics: For the sample {2,4,6,8,10}, what is the exact bootstrap variance and standard error of the sample mean, and how does it compare with the usual s/n? How would you get a 95% percentile bootstrap interval in practice?