document.write( "Question 1180989: . In a bag of 30 chocolates, 12 have vanilla filling and 18 have strawberry filling. Five chocolates are randomly chosen from the bag.
\n" ); document.write( "a) What is the probability of obtaining exactly 2 chocolates with strawberry filling?
\n" ); document.write( "b) What is the expected number of vanilla filling chocolates?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #810794 by ikleyn(52781)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "In a bag of 30 chocolates, 12 have vanilla filling and 18 have strawberry filling. Five chocolates are randomly chosen from the bag.
\n" ); document.write( "a) What is the probability of obtaining exactly 2 chocolates with strawberry filling?
\n" ); document.write( "b) What is the expected number of vanilla filling chocolates?
\n" ); document.write( "~~~~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "(a)  P = \"%28C%5B18%5D%5E2%2AC%5B12%5D%5E3%29%2FC%5B30%5D%5E5\" = \"%28153%2A220%29%2F142506\" = 0.2362  (rounded).    ANSWER\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "(b)  Expected value = 0*P(0 vanilla,5 strawberry) + 1*P(1 vanilla,4 strawberry) + 2*P(2 vanilla,3 strawberry) + \r\n" );
document.write( "\r\n" );
document.write( "                    + 3*P(3 vanilla,2 strawberry)  + 4*P(4 vanilla,1 strawberry) + 5*P(5 vanilla,0 strawberry) ,\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "     and you can write any probability term in this formula as I did in part (a), and complete calculations on your own.\r\n" );
document.write( "
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "To facilitate calculations of combination coefficients, I used the COMBIN function of Excel spreadsheet in my computer.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Alternatively, you can use your calculator, which (probably) has similar function.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "----------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Solved, and you got first class instructions to complete the task on your own.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );