The sample size calculator doesn’t take audience targeting into account. If
you are targeting a subset of the population, then the variance of the metrics
might be different for different subsets of the population. Some subsets might
have larger variance, which increases the required number of users to power a
certain MDE/NIM, while others might have
smaller variances which could then decrease the required sample size for a
certain MDE/NIM.
Sample Size for New Metrics
When calculating the required sample size for an experiment, Confidence looks at historical data for the metrics in the experiment. There needs to be at least 14 days (plus the aggregation window and exposure offsets) of historical data for the metric in order for Confidence to be able to calculate the required sample size. For example, if you have an experiment with a metric that has a 7-day aggregation window and a 7-day exposure offset, you need at least 28 days of historical data. If there is not enough historical data, Confidence can’t calculate the required sample size.Exposure Source
The required sample size calculation consists of three parts:- Obtaining an exposure source
- Using the exposure source to calculate the mean and variance of the metrics
- Calculating the required sample size for each metric based on the mean and variance
- Past assignments: Use all existing assignments available in your assignment table, or filter these on assignments from specific flags to only include a cohort of users similar to those in your upcoming experiment.
- Previous experiments: Use exposure from previous experiments as an exposure source.

