i was in the 50% column until I ran
double boys = 0;
double girls = 0;
Random r = new Random();
while(girls 1000000 )
{
int first = r.Next(0, 2);
int second = r.Next(0, 2);
if ( first == 1 || second == 1 )
{
if (first == 0 || second == 0) boys++;
girls++;
}
}
double percentage = boys/girls;
and got .667199
I guess knowing the ordering matters. If you know the ordering it changes the percentage to .50 Weird
True, this is not exactly monty hall, but it can be looked at the same way. There are essentially 4 ‘doors’ in this problem: gg gb bg bb. By saying that at least one is a girl they essentially ‘open’ the bb door. This leaves 3 doors, two of which have one boy and one girl behind them. probability 2/3.
Could also be solved as follows:
P(girl then girl) = .5*.5 = .25
P(girl then boy) = .5 * .5 = .25
P(boy then girl) = .5 * .5 = .25
P(boy then boy) = .5 * .5 = .25
thus
P(girl and boy) = P(boy then girl) + P(girl then boy) = .5
so gg = .25 bg = .5 bb = .25
eliminating the possibility of bb, you need to get the probability of bg from the remaining choices:
bg/(gg+bg) = .5/.75 = .66
Two thirds.
My explanation:
Since this is hypothetical, we may assume we are talking about the expected value. We may further assume that in an independent experiment (i.e. birth), the odds for a boy or a girl are identical at 50%.
Now, for two children there are four possibilities, with equal probabilities:
boy-boy
boy-girl
girl-boy
girl-girl
Since we’ve discounted the first possibility, we are left with three possibilities with equal probabilities, two of which yield the desired outcome. Hence, two thirds.
If they have 2 children, there are four possible permutations, all other things being equal:
BB
BG
GB
GG
If you know that one of them is a girl (ignoring the very valid semantic point that Isaac raised) that eliminates the ‘BB’ possibility. Of the three remaining possibilities, two satisfy the ‘boy and girl’ condition. Therefore, 2/3.
I’d say that there are four possible combinations for two children:
a) boy + boy
b) boy + girl
c) girl + boy
d) girl + girl
and that we could naively assume 25% probability for each.
(a) is ruled out, therefore the person has one of a,b,or c, with 33% probability each. The odds of boy and girl are therefore 66%.
There are a ton of very different, very complicated answers to a question that a 4th grader can figure out.
They tell you a person has two children, and they ask you the odds of the person having one boy and one girl. Without any other information, the answer would be 50%(combos of: GG, GB, BG, BB).
They tell you that one of the children is a girl, so all they are asking for is the probability that the other child is a boy. There are only two choices to choose from(boy/girl), meaning you have a 50% chance of getting it right. Nothing else matters, probability does not change of the second child being a boy/girl no matter what the first child is.
Simple Example: I flip a coin, it comes up heads. I flip the coin again, what are the odds it comes up heads again?
It is completely irrelevant what happened the first time you flipped the coin, the odds don’t change, it is still 50%. It’s the same with children, you have a 50% chance of a baby being a boy or a girl.