document.write( "Question 126318: The following table shows gender and soda preference of 300 people sampled:
\n" );
document.write( "
\n" );
document.write( "Soda Preference
\n" );
document.write( "Gender Diet Soda Regular Soda No Soda Totals
\n" );
document.write( "Male 70 40 20 130
\n" );
document.write( "Female 110 45 15 170
\n" );
document.write( "Total 180 85 35 300
\n" );
document.write( "A. Draw a Bayesian Tree from the data in the table.
\n" );
document.write( "B. Are these two variables (gender & soda preference) independent?
\n" );
document.write( "C. What is the probability of randomly selecting someone who is Male or prefers Regular Soda?
\n" );
document.write( " \n" );
document.write( "
Algebra.Com's Answer #92596 by stanbon(75887)![]() ![]() ![]() You can put this solution on YOUR website! Soda Preference \n" ); document.write( "Gender Diet Soda Regular Soda No Soda Totals \n" ); document.write( "Male 70 40 20 130 \n" ); document.write( "Female 110 45 15 170 \n" ); document.write( "Total 180 85 35 300 \n" ); document.write( "A. Draw a Bayesian Tree from the data in the table. \n" ); document.write( "The tree has two roots: Male and Female \n" ); document.write( "Each root as three brances: Diet, Regular, None \n" ); document.write( "Read the probabilities of the branches from the data \n" ); document.write( "For example the branch Male-Diet has probability (70/130)= 7/13 \n" ); document.write( "--------------------------------------------------------------------- \n" ); document.write( "B. Are these two variables (gender & soda preference) independent? \n" ); document.write( "Ho: The rows are independent \n" ); document.write( "Ha: The rows are dependent \n" ); document.write( "Chi-square Test: \n" ); document.write( "Chi-Square = 29.179441 \n" ); document.write( "p-value = 4.61x10^-7 or extremely small \n" ); document.write( "Conclusion: Fail to reject Ho \n" ); document.write( "The gender and soda preference are independent. \n" ); document.write( "---------------------------------------------------- \n" ); document.write( "C. What is the probability of randomly selecting someone who is Male or prefers Regular Soda? \n" ); document.write( "P(Male or prefers Regular) = P(M)+P(R)-P(M and R) \n" ); document.write( "= 130/300 + 85/300 - 40/300 = 175/300 \n" ); document.write( "============================================================ \n" ); document.write( "Cheers, \n" ); document.write( "Stan H.\r \n" ); document.write( "\n" ); document.write( " \n" ); document.write( " |