News for hackers. Stuff that matters.
Re:Coding Horror: The Problem of the Unfinished Game by brl on Wednesday December 31, 2008 @10:18AM (#415535)
This is easier to understand if you start by listing all of the possibilities.

  Two boys:        BB
  Two girls:       GG
  Boy, then girl:  BG
  Girl, then boy:  GB
So there are four possibilities: (BB, GG, BG, GB).

If you know that one of the children is a girl, then BB is impossible and you can remove it from the list. This leaves only 3 possibilities (GG, BG, GB).

This is the set you use to calculate the probability and there are two ways out of three that the person could have both a boy and a girl: BG and GB

That gives you 2/3 or 67%

Re:Coding Horror: The Problem of the Unfinished Game by pstuart on Wednesday December 31, 2008 @08:56PM (#416132)
There are neither 4 nor 3 possibilities: it was given that one child is a girl. So it's either GB or GG. 50% FTW.