Mean or Binomial Metric
We use the notation below. We describe our approach in terms of revenue, but any Mean or Binomial metric can be substituted.- Define as the observed post-exposure revenue for a user exposed to control (treatment).
- Define as the observed pre-exposure revenue for a user exposed to control (treatment).
- Define () as the post-exposure (pre-exposure) revenue for all users collectively in the experiment.
- Define as the sample average post-exposure revenue for users exposed to control (treatment).
- Define as the population average post-exposure revenue for users exposed to control (treatment).
- Define as the number of users exposed to control (treatment).
Mean or Binomial Metric, Absolute case
For absolute inference, our target parameter is As described in Equation 4 of (Deng et al. 2013), we find the optimal using user data across both control and treatment: Our estimate of is the difference in adjusted means Under a superpopulation framework and independence of random assignment, the adjusted means and are statistically independent.Therefore, the variance of the difference in adjusted means is the sum of the variances of the adjusted means.
We denote these variances as and , respectively, and they are defined as Define the control (treatment) population covariance between post-exposure and pre-exposure revenue as (). Our estimated variance of is . Formulae for variances of the statistics can be found in our sections on proportion metrics and mean metrics. When estimating the covariance between two binomial variables and , we use the following formula: For mean metrics, we use the usual covariance formula:
Mean or Binomial Metric, Relative case
For relative inference (i.e., estimating lift), the parameter of interest is Our estimate of is the difference in adjusted means divided by the control mean: To derive , the estimated variance of , we use the delta method.- Define the control (treatment) population post-exposure variance as ().
- Define the control (treatment) population pre-exposure variance as ().
- Define the covariance of the sample control means .
- Define the covariance of the sample treatment means .
- Define the vector of population means
- Define their sample counterparts as
- Define where is a matrix of zeros.
Define the function Define the vector of partial derivatives as , where the individual elements are By the delta method, . Decompose into Then the final variance where in the last step we move away from notation and use sample mean notation. For estimating uncertainty in production, we use which leverages the fact that the pre-exposure revenue population means are equal due to randomization.
Ratio Metric
Throughout define the element of vector as .Below we define parameters.
- Under control, define the numerator (denominator) post-exposure population mean as ().
- Under treatment, define the numerator (denominator) post-exposure population mean as ().
- Under control, define the numerator (denominator) pre-exposure population mean as ().
- Under treatment, define the numerator (denominator) pre-exposure population mean as ().
Ratio Metric, Absolute case
For ratio metrics the absolute parameter of interest is Below we define statistics.- Under control, define the numerator (denominator) post-exposure sample mean as ().
- Under treatment, define the numerator (denominator) post-exposure sample mean as ().
- Under control, define the numerator (denominator) pre-exposure sample mean as ().
- Under treatment, define the numerator (denominator) pre-exposure sample mean as ().
- .
- .

