Re: Riddle -- Probability of Expectation
[ QUOTE ]
Hmm. I get .000214...
[/ QUOTE ]
This is a challenging problem indeed. I thought I had worked out that the chance of a single line containing the requisite combinations of letters as about 18%, but when I tried to verify by simulation I found out that the actual value is likely to be a little more than twice that.
Back to the drawing board.
Over all, I think that the chances of one of 154 monkey-sonnets qualifying is in the neighborhood of 0.04%. I just need to figure out what's wrong with my math.
My simulation could be invalid as well; I whipped it up in a hurry and didn't double-check too thoroughly. With 8 lines of code, there is an above zero probability of a bug being in there... [img]/images/graemlins/smile.gif[/img]
|