The minimum detectable effect is a decision you make
Alpha and power are settings. The third input, the lift to detect, is a judgment.
Predict
Who picks the minimum detectable effect?
Take a sign-up flow that converts 10% of visitors. A redesign that lifts it to 12% might be worth shipping, and one that lifts it to 10.1% might not be worth the engineering. That line is the MDE: the smallest true effect the test is built to catch at the stated power. Nothing in the data tells you what it is, so ask what lift would change the decision.
A 2% lift can mean 2 points or 2% of the baseline
Detect a 2% lift on a 10% baseline, read two ways
2 points
3,839
2% of 10%
356,332
Users per arm. 2% of 10% is 0.2 points, so it costs 93 times the users.
The same words name two sizes, so pin down what lift means. Here is the request detect a 2% lift on a 10% baseline, read both ways:
Reading
Treatment rate
Δ
Users per arm
2 points, absolute
12%
0.02
3,839
2% of 10%, relative
10.2%
0.002
356,332
The two readings differ by a factor of 93. Δ, delta, is the lift in rate units.
The practice function takes an absolute lift. If you're handed a relative one, convert it once at the top: a relative lift r on a baseline p is Δ=r⋅p, so 2% of 10% is 0.002.
In the editor, write treatment_rate(p_baseline, lift, relative=False): the one place a relative lift gets converted.
Pick an answer above to see the rest
Instructions
1
Write treatment_rate(p_baseline, lift, relative=False): the treatment arm's rate. An absolute lift adds to the baseline. A relative one is a share of it.
2
So a 2% lift on 10% is 12% read as points, and 10.2% read as a share.