<s> """<STR_LIT>""" <EOL> import sys <EOL> from math import sqrt <EOL> treatment_successes = float ( sys . argv [ <NUM_LIT:1> ] ) <EOL> treatment_failures = float ( sys . argv [ <NUM_LIT:2> ] ) <EOL> baseline_successes = float ( sys . argv [ <NUM_LIT:3> ] ) <EOL> baseline_failures = float ( sys . argv [ <NUM_LIT:4> ] ) <EOL> n_treatment = treatment_successes + treatment_failures <EOL> n_baseline = baseline_successes + baseline_failures <EOL> p_treatment = treatment_successes / n_treatment <EOL> p_baseline = baseline_successes / n_baseline <EOL> p_hat = ( treatment_successes + baseline_successes ) / ( n_treatment + n_baseline ) <EOL> print abs ( ( p_treatment - p_baseline ) / sqrt ( p_hat * ( <NUM_LIT:1> - p_hat ) * ( <NUM_LIT:1.0> / n_baseline + <NUM_LIT:1.0> / n_treatment ) ) ) </s>
