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 arm | 3,838 | 3,838.10 | 3,839 |
|---|---|---|---|
| Power | 79.999% | exactly 80% | just over 80% |
| Comes from | int(), round() | the formula | math.ceil |
The formula gives the smallest 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.