Computing Minimum Sample Size for A/B Tests in Statsmodels - How and Why

A deep-dive into how and why Statsmodels uses numerical optimization instead of closed-form formulas.