You
Someone told me that to be 99% sure about something with 95% confidence with a binomial distribution, you need to do 300 trials and all should be successes.
9/29/2025, 4:05:16 AM
Public conversation · 10/8/2025, 4:40:17 AM
Started by kylecoelho97
You
Someone told me that to be 99% sure about something with 95% confidence with a binomial distribution, you need to do 300 trials and all should be successes.
9/29/2025, 4:05:16 AM
Branching Minds
What that person told you is a rule of thumb, but let’s check the math carefully.
You want to estimate the probability of success in a Bernoulli/binomial process. You run trials and observe successes. Here, they are saying:
For binomial confidence intervals, when , the lower bound of the 95% confidence interval is given by:
where for 95% confidence.
So with :
Numerically:
So the 95% confidence interval is about:
0.9901, , 1.0
✅ The statement is basically correct.
If you had fewer trials (say 200), the lower bound would fall below 0.99. If you had more, the bound would be tighter.
Do you want me to also show you a general formula or Python snippet you can use to compute the minimum required for arbitrary thresholds (like 99.9% at 99% confidence)?
9/29/2025, 4:05:16 AM
You
What about 100 trials
9/29/2025, 4:05:50 AM
Branching Minds
Let’s run the same calculation for and all 100 are successes.
with for 95% confidence.
So:
With 100 successes in 100 trials, the 95% CI for is:
0.9705, , 1.0
👉 So 100 trials, all successes, does not meet the “99% sure with 95% confidence” requirement. You need more trials — about 300, as you were told.
Want me to compute the exact minimum you’d need for the 99% lower bound at 95% confidence?
9/29/2025, 4:05:51 AM
You
Original custom instructions no longer available
10/8/2025, 4:53:15 AM
You
Is there a more sample efficient way of doing this?
10/8/2025, 5:34:13 AM
Branching Minds
There are more sample-efficient methods for estimating a proportion with a specified level of confidence. One common approach is using Wilson score interval or Agresti-Coull interval, which can provide narrower intervals compared to the Clopper-Pearson interval. These methods are quite popular in practice for their balance between accuracy and efficiency.
Would you like to delve deeper into how these methods work and how they can be applied in your scenario?
10/8/2025, 5:34:15 AM
No comments yet.