document.write( "Question 132971: Please help. Found the question but the calculations were not available. Thank you in advance. Can people really identify their favorite brand of cola? Volunteers tasted coca-cola classic, Pepsi, Diet Coke, and Diet Pepsi, with the results shown below. Research question: at alpha=.05, is the correctness of the prediction different for the two types of cola drinker? Could you identify your favorite brand in this kind of test? Since it is a 2x2 table, try also a two taled two sample z test for п1= п2 and verify that z2 is the same as your chi-square statistic. Which test do you prefer? Why?
\n" ); document.write( "Show how the degrees of freedom are calculated, find the critical value of chi-square, and interpret the p-value. Is the conclusion sensitive to the level of significance chosen?
\n" ); document.write( "Correct? Regular Cola Diet Cola Row Total
\n" ); document.write( "Yes, got it right 7 7 14
\n" ); document.write( "No, got it wrong 12 20 32
\n" ); document.write( "Col total-------- 19 27 46
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #97226 by stanbon(75887)\"\" \"About 
You can put this solution on YOUR website!
Can people really identify their favorite brand of cola? Volunteers tasted coca-cola classic, Pepsi, Diet Coke, and Diet Pepsi, with the results shown below.
\n" ); document.write( "-----------------------------------------------------------------
\n" ); document.write( " Correct?............ Reg Cola Diet Cola Row Total
\n" ); document.write( "Yes, got it right 7 7 14
\n" ); document.write( "No, got it wrong 12 20 32
\n" ); document.write( "Col total-------- 19 27 46
\n" ); document.write( "-----------------------------------------------------------------
\n" ); document.write( "Research question: at alpha=.05,
\n" ); document.write( "Is the correctness of the prediction different for the two types of cola drinker?
\n" ); document.write( "Ho: They are the same
\n" ); document.write( "Ha: They are different
\n" ); document.write( "-------------------------
\n" ); document.write( "un a Chi-Sq. Test on the 2X2 data:
\n" ); document.write( "Reg Cola: 7....12
\n" ); document.write( "DietCola: 7....20
\n" ); document.write( "-------
\n" ); document.write( "Test statistic: Chi-Sq = 0.62768...
\n" ); document.write( "p-value = 0.428207...
\n" ); document.write( "Show how the degrees of freedom are calculated,
\n" ); document.write( "df= (# of rows -1)(# of columns) = 1*1 = 1
\n" ); document.write( "----------------------
\n" ); document.write( "Find the critical value of chi-square for alpha = 5% and df=1,
\n" ); document.write( "Left margin = 0.001; Right margin is 7.879
\n" ); document.write( "-------------------------------------
\n" ); document.write( "Interpret the p-value.
\n" ); document.write( "At least 43.8% of test results could provide stronger evidence for
\n" ); document.write( "rejecting Ho.
\n" ); document.write( "------------------------
\n" ); document.write( "Since p-value is greater then alpha = 5%, Fail to Reject Ho.
\n" ); document.write( "Conclusion: Correctness of the predictions of RegCola and DietCola drinkers is not different.
\n" ); document.write( "---------------------
\n" ); document.write( "Could you identify your favorite brand in this kind of test?
\n" ); document.write( "Probably not since this test group was wrong in their identification
\n" ); document.write( "32 out of 46 times.
\n" ); document.write( "---------------------
\n" ); document.write( "Since it is a 2x2 table, try also a two tailed two sample z test for p1= p2 and verify that z2 is the same as your chi-square statistic.
\n" ); document.write( "Ho: p1-p2=0
\n" ); document.write( "Ha: p1-p2 is not 0
\n" ); document.write( "----------
\n" ); document.write( "Critical Value for 2-tail 2-proportion z test with alpha=5%: z = +/-1.96
\n" ); document.write( "--------------------------
\n" ); document.write( "If data is pooled p-bar = (x1+x2)/(n1+n2) =14/46 = 0.304
\n" ); document.write( "Test statistic:
\n" ); document.write( "z(7/19 - 7/27) = 0.10916/sqrt[(0.304*0.696/19) + (0.304*0.696/27)]
\n" ); document.write( "= 0.10916/sqrt(0.01897) = 0.015056...
\n" ); document.write( "-----------------------------------
\n" ); document.write( "Conclusion: Since the test statistic is between -1.96 and +1.96, Fail to Reject Ho.
\n" ); document.write( "The proportions are the same.
\n" ); document.write( "-------------------------------------
\n" ); document.write( "Show how the degrees of freedom are calculated,
\n" ); document.write( "df= (# of rows -1)(# of columns) = 1*1 = 1
\n" ); document.write( "----------------------
\n" ); document.write( "Find the critical value of chi-square,
\n" ); document.write( "Left margin = 0.001; Right margin is 7.879
\n" ); document.write( "-------------------------------------
\n" ); document.write( "p-value for the test statistic = 2P(z > 0.015056...) = 98.8%
\n" ); document.write( "Interpret the p-value: 98.8% of the test results could have
\n" ); document.write( "provided stronger evidence to reject Ho..
\n" ); document.write( "Is the conclusion sensitive to the level of significance chosen?
\n" ); document.write( "Not when the p-value is as large as 98.9%
\n" ); document.write( "-----------------
\n" ); document.write( "Which test do you prefer? Why?
\n" ); document.write( "The Chi-Sq is much easier to run and interpret.
\n" ); document.write( "---------------------------
\n" ); document.write( "Cheers,
\n" ); document.write( "Stan H.
\n" ); document.write( "
\n" ); document.write( "
\n" );