News:

How did you even find this place?

Main Menu

[SOLVED] Probability Problem

Started by Ender, August 14, 2006, 06:34:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ender

So a couple has two children. One of them is a girl. What's the probability that the other one is a girl? Explain your reasoning.

d&q

50%. The outcome of something in the past has no affect on the current situation.
The writ of the founders must endure.

Ender

#2
Wrong.  ;)

d&q

The writ of the founders must endure.

Ender

Hehe, I love this problem. Think about it again =)

deadly7

[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
[17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Ender

No, by "one of them is a girl" I mean at least one. Good thinking though, "one of them is a girl" is sort of unclear.


deadly7

25%?
33%.

[I had a change of heart]
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
[17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Ender

deadly's correct! Good job. Care to explain? (I did say explain your reasoning.)

deadly7

There are two kids.
Kid 1 - probably 100% it's a girl
Kid 1 - probably 50% guy / probablity 50% girl

If you combine them there are three options.  Guy, Girl, Girl.  Since one of them is already a girl, it can't be 66.66%, so it has to be 33.33%.  Repeating, of course.
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
[17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Ender

#10
Once again, good job. I'm going to provide some alternate explanations now. Oh, and btw deadly, real men use fractions.

First, to clarify what deadly said, there are three permutations:
1. guy girl
2. girl guy
3. girl girl

If the other one is a girl then we have two girls, and only one out of three of the possible permutations gives us three girls.

So you may be asking, why isn't there just two options: 1. girl guy 2. girl girl. I said that one of the two children is a girl, not the first one. The first child OR the second child could have been a boy. If you say that the first children was a girl, then there's only two permutations: girl guy and guy girl.

Another way to think about this is that saying "one of them is a girl" is not an event, since you don't know when it happened. Let's say you have three marbles in a bag, two white and one red. If you say you picked out two marbles and one of them was white then you can't determine the probability of you picking out that white marble. If the first one you picked was red, then you have a 100% chance. If the first one you picked was white, then you have a 50% chance. An event requires a timeframe, and you can only apply the rule "prior events don't affect future events" to independent events, and an independent event must be an event in the first place.

You can also do a simulation of this. Keep a variable for the sum of all the outcomes. Let 0 be boy and 1 be girl. Let the sum of the two numbers be the outcome.

0 = two boys
1 = one girl one boy OR one boy one girl
2 = two girls

Generate two numbers in Z & [0, 1] (set of integers intersected with the set of numbers from 0 to 1 inclusive). If both of them are 0's, add one to the sum (since one of them has to be a girl). After you get one outcome add it to the variable that's the sum of all outcomes. You don't need an array for this, an O(n) operation for finding out the fraction of girl-boy/boy-girl combos is inefficient.

So here's the algorithm for finding out the overall result. Let n be your number of trials. If your sum variable == 2n then you got 100% 2-girl permutations. If your sum variable == n then you got 100% mixed permutations. To simplify things, we'll find out the fraction of mixed permutations first. You can find out your fraction of mixed permutations by n / 1 : S / A. S is your sum variable and A is the answer. Thus A = S / n. And the fraction of two-girl combos is 1 - A.


rabbit

Or: 0%

Two children, one is a girl.  The other is clearly male.

Sidoh

Quote from: rabbit on August 15, 2006, 01:35:52 AM
Two children, one is a girl.  The other is clearly male.

It's a probability problem, not a play on words.  The statement "one of them is a girl" doesn't necessitate excluding the possibility of the other one being a girl.

Incidentally, this was an easy problem. :(

Ender

Haha, I'll step it up a notch. I have a REALLY REALLY good logic problem that WILL take up a lot of your time. Unfortunately, the book it's in is at home right now, and I'm at work, so I can't post it until I get home. I will do it then though. For now, do you guys know the Monty Hall problem? If you don't, don't google it!

deadly7

Quote from: Ender on August 14, 2006, 11:46:24 PM
Once again, good job. I'm going to provide some alternate explanations now. Oh, and btw deadly, real women use fractions.
Fixed it up for you.  Besides, 50% was easier to type than 1/2 so that's what I used.  :D

Quote from: Ender on August 15, 2006, 09:20:35 AM
Haha, I'll step it up a notch. I have a REALLY REALLY good logic problem that WILL take up a lot of your time. Unfortunately, the book it's in is at home right now, and I'm at work, so I can't post it until I get home. I will do it then though. For now, do you guys know the Monty Hall problem? If you don't, don't google it!
Why would you tell us the name and then tell us NOT to google it?  Wouldn't it just be easier to not say anything at all..?
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
[17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine