All problems
Experiment Lift
Problem
Compute the absolute lift of an experiment: treatment_rate - control_rate.
Rates are proportions between 0 and 1.
Hint
Absolute lift is simply the difference between the two conversion rates.
Test cases
case 1
in: [0.1,0.12]
expected: 0.01999999999999999
case 2
in: [0.5,0.4]
expected: -0.09999999999999998
case 3
in: [0,0.05]
expected: 0.05
case 4
in: [0.25,0.25]
expected: 0
Starter codePython
def experiment_lift(control_rate, treatment_rate):
# Your code here
pass4 test cases · run your code against them in the editor