Statistical Power of an A/B Test

medium
Unit 16 · A/B Testing0/2 to milestone

Power is the chance a test detects a real effect. For a two-sided two-proportion z-test with n users per arm, baseline rate p1p_1 and treatment rate p2p_2:

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Statistical Power of an A/B Test · TechGradify