document.write( "Question 1010360: You have 18 cookies in a box. 5 are oatmeal, 4 are sugar, 3 are peanut butter, and 6 are butter. Show your calculations in answering the questions.
\n" );
document.write( "A. Suppose you randomly choose a cookie, replace it, and randomly choose another. What is the probability that either the first cookie is butter or the second is oatmeal?
\n" );
document.write( "B. Suppose instead that you randomly choose a cookie, but you do not replace it. You then randomly choose another. What is the probability that either the first cookie is butter or the second cookie is oatmeal. \n" );
document.write( "
Algebra.Com's Answer #625831 by mathmate(429)![]() ![]() You can put this solution on YOUR website! \n" ); document.write( "Question: \n" ); document.write( "You have 18 cookies in a box. 5 are oatmeal, 4 are sugar, 3 are peanut butter, and 6 are butter. Show your calculations in answering the questions. \n" ); document.write( "A. Suppose you randomly choose a cookie, replace it, and randomly choose another. What is the probability that either the first cookie is butter or the second is oatmeal? \n" ); document.write( "B. Suppose instead that you randomly choose a cookie, but you do not replace it. You then randomly choose another. What is the probability that either the first cookie is butter or the second cookie is oatmeal. \n" ); document.write( " \n" ); document.write( "Solution: \n" ); document.write( " \n" ); document.write( "Given: 18 cookies, 5 oatmeal (O), 4 sugar (S), 3 peanut butter (P) and 6 butter (B). \n" ); document.write( "Let X be the event of drawing any other cookie.\r \n" ); document.write( "\n" ); document.write( "A. P(BX or XO) with replacement \n" ); document.write( "Use a contingency table (multiplied by 18^2=324). \n" ); document.write( " B O X \n" ); document.write( "B 36 30 42 \n" ); document.write( "O 30 25 35 \n" ); document.write( "X 42 35 49\r \n" ); document.write( "\n" ); document.write( "The entries are obtained by \n" ); document.write( "P(BB)=(6/18)(6/18)=36/324 \n" ); document.write( "P(BO)=(6/18)(5/18)=30/324 \n" ); document.write( "and so on.\r \n" ); document.write( "\n" ); document.write( "P(BX or XO) \n" ); document.write( "=(36+30+42)/324+(30+25+35)/324-30/324 (P(BO) was counted twice) \n" ); document.write( "=14/27 \n" ); document.write( "alternatively, \n" ); document.write( "P(BX or XO) \n" ); document.write( "=P(B)+P(O)-P(BO) \n" ); document.write( "=6/18+5/18-30/324 \n" ); document.write( "=14/27\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "B. P(BX or XO) Without replacement \n" ); document.write( "Again, use a contingency table (multiplied by 18*17=306). \n" ); document.write( " B O X \n" ); document.write( "B 30 30 42 \n" ); document.write( "O 30 20 35 \n" ); document.write( "X 42 35 42 \n" ); document.write( "The above table is obtained by \n" ); document.write( "P(BB)=(6/18)(5/17)=30/306 \n" ); document.write( "P(BO)=(6/18)(5/17)=30/306 \n" ); document.write( "... \n" ); document.write( "P(XX)=(7/18)(6/17)=42/306 \n" ); document.write( "So \n" ); document.write( "P(BX or XO) \n" ); document.write( "=(30+30+42)/306+(30+20+35)/306-30/306 \n" ); document.write( "=(102+85-30)/306 \n" ); document.write( "=157/306\r \n" ); document.write( "\n" ); document.write( "Alternatively, \n" ); document.write( "P(BX or XO) \n" ); document.write( "=P(B)+P(OO)+P(XO) \n" ); document.write( "=6/18+(5/18)(4/17)+(7/18)(5/17) \n" ); document.write( "=157/306 \n" ); document.write( " |