覲給 A 300覈 譴 100覈 手 襾轟螻, B 400覈 譴 170覈 手 襾轟. 觜 螳?
import numpy as np
from statsmodels.stats.proportion import proportions_ztest
count = np.array([100, 170])
nobs = np.array([300, 400])
z, p = proportions_ztest(count=count, nobs=nobs, value=0)
print(z)
print(p)