Talk:Monty Hall problem: Difference between revisions

→‎Probability error: Independent random runs
No edit summary
(→‎Probability error: Independent random runs)
Line 28:
 
:Here are some examples of what I meant(I should have said percentages not probability). The Ada example appears to be doing 100000 iterations but adding up the counts give 100003. The AWK example is doing 10000 iterations but adding the counts gives 10066. The Maxscript percentages add up to 100.61%. The Perl percentages add up to 98.57%. The Python example counts add up to 99866 for 100000 iterations and the Scheme percentages add up to only 85%! The percentage chance of winning by staying plus the percentage chance of winning by switching must equal 100%. --[[User:Lupus|Lupus]] 16:58, 5 November 2008 (UTC)
 
::Hi Lupus, lets say you run 100000 trials and for strategy1 and get 33337 wins. You might run a second set of 100000 trials for strategy1 and get 33314 - It is random it should tend to 1/3 but It is quite allright for it not to '''be''' 1/3 +/-1. Similarly for running 100000 tests of strategy2 - It might not be exactly two thirds +/- 1. Adding up the number of wins for the two strategies I would be most '''surprised''' if it always totalled 100000 and would check things again, as these are independent random runs. --[[User:Paddy3118|Paddy3118]] 17:39, 5 November 2008 (UTC)
Anonymous user