Ratio Metric (Z=X/Y) Sample Size Calculator


Objective: This tab is used for calculating the minimum sample size needed to conduct an A/B test with a ratio metric. A ratio metric is defined by a ratio (Z=X/Y) of two random variables X and Y, where X and Y are not independent and are obtained from the same randomized unit of experiment.

To measure the treatment effect of a ratio metric, compare the means of the ratio (X/Y) random variable between a control group and a treatment group.

Example: A common ratio metric is the amount of the tip over the total amount of the order: X ($ tips)/Y ($ total order).

Note: A ratio metric is from two random variables, while binary and continuous metrics are each defined by only one random variable.

For more instruction, please visit our "User Manual"

Highlighted Features








Input parameter Output
Minimum sample size for control group
Minimum sample size for each treatment group
Total required sample size of control and treatment (If we have more than 2 groups, this number is sum of control and only one treatment that is used to measure the MDE.)
Lift (the difference between two groups over the control)
MDE (the expected difference between treatment group and control group)
Cohen’s Distance (the effect size used to indicate the standardized difference between treatment group mean and control group mean)