Talk:Monty Hall problem: Difference between revisions

Content added Content deleted
(→‎Probability error: Subtleties of implementation?)
No edit summary
Line 26: Line 26:


:Oh wait, I think it is due to subtleties of the implementation Lupus. Your Fortran solution looks at what the results would be for the same random choices ran on the different strategies. Other tests just run run the same number of random trials which is what I had in mind. I haven't looked in depth at your Fortran solution though. --[[User:Paddy3118|Paddy3118]] 15:19, 5 November 2008 (UTC)
:Oh wait, I think it is due to subtleties of the implementation Lupus. Your Fortran solution looks at what the results would be for the same random choices ran on the different strategies. Other tests just run run the same number of random trials which is what I had in mind. I haven't looked in depth at your Fortran solution though. --[[User:Paddy3118|Paddy3118]] 15:19, 5 November 2008 (UTC)

: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)