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

The baseline moves n, and which way depends on how the lift is stated

The baseline moves n too, and which way depends on how the lift is stated.

print("baseline   +2 points   +10% of it")
for p in [0.02, 0.10, 0.30, 0.50]:
    print(f"{p:>8.0%} {sample_size_per_arm(p, 0.02):>11,} {sample_size_per_arm(p, 0.10 * p):>12,}")
Predict

The lift is fixed at 2 points. Does a 30% baseline need more or fewer users than a 10% one?

Pick one to see what it prints.
Pick an answer above to see the rest