Thomas comments on Beauty quips, "I'd shut up and multiply!" - Less Wrong

6 Post author: neq1 07 May 2010 02:34PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (335)

You are viewing a single comment's thread.

Comment author: Thomas 07 May 2010 07:31:43PM *  0 points [-]

The next program works well:

R=Random(0,1) If R=0 SAY "P(R=0)=1/2" Elseif SAY "P(R=0)=1/2": SAY "P(R=0)=1/2" Endif

The next doesn't:

R=Random(0,1) If R=0 SAY "P(R=0)=1/3" Elseif SAY "P(R=0)=1/3": SAY "P(R=0)=1/3" Endif

Run it many times and you will clearly see, that the first program will be right, since it will be about the same number of cases when R will be 0 and the other cases when R will be 1.

Just what the first program keep saying.