Stats
interval = z * sqrt( (accuracy * (1 - accuracy)) / n)Alternative approach
from statsmodels.stats.proportion import proportion_confint
lower, upper = proportion_confint(88, 100, 0.05)
print('lower=%.3f, upper=%.3f' % (lower, upper))Last updated