Alpha × Beta

How many people does an A/B test need?

Start with one decision, one measurable outcome, and the smallest improvement that would change what you do. A signup rate is an example of a binary measure. Each eligible visitor is counted once and either signs up or does not.

Specify the lift in the right units

With a 4.2% signup rate, a 20% relative lift is 0.84 percentage points. The target is 5.04%. At 2,400 eligible visitors per week, a six-week window reaches 7,200 per arm with an even split. The planner estimates about 67% power at that traffic level.

Choose power before launch

Power is the chance the planned test rejects equal rates in repeated studies if the stated alternative rates are true and the model assumptions hold. The planner uses an equal-size, two-sample normal approximation for proportions. It counts rejection in both tails and looks for the smallest whole per-arm sample that reaches the target. R’s two-proportion power method.

The planner also requires at least ten expected successes and ten expected failures in each arm under the planned rates. This is a practical check for the normal approximation. Correlated outcomes, uneven assignment, repeated measurements, very rare events, and multiple comparisons can require other designs or methods. Estimates assume stable traffic over the chosen weeks.

Decide what will stop the experiment

Before launch, set the test’s primary metric, eligibility, minimum sample in each arm, and review date. Confirm that the full observation window for each participant can complete before analysis. Looking at significance to decide when to stop changes the error rates of a fixed-horizon test. Use an appropriate sequential design if your team needs a formal early stopping rule.

If traffic is too low, consider a larger change where a bigger effect is plausible or a longer decision window. Recording the constraint early prevents an underpowered result from becoming a claim that two versions perform alike.

Plan the sample and stopping rule