- Introduced by
- Jacob Cohen
- Year
- 1988
- Type
- Sample size determination
What does it do?
Power analysis for ANOVA is a prospective statistical technique that determines the minimum sample size needed to detect a specified group mean difference with a chosen probability.
Jacob Cohen presented it systematically in his monograph Statistical Power Analysis for the Behavioral Sciences (2nd ed., 1988), where it translates a researcher's effect size expectation, expressed as Cohen's f, together with the desired Type I error rate (alpha) and statistical power (1 − beta), into a concrete per-group sample size recommendation for one-way or factorial ANOVA designs.
The intuition behind the method
Before collecting data you know roughly how different the group means ought to be if your theory is correct. Power analysis turns that prior knowledge into a sample size: collect too few participants and even a real effect will go undetected; collect far more than necessary and you waste resources. Think of it as calibrating the sensitivity of your study — just enough magnification to see what you are looking for without over-engineering the microscope.
History
Jacob Cohen's book Statistical Power Analysis for the Behavioral Sciences (2nd ed., 1988) is the reference for the framework described here, including the small, medium, and large benchmarks for Cohen's f.
When to use it
Use this procedure when planning a study that compares three or more independent groups on a continuous outcome, using one-way ANOVA or a balanced factorial design. The inputs are an expected Cohen's f, taken from pilot data or prior literature, a significance level (conventionally 0.05), a target power (conventionally 0.80 or 0.90), and the planned number of groups. The calculation assumes that the ANOVA conditions (approximately normal outcomes within groups, equal variances, and independent observations) will hold in the actual study; if they are doubtful, the result is only an approximation. Do not use this procedure for a two-group comparison, where the related t-test power analysis applies, or for regression with continuous predictors. It is also not suitable for unbalanced designs or clearly unequal variances without adjusted formulas or simulation-based power analysis, and it should not be used to justify a sample size after the data have been collected.
Limitations and considerations
- The output is only as reliable as the assumed f. An optimistic f, often taken from a small pilot study, produces an underpowered design, and the generic benchmarks of 0.10, 0.25, and 0.40 are not tied to any particular field.
- The formula assumes equal group sizes and equal variances. Unbalanced or heteroscedastic designs require adjusted formulas or simulation-based power analysis, so the closed-form result on this page should not be applied to them unchanged.
- The calculation gives the sample needed for complete data. It does not account for attrition, missing outcomes, or protocol deviations, which reduce the effective sample size.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Gives a minimum per-group sample size before data collection, using the non-central F-distribution with non-centrality parameter lambda = N f-squared.
- Makes the trade-off between effect size, alpha, power, and number of groups explicit, so each assumption can be varied and reported.
- Expresses the expected difference through Cohen's f, a single effect size that applies to one-way designs and, effect by effect, to balanced factorial designs.
- Uses an analytical formula with a numerical search for N, so it requires far less computation than simulation-based planning.
Applications
- Determining the number of participants per condition in a randomized controlled trial comparing three or more treatment arms.
- Planning experimental designs in educational research where student groups receive different instructional interventions.
- Sample size justification sections of grant proposals and ethics applications in the social and health sciences.
- Industrial experiments comparing multiple machine settings, formulations, or operators on a continuous quality measure.
How it works
How it works
The null hypothesis asserts that all k population means are equal; the alternative asserts that at least one mean differs from the rest. Power analysis asks: given a specific degree of inequality among those means, how large must the total sample be so that the F-test rejects the null hypothesis with probability 1 − beta?
Formula
H_0:\ \mu_1 = \mu_2 = \cdots = \mu_k \quad H_1:\ \text{at least one } \mu_i \neq \mu_jCohen's f quantifies the spread of the population means relative to the common within-group standard deviation. It equals the standard deviation of the k group means, computed with k in the denominator, divided by the pooled within-group standard deviation. Cohen's benchmarks label f = 0.10 small, f = 0.25 medium, and f = 0.40 large. The non-centrality parameter lambda of the F-distribution equals N times f-squared, where N is the total sample size. The F-test's power is the probability that the non-central F-statistic exceeds the critical value at significance level alpha. To obtain f from pilot or published data, first take the k group means and compute their standard deviation around the overall mean; then divide it by the pooled within-group standard deviation from the same source. Report the means, the pooled standard deviation, and the resulting f, because the power calculation is only as reliable as these inputs.
Formula
f = \dfrac{\sigma_m}{\sigma} = \sqrt{\dfrac{\sum_{i=1}^{k} n_i (\mu_i - \mu)^2 / k}{\sigma^2_w}}Given f, alpha, power, and the number of groups k, a numerical solver finds the smallest total sample size N such that the non-central F-distribution, with k − 1 and N − k degrees of freedom, yields the target power. N is the total across all groups, so for a balanced design the required n per group is N/k; this per-group figure is what is usually reported. Because the analysis is prospective — conducted before data collection — the researcher adjusts the design (e.g., increases n or accepts a larger effect size) until practical constraints and statistical requirements are balanced.
Formula
1 - \beta = P\!\left(F(k-1,\,N-k,\,\lambda) > F_{\alpha,\,k-1,\,N-k}\right), \quad \lambda = N \cdot f^2Common pitfalls
- Adopting f = 0.25 as a default without reasoning from pilot data, published group means, or a pooled standard deviation.
- Planning power for the omnibus F-test and assuming that it also guarantees detection of a specific pairwise difference; a target difference between two particular groups needs its own calculation.
- Running a post hoc power calculation from the observed effect after the study is finished. This is retrospective and does not inform the design of the study.
- Reporting only the final per-group sample size without the assumed f, alpha, target power, and number of groups, so that readers cannot check the calculation.
Frequently asked questions
What is Cohen's f and how do I estimate it?
Cohen's f is the ratio of the standard deviation of the population group means to the common within-group standard deviation. If you have pilot data or published means and a pooled standard deviation you can compute f directly. In the absence of prior data, Cohen's benchmarks (f = 0.10 small, 0.25 medium, 0.40 large) serve as a starting point, but they should be used cautiously because the appropriate f depends on your research context.
Why is 0.80 the standard target power?
0.80 is a widely used convention in power analysis, corresponding to a Type II error rate of 0.20. It is not a requirement of the F-test itself. High-stakes applications, such as clinical trials and policy-informing studies, often target 0.90 or higher. The chosen target should be justified in the study protocol.
Can I use this for a two-way or factorial ANOVA?
The basic Cohen's f framework extends to factorial designs, but the effect size must be specified for each main effect and interaction separately. Balanced factorial power calculations treat each effect as an F-test with its own degrees of freedom. Many power-analysis programs support multi-factor designs using the same underlying logic.
What should I do if the required sample size is not feasible?
You have three levers: accept a larger minimum detectable effect size (i.e., power to detect only practically important differences), relax the power target slightly, or reduce the number of groups. A sensitivity analysis reporting which effect size a fixed available n can detect with 80% power is a constructive alternative when the full sample is unattainable.
Related methods
Sources
Cohen, J. (1988). Statistical Power Analysis for the Behavioral Sciences (2nd ed.). Lawrence Erlbaum Associates.
ISBN: 978-0805802832