Less variance buys a narrower interval and fewer users
Start with what a smaller variance buys, in interval width and in users.
Predict
Cut a metric's variance in half. How wide is the test's interval now?
One test read twice, the raw metric and one with half the variance
variance 1.0
variance 0.571% as wide
-2-1012
raw SEs
An A/B test compares two means and puts an interval on the difference. Take two equal groups of n users and a metric whose standard deviation per user is σ. The standard error of the difference is
SE=σn2
In words: the spread per user, times the square root of 2 over the users in each group.
The interval is ±1.96SE, so its width grows in step with σ. Halve the variance and σ falls to 0.5=0.71 of what it was. That's the narrower interval in the figure.
The users you need grow faster: with the variance itself. Power is the chance that a real effect comes out significant. To detect an effect δ with a two-sided 5% test at 80% power, each group needs
n=δ22(z0.975+z0.8)2σ2≈δ215.7σ2
In words: z0.975=1.96 is the bar a result has to clear. z0.8=0.84 adds the room so that, when the true effect is δ, 80% of tests clear it. Their sum, 2.80, squared and doubled, is 15.7. For a conversion rate, σ2=p(1−p). The sample-size lesson builds this formula.
The part to hold on to is σ2 on top. Cut the variance in half and you need half the users, or half the days.
In the editor, write savings(variance_kept): the share of the users and the share of the interval's width that a variance cut leaves.
Pick an answer above to see the rest
Instructions
1
Write savings(variance_kept): the share of the users the test still needs, and the share of the interval's width that's left, as a pair.
2
The users follow the variance, and the width follows its square root.