25/25
Part 5 of 5 · Follow-upsCheck yourself
Check yourself
5 questions
  1. 1.The pre-period metric has a correlation of 0.8 with the test-period metric. With CUPED, about what share of the original sample size does the test need for the same power?

  2. 2.On the practice data your adjusted metric comes out with 2.65 times the raw variance, while its mean and θ are both right. What did you write?

  3. 3.In a simulation, x is each user's sessions over the two weeks before the test and y their sessions in the test's one week, so var(x) is about 3 times var(y). You compute theta as cov(x, y) / var(y). What happens?

  4. 4.You compute theta = np.cov(x, y)[0, 1] / np.var(x) on the practice data's 1,000 users. Which test fails, and why?

  5. 5.Your function returns y - theta * x, with no centering, and you call it once on both arms. Which number is still right?

Now the problem this lesson builds to: 09 CUPED: cut the variance of an experiment metric (NumPy)Practice it