Re: Simple confidence interval



Suppose I have some process with an unknown, but
presumably random,
binary outcome (0 or 1). Every time I run a trial it
either succeeds
or fails.

Say I run 10 trials and I get 7 successes. I believe
.7 is the bnest
estimate of the actual probability of a success.

Is there a way to calculate a probability range (such
as .62-.74) that
I can say has a 90% (or 95%) probability of
containing the true
probability?

Can someone help me with the formula (or the method
and I'll look up
the formula) to calculate that range given:

1. The number of trials (10 in my example),
2. The number of successes (7 in my example), and
3. The "confidence level", if that's the right term
(.9 in my
example)?

Thanks for any help.

--



You can obtain confidence intervals for the binomial parameter by using the relationship between the binomial distribution and the beta distribution and the relationship between the beta distribution and the F distribution.

Let x be the observed number of successes, n be the number of trials, and 1-alpha be the confidence level.

The 1-alpha level confidence interval for p is (pL,pU), where

pL = x/[x+(n-x+1)*F(1-alpha/2; 2(n-x+1),2x)]
pU = (x+1)/[x+1+(n-1)*F(alpha/2; 2(n-x),2(x+1)]

If x=0, then pL = 0.
If x = n, then pU = 1.

Jack
.



Relevant Pages

  • Re: Martingale in the field
    ... The chances of getting *any* specific fair coin flipping ... rolls, just much less likely than ALL the other sets of rolls put ... This same principle can be illustrated by examining the probability ... Probability of exactly 0 successes in 10 trials is 0.000976562 ...
    (rec.gambling.craps)
  • Re: Multiplicative Chernoff bound
    ... and the average number of failures and successes m per sample. ... the chernoff bound to find e such that with probability c, ... relative error of my estimation m of p is as small as I want (with ... and the confidence intervals from this will be asymptotically ...
    (sci.stat.math)
  • Re: The Consise Cantor Disproof
    ... > confidence level of having being randomly generated. ... same probability distribution, AND 3) that each event has ... you suck even worse at statistics than ...
    (sci.logic)
  • Re: please check my homework
    ... > /* return the probability of x successes in n events, ... > given the probability p for success in a single event, ... In the above comment you should specify that n must be a positive integer, ...
    (comp.programming)
  • Shotgun statistics
    ... I've been thinking about the problem of using a confidence level of ... of null and alternate hypotheses that can be investigated (e.g. the ... astrobank dataset used for investigating astrology). ... then the probability ...
    (sci.stat.math)