Quote:
Originally Posted by peach34
So if the probability of having 10 heads in a raw out of 1000 tosses is 38. 545%...
Does it mean that if we are tossing infinite number of times, we will have (on average) one streak of 10 heads in a raw every approx 2594 tosses?
No, every 2048 tosses on average we will have a sequence of
at least 10 heads in a row. This counts sequences longer than 10 heads as a single sequence. A sequence of at least 10 heads will occur on average 1 time in every 2
10 = 1024 TRIALS, but the average trial is 2 tosses long, so it happens on average every 2048 tosses.
Why is the average trial 2 tosses long? Because it is always at least 1 toss long, half of the time it is at least 2 tosses long, 1/4 of the time it is at least 3 tosses long, etc., so the average length is
1 + 1/2 + 1/4 + 1/8 + ... = 2 tosses.
Now suppose we want to count sequences of 20 heads as 2 sequences of 10, 30 heads as 3 sequences, etc. This seems more reasonable, but it won't make much difference because these long sequences are so rare. Now a trial will terminate after 10 heads in a row, and a new trial will begin, so no sequence can be longer than 10 tosses, whereas before a trial could be any length. The probability of 10 heads in a row is still 1 in 1024 trials; however, now the average length of a trial will terminate after 9 terms instead of an infinite number of terms:
1 + 1/2 + 1/4 + 1/8 + 1/16 + 1/32 + 1/64 + 1/128 + 1/256 + 1/512
= 1023/512
The last term says that 1/512 of the time, there will be at least 9 heads in a row, so there will be 10 tosses. After that, the trial ends, so the 10th toss doesn't affect the length. So on average we will have a sequence of 10 heads in a row every 1024 trials times an average 1023/512 tosses per trial = 2046 tosses. Not much difference from the other case of 2048 tosses.