Algorithm Search⌘K

Definitionintro

Statistical power

Also called power of a test, power function.

The probability that a test rejects the null hypothesis when a given alternative is true. It grows with the sample size and the effect size.

The power of a statistical hypothesis test at an alternative θ1\theta_1 is the probability that the test rejects the null hypothesis when the data come from θ1\theta_1. It is one minus the type II error probability at θ1\theta_1. Power is not one number for a test: it is a value of the function π(θ)=Pθ(reject H0)\pi(\theta) = P_\theta(\text{reject } H_0), which runs over the whole parameter space, equals the type I error probability on the null and the power on the alternative. Power grows with the sample size and with the distance of θ1\theta_1 from the null, and falls as the level α\alpha is made stricter.

Definition

Let a test of H0:θ∈Θ0H_0: \theta \in \Theta_0 against H1:θ∈Θ1H_1: \theta \in \Theta_1 reject when the data XX fall in a region RR (or, for a randomized test ϕ\phi, with probability ϕ(X)\phi(X)). Its power function is

π(θ)=Pθ(X∈R)(=Eθ[ϕ(X)]),θ∈Θ.\pi(\theta) = P_\theta(X \in R) \quad \big(= E_\theta[\phi(X)]\big), \qquad \theta \in \Theta .
  • For θ∈Θ1\theta \in \Theta_1, π(θ)\pi(\theta) is the power of the test at θ\theta, and β(θ)=1−π(θ)\beta(\theta) = 1 - \pi(\theta) is its type II error probability.
  • For θ∈Θ0\theta \in \Theta_0, π(θ)\pi(\theta) is the type I error probability, and the test has level α\alpha when sup⁡Θ0π≤α\sup_{\Theta_0}\pi \le \alpha.

We write π\pi for the power function, as β\beta is used for the type II error; Casella and Berger write β(θ)\beta(\theta) for the power function itself.

The normal mean. For the two-sided z-test of H0:μ=μ0H_0: \mu = \mu_0 with nn iid N(μ,σ2)N(\mu, \sigma^2) observations, known σ\sigma, and λ=n(μ−μ0)/σ\lambda = \sqrt n(\mu - \mu_0)/\sigma,

π(μ)=Φ(λ−z1−α/2)+Φ(−λ−z1−α/2).\pi(\mu) = \Phi(\lambda - z_{1-\alpha/2}) + \Phi(-\lambda - z_{1-\alpha/2}) .

It equals α\alpha at μ=μ0\mu = \mu_0, is symmetric in λ\lambda, increases with ∣λ∣|\lambda|, and tends to 1 as ∣λ∣→∞|\lambda| \to \infty. It depends on μ\mu, σ\sigma and nn only through λ\lambda, so power at a fixed alternative grows like n\sqrt n times the standardized effect size (μ−μ0)/σ(\mu - \mu_0)/\sigma inside Φ\Phi.

Examples and non-examples

A power table. For the z-test with n=9n = 9, σ=4\sigma = 4, μ0=500\mu_0 = 500 and α=0.05\alpha = 0.05 two-sided, the formula gives π=0.0663,0.1165,0.3230,0.6141,0.8508,0.9633\pi = 0.0663, 0.1165, 0.3230, 0.6141, 0.8508, 0.9633 at μ=500.5,501,502,503,504,505\mu = 500.5, 501, 502, 503, 504, 505. The same test detects a shift of 5 almost always and a shift of 1 rarely; "the power of the test" means nothing until the alternative is named.

A t-test design. For the two-sample t-test with 64 observations per group at α=0.05\alpha = 0.05 two-sided, the power at a standardized difference dd is 0.2023, 0.3915, 0.6124, 0.8015, 0.9205 and 0.9943 at d=0.2,0.3,0.4,0.5,0.6,0.8d = 0.2, 0.3, 0.4, 0.5, 0.6, 0.8 (noncentral t probabilities computed by numerical integration, as on sample size determination). The design has 80% power at d=0.5d = 0.5, which is how 64 per group is usually justified.

The cost of estimating σ\sigma. With 10 observations at α=0.05\alpha = 0.05 two-sided, the one-sample t-test has power 0.293 at d=0.5d = 0.5 and 0.803 at d=1d = 1, against 0.353 and 0.885 for the z-test with σ\sigma known.

Non-example: observed power. Plugging the observed effect into the power formula after the study gives a number that is a fixed function of the p-value (Hoenig and Heisey, 2001). For the two-sided z-test, observed power is Φ(∣z∣−1.96)+Φ(−∣z∣−1.96)\Phi(|z| - 1.96) + \Phi(-|z| - 1.96):

observed ∣z∣\lvert z \rvert two-sided p-value observed power
1.000 0.3173 0.1701
1.645 0.1000 0.3766
1.960 0.0500 0.5001
2.576 0.0100 0.7311
3.000 0.0027 0.8508

A non-significant result always has observed power below about 0.5, so "the result was not significant because the power was low" says only that pp was large. Power belongs to the design stage, at an effect chosen for its importance.

Non-example: the probability that a significant result is true. Power is P(reject∣θ1)P(\text{reject} \mid \theta_1). The share of true effects among significant results also depends on how many of the tested nulls are true, which power does not include.

  • Size and level. The supremum of π\pi over Θ0\Theta_0, and a bound α\alpha on it; see type I and type II errors.
  • Most powerful and uniformly most powerful tests. A level-α\alpha test is most powerful at θ1\theta_1 if no level-α\alpha test has larger π(θ1)\pi(\theta_1), and uniformly most powerful if this holds at every θ1∈Θ1\theta_1 \in \Theta_1. The Neyman-Pearson lemma gives the most powerful test for simple hypotheses. The one-sided z-test is uniformly most powerful; a two-sided test cannot be, but the two-sided z-test is uniformly most powerful among unbiased tests.
  • Unbiased test. π(θ)≥α\pi(\theta) \ge \alpha for all θ∈Θ1\theta \in \Theta_1: rejection is at least as likely under any alternative as under the null.
  • Consistent test. A sequence of tests with πn(θ)→1\pi_n(\theta) \to 1 for every θ∈Θ1\theta \in \Theta_1 as n→∞n \to \infty; the z-test and the t-test are consistent.
  • Sample size determination. The inverse problem: the smallest nn at which πn(θ1)≥1−β\pi_n(\theta_1) \ge 1 - \beta.

References

  1. J. Neyman and E. S. Pearson, On the problem of the most efficient tests of statistical hypotheses, Philosophical Transactions of the Royal Society A 231, 1933, pp. 289 to 337, The whole paper (the probability of rejecting a false hypothesis, and the most powerful critical region at a given size)
  2. George Casella and Roger L. Berger, Statistical Inference, second edition, Duxbury, 2002, Section 8.3.1 (error probabilities and the power function, with the normal power function as an example)
  3. Jacob Cohen, Statistical Power Analysis for the Behavioral Sciences, second edition, Lawrence Erlbaum, 1988, Chapter 1 (the concepts of power analysis) and Chapter 2 (power tables for the t-test)
  4. John M. Hoenig and Dennis M. Heisey, The abuse of power: the pervasive fallacy of power calculations for data analysis, The American Statistician 55(1), 2001, pp. 19 to 24, The whole paper (observed power is a one-to-one function of the p-value and adds no information)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/558Q0H/text.yaml