I might be playing with fire in opening this up again, but since the thread [http://www.escapistmagazine.com/forums/read/18.199528-Poll-Difficult-Maths-question-try-it-98-of-people-cannot-get-it] was locked only at OP's request, I don't see any fundamental problem in starting my own thread. God help me.
http://codepad.org/SWukSH8W
I completely fail to understand why, but it does.
If you rewrite [http://codepad.org/Pi0jIbXq] the code to reflect the interpretation of the question that one and only one child is male and born on Tuesday, the result is an even smaller percentage, around 46%.
If you rewrite [http://codepad.org/AyczuwPf] the code to reflect the interpretation of the question that one specific child is male and born on Tuesday, the result is around 50%, and is completely obvious and pointless.
If you rewrite [http://codepad.org/IcAJndaf] the code to ignore the day of birth completely, the result is around 33%, as expected.
If you have a good, contentious maths problem/puzzle, feel free to post it. We've already had this one and Monty Hall.
Rakenar said:Which is okay, since the probability is only correct if you count it twice. The probability of having two boys on tuesday is 2/28, and not 1/27.
jerrrry said:The fact that one boy is born on a Tuesday is extraneous to the probability of having two boys. I could say I have one boy that I decided to name Matthew, and the chance of having a boy and naming him Matthew has a different probability than just having a boy but it is still extraneous information and does not affect the real question of having two boys.
GM.Casper said:No. One of them still older than the other (even if ony 20 seconds or so). So these are two diferent possibilities. We use formula for Variations, not Combinatorics.
That was exactly what I thought. Then I asked the computer, as I usually do in these situations, to see what it thought. It thought I was wrong:RYjet911 said:Kinda hoping this gets seen by some other people as well who explained it like you did. It's a good explanation, but it's counting B1Tues B2Tues only once, when it should in fact be counted twice.
http://codepad.org/SWukSH8W
If you run it a few times over, it stays around 48.14%, or 13/27.Two males in 48.03% of 137656 independent experiments.
[small]Why 137656 experiments? Because it does 1000000 experiments with "independent" random numbers, and rejects any in which neither child is both male and born on Tuesday.[/small]
I completely fail to understand why, but it does.
If you rewrite [http://codepad.org/Pi0jIbXq] the code to reflect the interpretation of the question that one and only one child is male and born on Tuesday, the result is an even smaller percentage, around 46%.
If you rewrite [http://codepad.org/AyczuwPf] the code to reflect the interpretation of the question that one specific child is male and born on Tuesday, the result is around 50%, and is completely obvious and pointless.
If you rewrite [http://codepad.org/IcAJndaf] the code to ignore the day of birth completely, the result is around 33%, as expected.
If you have a good, contentious maths problem/puzzle, feel free to post it. We've already had this one and Monty Hall.