Forums

Exchange Games

There is currently 1 person viewing this thread.
--------{----(@)
19 Apr 10 10:09
Joined:
Date Joined: 17 Jun 09
| Topic/replies: 5 | Blogger: --------{----(@)'s blog
How do I calculate the probability or 16 consecutive heads occurring when continuously tossing a coin? Is it as simple as 2 to the power of 16, that would mean that if I tossed a coin 65,536 times I could expect to see a run of 16 heads once?

Thanks in advance.

Post your reply

Text Format: Table: Smilies:
Forum does not support HTML
Insert Photo
Cancel
sort by:
Show
per page
Replies: 7
By:
Mr Creosote
When: 19 Apr 10 15:31
Yep.
By:
ror
When: 21 Apr 10 22:22
Yes to the first part, no to the second.
By:
ror
When: 21 Apr 10 22:37
http://mathworld.wolfram.com/Run.html

That page has the mathematical details.

Unless I've miscalculated, the expected number of runs length 16 or greater is 0.5

Also, the "longest expected run" of heads in 65536 flips is 15.

This is from formulae 14 and 15 on that page.
By:
--------{----(@)
When: 21 Apr 10 23:29
Thanks for replying, I looked at that page and now my brain hurts. It raised another question though, I used the run of heads just to make it easier. I was under the impression that 16 heads have the same expectation as any other sequence.

So, in other words, if I picked a random sequence of 16 heads and tails and then continuously flipped a coin, I could expect to see that sequence once in 65536 flips but for some reason there is less chance of 16 heads?

Thanks again.
By:
ror
When: 23 Apr 10 00:11
It's subtle but there is a difference between different sequences when looking at sub-sequences. It's counter-intuitive (and makes my head hurt too) but I think it's true. I'll try to do some examples to convince myself of that fact.

E.g. if we toss a coin 4 times, all possible (and equally likely) results are:

HHHH
HHHT
HHTH
HHTT
HTHH
HTHT
HTTH
HTTT
THHH
THHT
THTH
THTT
TTHH
TTHT
TTTH
TTTT

Now if we look for the subsequence HT, that's in 11 of the 16 and appears 12 times total. If we look for HH, that's only in 8 of the 11. (but still appearing 12 times in total if we could HHHH as 3 times)
By:
--------{----(@)
When: 23 Apr 10 01:43
Yeah, Ive got it and its answered another question, I think.

As I see it, the reason for this is because the coin is being continually flipped. If it was only flipped 16 times then every sequence has the same chance of occurring because there would be no sub sequences?

Thanks for your help.
By:
JohnM
When: 23 Apr 10 16:14
Both Winning and Losing runs can be calculated in terms of reasonable probability.

In this case (Heads and Tails odds = 2 over 65535 flips) the result is:

Winning runs could be: 16
Losing runs could be: 16

I made a calculator ages ago for working this out.
see the output here:

http://www.xpokerbot.co.uk/tools/2@65536.jpg
sort by:
Show
per page

Post your reply

Text Format: Table: Smilies:
Forum does not support HTML
Insert Photo
Cancel
‹ back to topics
www.betfair.com