A/B Test: Two-Proportion Z-Test

medium
Unit 11 · Pandas IV0/3 to milestone

Implement ab_test(conv_a, n_a, conv_b, n_b) returning a dict with:

  • "lift": relative lift of B over A, (pB−pA)/pA(p_B - p_A)/p_A
  • "z": the pooled two-proportion z statistic
  • "p_value": the two-sided p-value
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
A/B Test: Two-Proportion Z-Test · TechGradify