confidence interval for a binomial proportion
Parameters : | count : int or array
nobs : int
alpha : float in (0, 1)
method : string in [‘normal’]
|
---|---|
Returns : | ci_low, ci_upp : float
|
Notes
Beta, the Clopper-Pearson interval has coverage at least 1-alpha, but is in general conservative. Most of the other methods have average coverage equal to 1-alpha, but will have smaller coverage in some cases.
Method “binom_test” directly inverts the binomial test in scipy.stats. which has discrete steps.
References
http://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval