A/B test duration estimator
estimate_test_durationHow many days an A/B test must run: from a known sample size per variant, or from baseline rate and MDE (computed as in calculate_sample_size), plus daily visitors and the share of traffic in the test. Returns exact days and the recommended whole weeks (to cover weekday effects).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mde | No | Minimum detectable effect (relative by default). | |
| alpha | No | Significance level, default 0.05. | |
| power | No | ||
| mde_type | No | relative | |
| variants | No | Number of arms including control. | |
| baseline_rate | No | Control conversion rate, for computing the sample size. | |
| traffic_share | No | Fraction of those visitors entered into the test, default 1. | |
| daily_visitors | Yes | Eligible visitors per day across the whole site or page. | |
| sample_size_per_variant | No | Known users per arm. If omitted, give baseline_rate and mde. |