Implement analyze_ab_test(control_outcomes, treatment_outcomes, confidence_level=0.95, min_detectable_effect=0.02) on 0/1 outcomes. Return {} if either list is empty, else a dict with exactly these keys (round rates, lifts, , and CI bounds to 4 decimals, relative_lift_pct to 2):
control_rate , treatment_rate : success proportions; group sizes , absolute_lift: relative_lift_pct: ; the string 'inf' if ; 0.0 if both rates are 0z_statistic: pooled two-proportion , the pooled success rate; 0.0 if the denominator is 0p_value: two-tailed, with the standard normal CDFconfidence_interval: tuple with , confidence_level, statistically_significant: bool, practically_significant: bool, min_detectable_effectrequired_sample_size: int, with (80% power); 0 if MDE or recommendation: 'launch_treatment' if statistically and practically significant and ; 'keep_control' if statistically significant and ( or not practically significant); else 'continue_testing' (sample size is irrelevant).