3
$\begingroup$

What is 95% confidence interval for the fraction of 5 successes out of 12 trials?

Is it possible to compute confidence intervals for a sample of this size?

$\endgroup$
  • $\begingroup$ There's a fairly good introduction here $\endgroup$ – Glen_b Oct 15 '13 at 22:17
8
$\begingroup$

It is certainly possible to do this. There are several methods. The literature is surprisingly large; for a good entry point see Agresti & Coull (1998)

If you are using R you can use this:

install.packages("binom")
library(binom)
binom.confint(5, 12)
| cite | improve this answer | |
$\endgroup$
3
$\begingroup$

Without the binom package, just run the following to get the 95% confidence interval using the "exact" method (Clopper-Pearson method)

binom.test(x = 5, n = 12)$conf.int 
# same as binom::binom.confint(x = 5, n = 12, methods = "exact")
| cite | improve this answer | |
$\endgroup$
  • $\begingroup$ Of course, if you prefer a more commonly used (and more frequently updated) R package Hmisc, just run binconf(5, 12, method = "all") $\endgroup$ – dwstu Dec 27 '13 at 15:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.