A binomial A/B experiment is simulated via
Monte Carlo on n
observations per group.
Control ∼ Bernoulli(\(p_C + \text{bias}\))
Treatment ∼ Bernoulli(\(p_C + \Delta\))
\(\widehat{\Delta} \pm z_{1-\alpha/2}\,\text{SE}\), with \(z\) corresponding to 90 %, 95 % or 99 % coverage.
\(z=\dfrac{\hat{p}_T-\hat{p}_C}{\sqrt{\hat{p}(1-\hat{p})\,2/n}}\), where \(\hat{p}=(\hat{p}_C+\hat{p}_T)/2\). The p-value, significance (α = 0.05), final rates and successes are reported.
Visualisations
These views allow you to explore power, type I error, biases, and the speed at which evidence accumulates in a classic A/B test.
Control
0
↔
Treatment
0