Documentation Index
Fetch the complete documentation index at: https://docs.kaireonai.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/v1/experiments/power-calculator
Calculates the required sample size and estimated experiment duration for an A/B test. Uses a two-proportion z-test formula with traffic estimates derived from the tenant’s recent interaction history.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
baselineConversionRate | number | Yes | Current conversion rate (0.001-1.0) |
minimumDetectableEffect | number | Yes | Smallest effect size to detect (0.001-1.0) |
significanceLevel | number | No | Alpha level for the test (0.01-0.20, default: 0.05) |
power | number | No | Statistical power (0.5-0.99, default: 0.8) |
trafficSplit | number | No | Proportion of traffic in the treatment group (0.1-0.9, default: 0.5) |
Example
Response
Response Fields
| Field | Type | Description |
|---|---|---|
requiredSampleSize | integer | Total sample size needed across both variants |
perVariant | integer | Sample size per variant |
estimatedDuration.days | integer or null | Estimated days to reach the required sample size |
estimatedDuration.basedOnDailyTraffic | integer | Average daily decisions from the last 14 days |
recommendation | string | Human-readable guidance |
sensitivityTable | array | Sample sizes for different effect sizes |