Solved – How many trials are needed to determine the probability of an outcome

mathematical-statistics

Say I have a coin, how many flips would I need to do and record to determine that results of said flips are accurate, that there is indeed a 50% chance to land on heads or tails? 100, 1000, 10000?

How do I extend this to a dice roll with n number of sides. how many rolls would I need to determine that there is indeed a 10% chance to land on the number 7 on a 10 sided die? 100, 1000, 10000?

Is there a formula for determining how many trials I must conduct to decided the probability of an outcome with a 95% or 99% confidence level?

Best Answer

No finite number of trials is sufficient to determine that the probability of getting a head (say) is exactly $\frac12$.

Consider the difference between P(head) = $\frac12$ and P(head) = $\frac12+\varepsilon$. For every finite $n$, there's a value for $\varepsilon>0$ which is so close to $0$ that you will find the two probabilities very difficult to distinguish with $n$ trials.

So unless you specify a value for $\varepsilon$ that you regard $\frac12+\varepsilon$ as "close enough to 50%", there's no value of $n$ that will do.

A 95% interval for P(head) will have a "margin of error" (have interval half-width) of $\frac{1}{\sqrt{n}}$.

The ideas work similarly for dice, or any other similar situation (but the numbers differ).

Is there a formula for determining how many trials I must conduct to decided the probability of an outcome with a 95% or 99% confidence level?

You need to give more information to pin down a sample size.
If you specify both an interval-width (or specify a margin of error, the half-width) and coverage probability for a confidence interval (such as "I want a 95% CI for P(head) to be no wider than 0.01" for example), then you can get a sample size from that.

Related Question