I am comparing two diff treatments:
H0: p_t1 = p_t2
Ha: p_t1 ≠ p_t2
Treatment 1: 47030 trials, 5390 worked Treatment 2: 340 trials, 11 worked
from scipy import stats
import numpy as np
trials = np.array([[47030, 5390], [340, 11]])
stats.chi2_contingency(trials)
p-value from above is close to zero so null hyp is rejected. What changes I need to do in my approach to say one treatment is better than other? here I have only tested that they aren't equally effective.....any leads?