Errors, power and sample size
How many patients does a trial need before we can trust its answer?
Two ways to be wrong
A trial is like a court case. The drug is "innocent" until the data convict it.
1. The drug
Patients on the old treatment improve 30% of the time.
2. The trial
3. The bar for a clear difference
The bar: how far from "no difference" a result must land, in units of luck, to count as a clear difference in the drug's favor (one-sided). Bar:
Where trial results land: orange if the drug does nothing, teal if it works.
One dot per simulated trial.
The truth, and what 20 trials see
Each card is one trial, with the group size and bar from the lab. Trials see only their own patients, never the true rates.
The truth (hidden from the trials)
Choosing the sample size
Before a trial starts, the team picks the smallest gain worth catching, the false-alarm bar, and the power they want. It also estimates how much patients vary. The only thing left to choose is the number of patients.
The bar is one-sided 2.5% (z = 1.96), as in the lab above.
A shortcut
n is patients per group. \(p_0\) and \(p_1\) are the old and new improvement rates. \(z_\alpha = 1.96\) for the bar. \(z_\beta = 0.84\) for 80% power, 1.28 for 90%. The top is how much patients vary. The bottom is the gain, squared. It lands within a few patients of the curve.
Halve the gain and you need about 4 times the patients. Going from 80% to 90% power needs about a third more.
Predict, then check
Real trials, real numbers
Planning a trial means asking: how many patients?
A worked design
The drug improves a score by 3 points. Patients vary by about 10 points.
At the starting values, Clinical Trials in Practice also finds 467 patients in total.
Rare side effects need crowds
ICH E1 asks for about 1,500 patients exposed to a drug taken long-term for a non-life-threatening condition. Pick a true side-effect rate.
Sources: design numbers from Sokolova and Sokolov (2026), Clinical Trials in Practice. Safety numbers: ICH E1 guideline.
Regulator's corner
The ICH E20 draft describes a false alarm as "conclusions that truly inefficacious treatments are efficacious" (useless drugs called useful). That is our α, the Type I error.
ICH E20, section 3.3 (draft, June 2025, not final). Read the guideline (FDA).
Takeaway
- A trial can raise a false alarm (Type I, α) or miss a drug that works (Type II, β). Power is 1 minus β.
- More patients help detect a working drug without raising the false-alarm rate. Moving the bar trades one error against the other.
- Half the effect costs about four times the patients.