document.write( "Question 1023496: A couple is planning to have 4 children. Assume boys and girls are equally likely and that the gender of any child is not influenced by gender of any other child. Find the probability of getting exactly 2 boys and 2 girls... Find the probability that the 4 children are all boys. \n" ); document.write( "
Algebra.Com's Answer #639030 by mathmate(429)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Question:
\n" ); document.write( "A couple is planning to have 4 children. Assume boys and girls are equally likely and that the gender of any child is not influenced by gender of any other child. Find the probability of getting exactly 2 boys and 2 girls... Find the probability that the 4 children are all boys.
\n" ); document.write( "
\n" ); document.write( "Solution:
\n" ); document.write( "This is a typical application of the tree diagram.
\n" ); document.write( "If you create a tree diagram with 4 stages, you will end up with 16 outcomes.
\n" ); document.write( "If you wish, you can replace the tree diagram with a table
\n" ); document.write( "The sixteen outcomes are (by columns)
\n" ); document.write( "BBBBBBBBGGGGGGGG
\n" ); document.write( "BBBBGGGGBBBBGGGG
\n" ); document.write( "BBGGBBGGBBGGBBGG
\n" ); document.write( "BGBGBGBGBGBGBGBG
\n" ); document.write( "So you can sort out, for example, there is only one column that reads BBBB, so four boys is 1/16
\n" ); document.write( "There are columns that read BBBG, BBGB, BGBB, GBBB, so 4/16 is the probability for one girl, (or three boys) etc.
\n" ); document.write( "
\n" ); document.write( "Another way is to use the binomial distribution, which says
\n" ); document.write( "P(k;n;p)=C(n,k)*p^k*(1-p)^(n-k)
\n" ); document.write( "where
\n" ); document.write( "k=number of boys in the outcome
\n" ); document.write( "n=total number of children
\n" ); document.write( "p=probability of success, i.e. having a boy at a particular step (1/2)
\n" ); document.write( "C(n,k)=binary coefficient = n!/(k!(n-k!))
\n" ); document.write( "
\n" ); document.write( "For example, the probability of having 2 boys (out of 4 children)
\n" ); document.write( "=P(2;4;1/2)=C(4,2)*(1/2)^2*(1/2)^2=4!/(2!2!)*1/4*1/4=6/16=3/8.
\n" ); document.write( "
\n" );