Power and sample size for 2-level factorial designs
Power and sample size for a 2-level factorial design tells you how many replicates (and center points) an experiment needs so that an effect of a given size, stated in units of the run-to-run standard deviation σ, shows up as significant with a chosen probability. In a factorial design, every run contributes to every effect, so the answer depends on the total number of corner runs, not on the number of factors, plus the degrees of freedom left over to estimate the error.
When to use it
- You are planning a full or fractional 2-level factorial and want to know whether one replicate is enough.
- You need to choose between adding replicates, adding center points or adding a factor.
- You want to state in a test plan which effect size the experiment can detect.
How it works
An effect in a 2-level design is the difference between the average response at the high level and at the low level. With N factorial runs, each average uses N/2 runs, so the effect's variance is 4σ²/N. Its t statistic follows a noncentral t distribution when the true effect is Δ:
Var(effect) = 4σ² / N
t = effect / (2 s / √N)
noncentrality δ = (Δ / σ) √N / 2
df = total runs − model terms − 1
Power = P( |T′| > t₁₋α/₂, df ), T′ ~ noncentral t(df, δ)Three things set the power:
- N, the number of factorial runs (corners × replicates). It enters through √N, so doubling the runs multiplies the noncentrality by 1.41.
- The error degrees of freedom. These are the runs left after fitting the model. With few of them, the critical t is large and power collapses even when δ is decent.
- Center points do not change the variance of an effect, because they sit at the zero level of every factor. They add degrees of freedom for error and let you test for curvature, which uses one of them.
The calculation here uses a 2³ design with a model of the 3 main effects and 3 two-factor interactions (plus a curvature term when there are center points), α = 0.05 and a two-sided test.
| Plan | Runs | Error df | Δ = 1.0σ | Δ = 1.5σ | Δ = 2.0σ | Δ = 3.0σ |
|---|---|---|---|---|---|---|
| 1 replicate | 8 | 1 | 0.093 | 0.133 | 0.176 | 0.261 |
| 1 replicate + 4 center points | 12 | 4 | 0.195 | 0.369 | 0.572 | 0.880 |
| 2 replicates | 16 | 9 | 0.431 | 0.761 | 0.944 | 1.000 |
| 3 replicates | 24 | 17 | 0.637 | 0.933 | 0.996 | 1.000 |
| 4 replicates | 32 | 25 | 0.776 | 0.983 | 1.000 | 1.000 |
A simulation of 1,000,000 experiments of the 2-replicate plan with a true effect of 1.5σ (NumPy, seed 99, regression t test) rejected in 76.1% of them, against 0.761 computed.
Example
A team is studying the pull strength of an adhesive bond with three factors: cure temperature, cure time and surface treatment. Repeat bonds made at one setting vary with σ ≈ 4 N. A change of 6 N in average strength (Δ = 1.5σ) would decide which settings go into production, so the experiment should detect it with at least 80% power.
| Plan | Runs | Error df | Power to detect 6 N |
|---|---|---|---|
| 1 replicate + 4 center points | 12 | 4 | 37% |
| 2 replicates | 16 | 9 | 76% |
| 2 replicates + 3 center points | 19 | 11 | 78% |
| 2 replicates + 10 center points | 26 | 18 | 81% |
| 3 replicates | 24 | 17 | 93% |
The single replicate is far short. Two replicates come close, and center points nudge the power up only slowly: they add degrees of freedom but no information about the effects. Ten center points reach 81% with 26 runs, while three replicates reach 93% with 24 runs. The team runs three replicates and adds 3 center points for a curvature check, 27 runs in all, randomized over three days with days as blocks.
How to read the results
- Read across a row to see what a plan can detect. Two replicates of a 2³ detect a 2σ effect almost surely (94%) and a 1σ effect less than half the time (43%).
- Read down a column to find the replicates you need. For 80% power: 2 replicates at 2σ, 3 at 1.5σ and 5 at 1σ.
- Small effects are expensive. Going from 1.5σ to 1σ takes the plan from 3 to 5 replicates.
- An unreplicated design is not hopeless, but its significance tests rest on very few degrees of freedom. Analyze it with a normal or half-normal effects plot and Lenth's method, which use the small effects themselves as the error estimate.
Common mistakes
- Stating the effect as a coefficient. Software that fits coded −1/+1 models reports coefficients, which are half the effect. An effect of 6 N is a coefficient of 3 N.
- Using a σ that includes the factor effects. Take σ from repeat runs at one setting or from the residuals of a previous experiment, not from the spread of all past production.
- Counting center points as replicates. They help the error estimate and the curvature test, not the precision of the effects.
- Planning for one effect and forgetting the others. Every main effect and interaction in a full factorial has the same variance, so the same power applies to each; with many effects tested, expect some false alarms at α = 0.05.
Frequently asked questions
Does adding a factor reduce power?
The variance of each effect depends only on the number of runs, so a 2⁴ in 16 runs estimates effects as precisely as a 2³ with 2 replicates. It has fewer error degrees of freedom once its extra interactions are in the model: with 4 main effects and 6 two-factor interactions, power at 1.5σ is 0.672 against 0.761.
How many center points should I add?
Three to five are common. They give a curvature test and a few pure-error degrees of freedom, which matter most in an unreplicated design. Beyond that, a replicate is usually worth more.
Why is the effect size in units of σ?
Because power depends only on Δ/σ, N and the degrees of freedom. Stating Δ in σ units makes one table serve every response.
Is the power the same for interactions?
Yes, in a full factorial or a fraction where the interaction is not aliased. Each interaction is a contrast between two halves of the runs, just like a main effect.