<?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: Monte Carlo simulation of the Monty Hall Problem in Ruby and Python</title>
	<atom:link href="http://programmingzen.com/2009/01/01/monte-carlo-simulation-of-the-monty-hall-problem-in-ruby-and-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://programmingzen.com/2009/01/01/monte-carlo-simulation-of-the-monty-hall-problem-in-ruby-and-python/</link>
	<description>Meditations on programming, startups, and technology</description>
	<lastBuildDate>Wed, 01 Feb 2012 10:09:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Al</title>
		<link>http://programmingzen.com/2009/01/01/monte-carlo-simulation-of-the-monty-hall-problem-in-ruby-and-python/#comment-8519</link>
		<dc:creator>Al</dc:creator>
		<pubDate>Thu, 10 Dec 2009 13:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=524#comment-8519</guid>
		<description>How do you modify the script to simulate a case where there are say 2 cars and 5 goats?</description>
		<content:encoded><![CDATA[<p>How do you modify the script to simulate a case where there are say 2 cars and 5 goats?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blinkozo</title>
		<link>http://programmingzen.com/2009/01/01/monte-carlo-simulation-of-the-monty-hall-problem-in-ruby-and-python/#comment-8364</link>
		<dc:creator>Blinkozo</dc:creator>
		<pubDate>Wed, 18 Nov 2009 21:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=524#comment-8364</guid>
		<description>Gustav, it&#039;s not a true 50/50. Since he picked his door when there were more goats than cars, the veteran&#039;s door is more likely to have a goat in it, His door, therefore, is tainted by previous bad odds.

The only time it&#039;d be 50/50 is if Monty removed the goat first, then let the vet select a door. One may think this is the same thing, but remember: the door eliminated in your scenario is guaranteed NOT to be the contestant&#039;s door. This means the contestant keeps the odds he was originally dealt (1:3), unless he switches.</description>
		<content:encoded><![CDATA[<p>Gustav, it&#8217;s not a true 50/50. Since he picked his door when there were more goats than cars, the veteran&#8217;s door is more likely to have a goat in it, His door, therefore, is tainted by previous bad odds.</p>
<p>The only time it&#8217;d be 50/50 is if Monty removed the goat first, then let the vet select a door. One may think this is the same thing, but remember: the door eliminated in your scenario is guaranteed NOT to be the contestant&#8217;s door. This means the contestant keeps the odds he was originally dealt (1:3), unless he switches.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustav Isaac</title>
		<link>http://programmingzen.com/2009/01/01/monte-carlo-simulation-of-the-monty-hall-problem-in-ruby-and-python/#comment-7949</link>
		<dc:creator>Gustav Isaac</dc:creator>
		<pubDate>Fri, 02 Oct 2009 20:08:18 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=524#comment-7949</guid>
		<description>Monty Hall problem
Lets suppose the contestant comes on stage and selects door # 1 in the hope that a prize is in door 1 and not a goat.  Before Monty Hall does or says anything, an associate comes out and whispers something to Monty Hall.  Now Monty Hall turns to the contestant and says: I just have been informed that you are a veteran.  Therefore I want to better your odds and have you decide only between 2 doors. He  than tells a Stage hand to remove Door 3 from the stage. ( Of course Monty knew that there was a goat behind door 3).  Now he turns to the contestant and says: &quot;There you are, 2 doors. New game. You want to switch from door # 1 to door # 2, or stay with your original choice?&quot;  Same setup as in the original problem, nothing changed except there only 2 doors now, and the contestant has now a chance of staying with his original choice or selecting the other door.
That&#039;s now 50-50 probability, even though it&#039;s the same problem.  Which means the original problem must also be a 50-50 proposition.</description>
		<content:encoded><![CDATA[<p>Monty Hall problem<br />
Lets suppose the contestant comes on stage and selects door # 1 in the hope that a prize is in door 1 and not a goat.  Before Monty Hall does or says anything, an associate comes out and whispers something to Monty Hall.  Now Monty Hall turns to the contestant and says: I just have been informed that you are a veteran.  Therefore I want to better your odds and have you decide only between 2 doors. He  than tells a Stage hand to remove Door 3 from the stage. ( Of course Monty knew that there was a goat behind door 3).  Now he turns to the contestant and says: &#8220;There you are, 2 doors. New game. You want to switch from door # 1 to door # 2, or stay with your original choice?&#8221;  Same setup as in the original problem, nothing changed except there only 2 doors now, and the contestant has now a chance of staying with his original choice or selecting the other door.<br />
That&#8217;s now 50-50 probability, even though it&#8217;s the same problem.  Which means the original problem must also be a 50-50 proposition.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francesco</title>
		<link>http://programmingzen.com/2009/01/01/monte-carlo-simulation-of-the-monty-hall-problem-in-ruby-and-python/#comment-5668</link>
		<dc:creator>Francesco</dc:creator>
		<pubDate>Thu, 05 Mar 2009 09:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=524#comment-5668</guid>
		<description>What if I switch the previously selected door with itself? It&#039;s the same as switching with the other one, right?
I&#039;m no math-geek at all, I just want to see the light because I&#039;m really puzzled! :-)</description>
		<content:encoded><![CDATA[<p>What if I switch the previously selected door with itself? It&#8217;s the same as switching with the other one, right?<br />
I&#8217;m no math-geek at all, I just want to see the light because I&#8217;m really puzzled! <img src='http://programmingzen.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jérôme</title>
		<link>http://programmingzen.com/2009/01/01/monte-carlo-simulation-of-the-monty-hall-problem-in-ruby-and-python/#comment-5445</link>
		<dc:creator>Jérôme</dc:creator>
		<pubDate>Fri, 06 Feb 2009 11:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=524#comment-5445</guid>
		<description>On my desktop :
&lt;pre&gt;
time python montecarlo.py 

real	0m7.882s
user	0m7.880s
sys	0m0.004s

time ruby montecarlo.rb   (ruby 1.9.1)

real	0m3.924s
user	0m3.904s
sys	0m0.000s
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>On my desktop :</p>
<pre>
time python montecarlo.py 

real	0m7.882s
user	0m7.880s
sys	0m0.004s

time ruby montecarlo.rb   (ruby 1.9.1)

real	0m3.924s
user	0m3.904s
sys	0m0.000s
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://programmingzen.com/2009/01/01/monte-carlo-simulation-of-the-monty-hall-problem-in-ruby-and-python/#comment-5432</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 03 Feb 2009 03:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=524#comment-5432</guid>
		<description>I almost said something awful just because of your comment, Kent.
Not really, just kidding.</description>
		<content:encoded><![CDATA[<p>I almost said something awful just because of your comment, Kent.<br />
Not really, just kidding.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kent</title>
		<link>http://programmingzen.com/2009/01/01/monte-carlo-simulation-of-the-monty-hall-problem-in-ruby-and-python/#comment-5260</link>
		<dc:creator>Kent</dc:creator>
		<pubDate>Wed, 07 Jan 2009 18:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=524#comment-5260</guid>
		<description>What&#039;s really amazing is the number of posts here without a single disrespectful comment.   In this day of internet anonymity, what are the odds of that?</description>
		<content:encoded><![CDATA[<p>What&#8217;s really amazing is the number of posts here without a single disrespectful comment.   In this day of internet anonymity, what are the odds of that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://programmingzen.com/2009/01/01/monte-carlo-simulation-of-the-monty-hall-problem-in-ruby-and-python/#comment-5258</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Wed, 07 Jan 2009 15:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=524#comment-5258</guid>
		<description>I find it easier to think of this as if you are actually switching from your single chosen door to both of the two other doors.

Since the rules are known before the game you know you&#039;ll pick one door and then you&#039;ll be able to switch to the other two. Since you know you&#039;ll switch you can think of it as if you already &quot;own&quot; the two other doors. When Monty opens one of them, he is just helping you to open a losing door first.

It&#039;s actually just like if you were given the choice of selecting one of the three doors or two of the three doors.</description>
		<content:encoded><![CDATA[<p>I find it easier to think of this as if you are actually switching from your single chosen door to both of the two other doors.</p>
<p>Since the rules are known before the game you know you&#8217;ll pick one door and then you&#8217;ll be able to switch to the other two. Since you know you&#8217;ll switch you can think of it as if you already &#8220;own&#8221; the two other doors. When Monty opens one of them, he is just helping you to open a losing door first.</p>
<p>It&#8217;s actually just like if you were given the choice of selecting one of the three doors or two of the three doors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Monty Hall with a billion doors &#171; Random Determinism</title>
		<link>http://programmingzen.com/2009/01/01/monte-carlo-simulation-of-the-monty-hall-problem-in-ruby-and-python/#comment-5255</link>
		<dc:creator>Monty Hall with a billion doors &#171; Random Determinism</dc:creator>
		<pubDate>Wed, 07 Jan 2009 05:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=524#comment-5255</guid>
		<description>[...]  Jump to Comments In order to provide intuition behind the solution of the Monty Hall problem,  Antonio Cangiano says: If there were a billion doors, you picked one, and then Monty proceeded to open up all the [...]</description>
		<content:encoded><![CDATA[<p>[...]  Jump to Comments In order to provide intuition behind the solution of the Monty Hall problem,  Antonio Cangiano says: If there were a billion doors, you picked one, and then Monty proceeded to open up all the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bradley Grzesiak</title>
		<link>http://programmingzen.com/2009/01/01/monte-carlo-simulation-of-the-monty-hall-problem-in-ruby-and-python/#comment-5254</link>
		<dc:creator>Bradley Grzesiak</dc:creator>
		<pubDate>Wed, 07 Jan 2009 05:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=524#comment-5254</guid>
		<description>As a result of reading your column, I wrote up a quick Monte Carlo Solution to the Birthday Problem:
&lt;br/&gt;
Given N number of people with randomized birthdays (excluding Feb 29th birthdays), what is the minimum value of N where you can expect (ie: 50% probability) at least two people having the same birthday?
http://gist.github.com/44189
&lt;br/&gt;
Surprisingly enough, the answer is 23.</description>
		<content:encoded><![CDATA[<p>As a result of reading your column, I wrote up a quick Monte Carlo Solution to the Birthday Problem:<br />
<br />
Given N number of people with randomized birthdays (excluding Feb 29th birthdays), what is the minimum value of N where you can expect (ie: 50% probability) at least two people having the same birthday?<br />
<a href="http://gist.github.com/44189" rel="nofollow">http://gist.github.com/44189</a><br />
<br />
Surprisingly enough, the answer is 23.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.881 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-06 05:02:01 -->
<!-- Compression = gzip -->
