Probability- Brain Teaser- 1 boy and 1 girl

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
8 replies · 3K views
Roni1985
Messages
200
Reaction score
0

Homework Statement


I'm not sure if this is the exact wording, but here it is:
Let's assume a family wants at least 1 girl and 1 boy. It stops having kids once it get both.

Ex:
BBBBBG
GB
GGGGGGGGGB
etc.

What is the expect number of kids in the family?

Homework Equations



Is this a geometric random variable?

The Attempt at a Solution



I attempted to find the expected value by using a sum.
I can find the sum of the probabilities and I'm getting 1, but can't seem to find the expected value.
inf
[tex]\sum n(\frac{1}{2})^n[/tex]
n=2
 
on Phys.org
The probability of stopping after 2 children is 1/2, isn't it? That doesn't fit very well with your (1/2)^n. You could have BG, GB or BB, GG. Both are equally likely. It's not a strictly geometric sum. But it's closely related. It's the derivative of a geometric sum.
 
Dick said:
The probability of stopping after 2 children is 1/2, isn't it? That doesn't fit very well with your (1/2)^n. You could have BG, GB or BB, GG. Both are equally likely. It's not a strictly geometric sum. But it's closely related. It's the derivative of a geometric sum.

Hello,

I found my mistake, this is what I'm getting
inf
[tex]\sum n(1/2)^(^n^-^1^)[/tex]
n=2

Now, I know the sum of the derivative of a geometric sum is
[tex]\frac{a}{(1-r)^2}[/tex]
However, my sum starts from n=2 and by doing the calculations, I think I'm getting 3/2.
Can you please confirm my answer?
inf
[tex]\sum r^n[/tex]= [tex]\frac{r^2}{1-r}[/tex]
n=2

I need to take the derivative of this and I get [tex]\frac{2r-r^2}{(1-r)^2}[/tex]
I plug in 1/2 and multiply the answer by 1/2 that I pulled out of the sum before.
 
Last edited:
still looking for help :)

Thanks.
 
Let's do a sanity check. Your sum is 2*(1/2)+3*(1/4)+4*(1/8)+5*(1/16)+6*(1/32)+... Evaluate that. You've got the series right. Your sum is wrong. Just sum the first two terms. That's already over 3/2. I don't really understand how you got 3/2. Can you explain that again? Where did you pull out a '1/2'? Differentiating r^2/(1-r) is on the right track. How did you get that?
 
Last edited:
Dick said:
Let's do a sanity check. Your sum is 2*(1/2)+3*(1/4)+4*(1/8)+5*(1/16)+6*(1/32)+... Evaluate that. You've got the series right. Your sum is wrong. Just sum the first two terms. That's already over 3/2. I don't really understand how you got 3/2. Can you explain that again? Where did you pull out a '1/2'? Differentiating r^2/(1-r) is on the right track. How did you get that?

I don't seem to get it.
What do you mean my sum is wrong?

I can start from 1.
inf
[tex]\sum (n+1)(1/2)^n[/tex]
n=1

This is also the derivative of a geometric sum.
Now,

inf
[tex]\sum \frac{d}{dr}(r)^(^n^+^1^)[/tex]
n=1

inf
[tex]\frac{d}{dr}[/tex][tex]\sum(r)^(^n^+^1^)[/tex]
n=1

inf
[tex]\frac{d}{dr}[/tex]*r[tex]\sum(r)^n[/tex] = [tex]\frac{d}{dr}[/tex](*r*[tex]\frac{r}{1-r}[/tex])=[tex]\frac{2r-r^2}{(1-r)^2}[/tex]
n=1

Now, I can plug in 1/2 and actually now I'm getting 3.

Am I doing something wrong?
 
Oh, just found a TI-89 emulator for Windows, so I calculated the sum and it is 3.
Can you just look at my way. Is everything correct ?
Thanks.
 
Roni1985 said:
Oh, just found a TI-89 emulator for Windows, so I calculated the sum and it is 3.
Can you just look at my way. Is everything correct ?
Thanks.

Now it's fine. I was just wondering how you got 3/2.
 
Dick said:
Now it's fine. I was just wondering how you got 3/2.

Yes, I made a mistake before.
Thanks for your help.