10/36
Part 2 of 6 · The formulaLearn and do

The formula gives a minimum, so round up

The formula's answer is rarely a whole number, and the way you round it matters.

Users per arm3,8383,838.103,839
Power79.999%exactly 80%just over 80%
Comes fromint(), round()the formulamath.ceil

The formula gives the smallest nn that reaches the target power, and users come whole. Anything below it falls short, so round up.

In the editor, z_sum and arm_variances are ready. Write sample_size_per_arm(p_baseline, mde, alpha=0.05, power=0.8) from them, rounded up.