<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: What are the odds of 5 or more heads or tails in a row out of 20 coin tosses?</title>
	<atom:link href="http://www.24gambling.net/casino/what-are-the-odds-of-5-or-more-heads-or-tails-in-a-row-out-of-20-coin-tosses-10241/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.24gambling.net/casino/what-are-the-odds-of-5-or-more-heads-or-tails-in-a-row-out-of-20-coin-tosses-10241/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 01 Apr 2011 22:58:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2-RC1</generator>
	<item>
		<title>By: ☮ Vašek</title>
		<link>http://www.24gambling.net/casino/what-are-the-odds-of-5-or-more-heads-or-tails-in-a-row-out-of-20-coin-tosses-10241/comment-page-1/#comment-18984</link>
		<dc:creator>☮ Vašek</dc:creator>
		<pubDate>Tue, 18 May 2010 22:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.24gambling.net/what-are-the-odds-of-5-or-more-heads-or-tails-in-a-row-out-of-20-coin-tosses#comment-18984</guid>
		<description>I got 480670 / 2^20, or 45.84%.

Let a(k,n) denote the number of possibilities of getting a streak of k or more in n tosses. For k&gt;n, let a(k,n) be trivially zero.

Let n ≥ k.
The streak can begin at the very first toss, which generates 2*2^(n-k) positive cases.
If the streak does not begin at the first toss, it means that the first run is shorter than k equal tosses. In other words, the result was the same for l&lt;k tosses and then changed. The rest behaves exactly as the definition of a(k, n-l) goes: for each positive case of the couple (k, n-l), we can fill the appropriate &quot;history&quot; only one way. So we just sum a(k, n-l) for 1 ≤ l &lt; k.

This gives a recurrence relation:
a(k, n) = 2*2^(n-k) + Σ [l=1 to k-1] a(k, n-l),
which can be solved in closed form only for a few small k&#039;s; for k&gt;5, it presumably leads to insolvable polynomials (of degree ≥ 5). This also excludes finding a closed form for all a(k, n) unless we are extremely lucky to get a sequence of exceptional cases of solvable polynomials. For k=5, it is possible to express a(5, n) analytically but it would take quite some time, so I will calculate the terms explicitly.
a(5, 1) = a(5, 2) = a(5, 3) = a(5, 4) = 0
a(5, 5) = 2*2^0 + 0 + 0 + 0 + 0 = 2
a(5, 6) = 2*2^1 + 2 + 0 + 0 + 0 = 4 + 2 = 6
a(5, 7) = 2*2^2 + 6 + 2 + 0 + 0 = 8 + 6 + 2 = 16
a(5, 8) = 2*2^3 + 16 + 6 + 2 + 0 = 16 + 16 + 6 + 2 = 40
a(5, 9) = ... = 96
a(5, 10) = ... = 222 &lt;== We can check with your result cited above
a(5, 11) = 502
...
a(5, 19) = 229664
a(5, 20) = 480670 &lt;== For 20 tosses.

The probability = number of positive cases / number of all cases = a(5, 20) / 2^20 = 480670 / 1048576 = 45.84%.</description>
		<content:encoded><![CDATA[<p>I got 480670 / 2^20, or 45.84%.</p>
<p>Let a(k,n) denote the number of possibilities of getting a streak of k or more in n tosses. For k>n, let a(k,n) be trivially zero.</p>
<p>Let n ≥ k.<br />
The streak can begin at the very first toss, which generates 2*2^(n-k) positive cases.<br />
If the streak does not begin at the first toss, it means that the first run is shorter than k equal tosses. In other words, the result was the same for l<k tosses and then changed. The rest behaves exactly as the definition of a(k, n-l) goes: for each positive case of the couple (k, n-l), we can fill the appropriate "history" only one way. So we just sum a(k, n-l) for 1 ≤ l < k.</p>
<p>This gives a recurrence relation:<br />
a(k, n) = 2*2^(n-k) + Σ [l=1 to k-1] a(k, n-l),<br />
which can be solved in closed form only for a few small k's; for k>5, it presumably leads to insolvable polynomials (of degree ≥ 5). This also excludes finding a closed form for all a(k, n) unless we are extremely lucky to get a sequence of exceptional cases of solvable polynomials. For k=5, it is possible to express a(5, n) analytically but it would take quite some time, so I will calculate the terms explicitly.<br />
a(5, 1) = a(5, 2) = a(5, 3) = a(5, 4) = 0<br />
a(5, 5) = 2*2^0 + 0 + 0 + 0 + 0 = 2<br />
a(5, 6) = 2*2^1 + 2 + 0 + 0 + 0 = 4 + 2 = 6<br />
a(5, 7) = 2*2^2 + 6 + 2 + 0 + 0 = 8 + 6 + 2 = 16<br />
a(5, <img src='http://www.24gambling.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> = 2*2^3 + 16 + 6 + 2 + 0 = 16 + 16 + 6 + 2 = 40<br />
a(5, 9) = &#8230; = 96<br />
a(5, 10) = &#8230; = 222 <== We can check with your result cited above<br />
a(5, 11) = 502<br />
&#8230;<br />
a(5, 19) = 229664<br />
a(5, 20) = 480670 <== For 20 tosses.</p>
<p>The probability = number of positive cases / number of all cases = a(5, 20) / 2^20 = 480670 / 1048576 = 45.84%.</k></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Website</title>
		<link>http://www.24gambling.net/casino/what-are-the-odds-of-5-or-more-heads-or-tails-in-a-row-out-of-20-coin-tosses-10241/comment-page-1/#comment-18983</link>
		<dc:creator>Website</dc:creator>
		<pubDate>Tue, 18 May 2010 22:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.24gambling.net/what-are-the-odds-of-5-or-more-heads-or-tails-in-a-row-out-of-20-coin-tosses#comment-18983</guid>
		<description>Paco:

I think that an exact solution for 20 can be laboriously determined.  I know that a computer program can easily be written which will check all 2^20 possible flips out will give the exact answer too. (I am tempted to do this)  I did figure out the odds for 20 heads to 11 heads (or tails) and those odds were 110/2^20, but as you can guess the odds for 10 or less heads are different because we can get multiple streaks of these runs occurring.

Because of the amount of time to compute the solutions for 5 to 9 by hand is very timeconsuming, I will give up there for now.  I do know that they can be worked out also by hand.

Okay, this problem got to me, I worked it entirely out by hand

5 heads
 1 streak = 16 cases
 2 streaks = 55 cases
 3 streaks = 20 cases
6 heads
 1 streak = 15 cases
 2 streaks = 36 cases
 3 streaks =  1 case
7 heads
 1 streak = 14 cases
 2 streaks = 21 cases
8 heads
 1 streak = 13 cases
 2 streaks = 10 cases
9 heads
  1 streak = 12 cases
 2 streaks = 3 cases
10 heads
 1 streak = 11 cases
11 heads
  1 steak = 10 cases
12 heads
  1 streak = 9 cases
13 heads
 1 streak = 8 cases
14 heads
 1 streak = 7 cases
15 heads
 1 streak = 6 cases
16 heads
 1 streak = 5 cases
17 heads
 1 steak = 4 cases
18 heads
 1 streak = 3 cases
19 heads
 1 streak = 2 cases
20 heads
 1 streak = 1 cases

Totaling all these
we have for 1 cases
sum of 1..16 = 136
we have for 2 cases
sum of 55 + 36 + 21 + 10 + 3 (which are the summations of 2n for n=1..5) = 125
and for 3 cases
 sum of 20 + 1 = 21

So for heads only we have 136 + 125 + 21 = 282

And we have the same exact cases for tails = 282

So the total odds on the chances of 5 or more heads or tails in a run of 20 tosses is 564/2^20

------------
and after having seen your answer.. and looking at the behavior of the n-cases, I think the pattern is discernable, hence can be worked out as multiple summations.</description>
		<content:encoded><![CDATA[<p>Paco:</p>
<p>I think that an exact solution for 20 can be laboriously determined.  I know that a computer program can easily be written which will check all 2^20 possible flips out will give the exact answer too. (I am tempted to do this)  I did figure out the odds for 20 heads to 11 heads (or tails) and those odds were 110/2^20, but as you can guess the odds for 10 or less heads are different because we can get multiple streaks of these runs occurring.</p>
<p>Because of the amount of time to compute the solutions for 5 to 9 by hand is very timeconsuming, I will give up there for now.  I do know that they can be worked out also by hand.</p>
<p>Okay, this problem got to me, I worked it entirely out by hand</p>
<p>5 heads<br />
 1 streak = 16 cases<br />
 2 streaks = 55 cases<br />
 3 streaks = 20 cases<br />
6 heads<br />
 1 streak = 15 cases<br />
 2 streaks = 36 cases<br />
 3 streaks =  1 case<br />
7 heads<br />
 1 streak = 14 cases<br />
 2 streaks = 21 cases<br />
8 heads<br />
 1 streak = 13 cases<br />
 2 streaks = 10 cases<br />
9 heads<br />
  1 streak = 12 cases<br />
 2 streaks = 3 cases<br />
10 heads<br />
 1 streak = 11 cases<br />
11 heads<br />
  1 steak = 10 cases<br />
12 heads<br />
  1 streak = 9 cases<br />
13 heads<br />
 1 streak = 8 cases<br />
14 heads<br />
 1 streak = 7 cases<br />
15 heads<br />
 1 streak = 6 cases<br />
16 heads<br />
 1 streak = 5 cases<br />
17 heads<br />
 1 steak = 4 cases<br />
18 heads<br />
 1 streak = 3 cases<br />
19 heads<br />
 1 streak = 2 cases<br />
20 heads<br />
 1 streak = 1 cases</p>
<p>Totaling all these<br />
we have for 1 cases<br />
sum of 1..16 = 136<br />
we have for 2 cases<br />
sum of 55 + 36 + 21 + 10 + 3 (which are the summations of 2n for n=1..5) = 125<br />
and for 3 cases<br />
 sum of 20 + 1 = 21</p>
<p>So for heads only we have 136 + 125 + 21 = 282</p>
<p>And we have the same exact cases for tails = 282</p>
<p>So the total odds on the chances of 5 or more heads or tails in a run of 20 tosses is 564/2^20</p>
<p>&#8212;&#8212;&#8212;&#8212;<br />
and after having seen your answer.. and looking at the behavior of the n-cases, I think the pattern is discernable, hence can be worked out as multiple summations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravindra P</title>
		<link>http://www.24gambling.net/casino/what-are-the-odds-of-5-or-more-heads-or-tails-in-a-row-out-of-20-coin-tosses-10241/comment-page-1/#comment-18982</link>
		<dc:creator>Ravindra P</dc:creator>
		<pubDate>Tue, 18 May 2010 21:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.24gambling.net/what-are-the-odds-of-5-or-more-heads-or-tails-in-a-row-out-of-20-coin-tosses#comment-18982</guid>
		<description>5 H in a row = 1/2^5; 6 H in a row = 1/2^6; ... 20 H in a row = 1/2^20.
 =&gt; P(5 or more in a row) = 1/2^5*(1 + 1/2 + 1/2^2 + ... + 1/2^15)
 = (1/2^5)*([1 - 1/2^15]/[1 - 1/2]) = (1/16)(32767/32768)
 = 32767/524288.</description>
		<content:encoded><![CDATA[<p>5 H in a row = 1/2^5; 6 H in a row = 1/2^6; &#8230; 20 H in a row = 1/2^20.<br />
 => P(5 or more in a row) = 1/2^5*(1 + 1/2 + 1/2^2 + &#8230; + 1/2^15)<br />
 = (1/2^5)*([1 - 1/2^15]/[1 - 1/2]) = (1/16)(32767/32768)<br />
 = 32767/524288.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DDs wife</title>
		<link>http://www.24gambling.net/casino/what-are-the-odds-of-5-or-more-heads-or-tails-in-a-row-out-of-20-coin-tosses-10241/comment-page-1/#comment-18981</link>
		<dc:creator>DDs wife</dc:creator>
		<pubDate>Tue, 18 May 2010 20:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.24gambling.net/what-are-the-odds-of-5-or-more-heads-or-tails-in-a-row-out-of-20-coin-tosses#comment-18981</guid>
		<description>What if you consider the probability of series like HTHHT...T, so that there are no more than 4 in a row and then you substract it from 1?

Maybe it&#039;s easy that way...  I will think about your problem but maybe this suggestion helps.

Ana</description>
		<content:encoded><![CDATA[<p>What if you consider the probability of series like HTHHT&#8230;T, so that there are no more than 4 in a row and then you substract it from 1?</p>
<p>Maybe it&#8217;s easy that way&#8230;  I will think about your problem but maybe this suggestion helps.</p>
<p>Ana</p>
]]></content:encoded>
	</item>
</channel>
</rss>

