quote:I had an argument with my older brother years and years ago about this once, and when we appealed to my father, he sided with my brother .
my statistics class a few yonks back I think would disagree but i dont recall the details.
quote:OK I'll ask it, and I'll just tell myself I'm asking for all the hatrackers with more pride than me, how did 1/3rd become 1/2? What does having a name have anything to do with the probability increasing?
Q: If a couple has two children and one is a girl, what is the probability they're both girls?
A: 1/3
Q: If a couple has two children and one is a girl named 'Mellisa', what is the probability they're both girls?
A: 1/2 (or slightly better depending on how you want to look at it)
quote:lol.
I feel the spell about to be broken......well, an even chance.
quote:You would think so, but game RNGs are occasionally really crappy, for some reason. (Not all of them, obviously; NN may not be one of them.) Some companies insist on writing their own, and aren't smart enough to do a good job. There was even one company that deliberately wrote one with the gamber's fallacy in it, so that a roll of 1 genuinely did make you less likely to roll low next time.
Originally posted by fugu13:
KoM: their RNG is most likely pretty good (and for all I know they use a good source of entropy to re-seed periodically), so if there's any variation in the (perceived) probability, it should be infinitesimal.
quote:Yeah, you're wrong. I revoke your posting-in-math-related-threads privileges. Go find some fluffy subject to post about.
I don't think that all GG, BG and GB are equally likely.
code:My results:#include <iostream>
#include <sys/time.h>
timeval one = {0, 0};
int main (int argc, char** argv) {
gettimeofday(&one, 0);
srand(one.tv_usec);
int twoBoys = 0;
int twoGirls = 0;
int boyGirl = 0;
int girlBoy = 0;
for (int i = 0; i < 1000000; ++i) {
bool firstIsBoy = (0 == rand() % 2);
bool secondIsBoy = (0 == rand() % 2);
if (firstIsBoy) {
if (secondIsBoy) twoBoys++;
else boyGirl++;
}
else {
if (secondIsBoy) girlBoy++;
else twoGirls++;
}
}
std::cout << "Two girls : " << twoGirls << std::endl
<< "Girl, boy : " << girlBoy << std::endl
<< "Boy, girl : " << boyGirl << std::endl;
return 0;
}
quote:I just reread the entire thread trying to figure out what I'd said that would engender that statement. I will never get used to folks calling Blayne 'BB'.
Originally posted by fugu13:
BB: if you could state the feat more clearly (what you wrote could be interpreted at least two or three different ways), it would be possible to determine what the change in probability of success is due to the feat.
quote:I am having difficulty finding it as I'm not at my computer at home.
Originally posted by fugu13:
BB: if you could state the feat more clearly (what you wrote could be interpreted at least two or three different ways), it would be possible to determine what the change in probability of success is due to the feat.
quote:Of course that's the result of your script, but I don't think your script is calculating the right thing for this question.
Originally posted by King of Men:
quote:Yeah, you're wrong.
I don't think that all GG, BG and GB are equally likely.
quote:
If a couple has two children and one is a girl, what is the probability they're both girls?
If a couple has two children and one is a girl named 'Melissa', what is the probability they're both girls?
code:And behold, there are as many Melissas with boys as Melissas with girls:#include <iostream>
#include <sys/time.h>
timeval one = {0, 0};
int main (int argc, char** argv) {
gettimeofday(&one, 0);
srand(one.tv_usec);
int twoBoys = 0;
int twoGirls = 0;
int boyGirl = 0;
int girlBoy = 0;
int twoMelissas = 0;
int melissaGirl = 0;
int girlMelissa = 0;
int melissaBoy = 0;
int boyMelissa = 0;
for (int i = 0; i < 1000000; ++i) {
bool firstIsBoy = (0 == rand() % 2);
bool secondIsBoy = (0 == rand() % 2);
if (firstIsBoy) {
if (secondIsBoy) twoBoys++;
else {
if (0 == rand() % 100) boyMelissa++;
else boyGirl++;
}
}
else {
if (secondIsBoy) {
if (0 == rand() % 100) melissaBoy++;
else girlBoy++;
}
else {
if (0 == rand() % 100) {
if (0 == rand() % 100) twoMelissas++; // Assumes independence in names, probably wrong
else melissaGirl++;
}
else {
if (0 == rand() % 100) girlMelissa++;
else twoGirls++;
}
}
}
}
std::cout << "Two boys : " << twoBoys << std::endl
<< "Two girls : " << twoGirls << std::endl
<< "Girl, boy : " << girlBoy << std::endl
<< "Boy, girl : " << boyGirl << std::endl
<< "Melissa and girl : " << (melissaGirl + girlMelissa + twoMelissas) << std::endl
<< "Melissa and boy : " << (melissaBoy + boyMelissa) << std::endl;
return 0;
}