I have a formula to get 5 consecutive heads or tails from a repetitive coin flip that says the expected number of flips to see 5 heads in a row is 62.
2(2power5-1)=62
To get 30 heads or tails in a row this gives me
2(2power30-1)=2147483646
Is this correct, that's over 2 billion flips before expecting to see a run like this, seems far too high.
Would be most grateful if someone could answer this query and also provide a formula from 5000 flips which tells me the probability of seeing this run of 30 consecutive heads or tails.
Many Thanks in advance
2(2power5-1)=62
To get 30 heads or tails in a row this gives me
2(2power30-1)=2147483646
Is this correct, that's over 2 billion flips before expecting to see a run like this, seems far too high.
Would be most grateful if someone could answer this query and also provide a formula from 5000 flips which tells me the probability of seeing this run of 30 consecutive heads or tails.
Many Thanks in advance