chi-squared test
import scipy.stats
obs = np.array([[a, b],
[c, d]])
_, p, _, _ = scipy.stats.chi2_contingency(obs)
plt.savefig("clarity.png", dpi=240, bbox_inches="tight", facecolor="white")
with plt.style.context('seaborn'):
# plotting code here...
# or just globally:
plt.style.use('seaborn')
import matplotlib.ticker
plt.gca().yaxis.set_major_formatter(matplotlib.ticker.PercentFormatter(decimals=0))
plt.gca().xaxis.set_major_formatter(matplotlib.ticker.PercentFormatter(decimals=0))
Evan's simple sample size tool: https://www.evanmiller.org/ab-testing/sample-size.html