Standard Error
The standard error (sometimes denoted "SE" or "std err") of the mean of each group is required for computing the confidence interval and p-value of a metric delta between those groups. The standard error of the mean can be obtained by dividing the sample standard deviation of by the square root of the number of users in the group.
Note that standard deviation is the square root of the variance. Since variances are easier to manipulate algebraically, here we derive the variance for each metric type and then take the square root to obtain the confidence intervals.
Pulse displays the standard error of the mean of each group alongside the units and mean of each group.
Computing Variance
The variance of the absolute metric delta is simply the sum of the variances of the test and control means:
In other words, it comes down to correctly calculating the variance of the means for each group.
Count and Sum Metrics
For count and sum metrics, the variance of the sample mean for a given group is obtained directly from the sample variance:
Where:
- is the number of users in the group
- is the metric value for user
- is the user-level average of for users in that group
Ratio and Mean Metrics
Some metrics like ratio and mean metrics combines multiple variables and instead of a single variable . The variance of these metrics depends upon both the numerator and denominator variables, which are typically correlated. We'll call the metric of interest and we can compute the group mean and group variance of the mean ).
For example, consider a clicks per session metric. The number of clicks and the number of sessions are two sets of observations coming from the same group of users, so they are not independent from each other.
To properly account for any correlation, the variance of the mean of a ratio metric is obtained using the delta method:
where the variance of the numerator and denominator means are computed in the same way as detailed above for count metrics, and the covariance is