Jason Jia

AI

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 Jason Jia · Follow Published in Towards Data Science · 10 min read · 2 hours ago — Image generated by DALL-E Introduction There is currently no good resource on how Statsmodels computes the minimum sample size. It is critical to calculate the minimum sample size required before conducting an A/B test. A popular way to do it is by calling

Read More »