Jonathan212
- 198
- 4
Alright but such a combinatorial explosion was not expected.
The discussion revolves around calculating the probability of obtaining more than 600 tails in 1000 coin flips. Participants explore various mathematical approaches, including the binomial distribution and its normal approximation, while addressing computational challenges and statistical significance.
Participants do not reach a consensus on the best method for calculating the probabilities, and there are multiple competing views regarding the reliability of the normal approximation versus the binomial distribution. The discussion remains unresolved with ongoing questions about the accuracy of different approaches.
Participants note limitations in computational tools like Excel when handling large values, and there are unresolved questions about the accuracy of normal approximations compared to binomial calculations, particularly for high values of N.
This discussion may be useful for those interested in probability theory, statistical analysis, and computational methods for assessing random processes, particularly in the context of coin flipping experiments.
Jonathan212 said:The way to assess the statistical significance of a true random number generator's observed bias. Got the answer in Excel
Jonathan212 said:Got the answer in Excel, it is as BvU says. Only thing is, the result is a bit suspicious for high N: probability of 600 OR MORE heads in 1000 throws is 1 in 19 billion.
Jonathan212 said:Look at some more numbers. All at 60% heads or more:
Probability of 15 or more heads in 25 throws = 1 in 4.7
Probability of 60 or more heads in 100 throws = 1 in 35
Probability of 150 or more heads in 250 throws = 1 in 1,062
Probability of 240 or more heads in 400 throws = 1 in 27,000
Probability of 300 or more heads in 500 throws = 1 in 220,000
Probability of 360 or more heads in 600 throws = 1 in 1,800,000
Probability of 480 or more heads in 800 throws = 1 in 1,200,000,000
Jonathan212 said:Does the integral of the standard distribution have an analytical solution by any chance? If not, how do you know what interval to use to the 2 significant figures in the probability
Jonathan212 said:Indeed Excel's cumulative binomial runs out of steam at N = 1029, it fails above that value. But so does Excel's normal distribution at N = 1555 (the cumulative option).
Jonathan212 said:Btw the source of my true random data is not Excel but /dev/random or "haveged".
from scipy.stats import norm
print(1-norm.cdf(4.47))
print(1-norm.cdf(6.32))
StoneTemplePython said:if you want to get the numerical values of the Gaussian integral, can't you just use a built-in excel function?

Jonathan212 said:At N = 1000 it still has a 6.5% error relative to the binomial.![]()
It isn't.slappmunkey said:That's the same question just reworded as "if I flip a coin 10 times and 9 times it's heads, what's the odds it will land tails on the 10th flip?"
mfb said:The question is about seeing (at least) 600 tails in total, not about the probability of a specific flip out of the 1000.It isn't.
slappmunkey said:It is. Each individual flip is a 50% chance to land either way, that means it's a 50/50% chance no matter how many flips you do.