document.write( "Question 1064093: Can some please show me how to use the chi-squared distribution to test the hypothesis of this problem?\r
\n" ); document.write( "\n" ); document.write( "A restaurant owner wants to see if the business is good enough for him to purchase a restaurant. He asks the present owner for a breakdown of how many customers that come in for lunch each day and the results are as follows: Monday - 20, Tuesday - 30, Wednesday - 25, Thursday - 40 and Friday - 55. The prospective owner observes the restaurant and finds the following number of customers coming for lunch each day: Monday- 30, Tuesday - 15, Wednesday- 7, Thursday 40, and Friday - 33. At a 95% confidence level determine whether the present owner reported the correct number of customers for lunch each day.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Thank you in advance
\n" ); document.write( "

Algebra.Com's Answer #679209 by rothauserc(4718)\"\" \"About 
You can put this solution on YOUR website!
restaurant owner's sample is 20+30+25+40+55 = 170
\n" ); document.write( "p1 = 20/170 = 0.12 for Monday
\n" ); document.write( "p2 = 30/170 = 0.18 for Tuesday
\n" ); document.write( "p3 = 25/170 = 0.15 for Wednesday
\n" ); document.write( "p4 = 40/170 = 0.23 for Thursday
\n" ); document.write( "p5 = 55/170 = 0.32 for Friday
\n" ); document.write( ":
\n" ); document.write( "prospective owner's sample is 30+15+7+40+33 = 125
\n" ); document.write( ":
\n" ); document.write( "H0: The distribution of the prospective owners sample is 0.12, 0.18, 0.15, 0.23, 0.32
\n" ); document.write( ":
\n" ); document.write( "H1: H0 is false
\n" ); document.write( ":
\n" ); document.write( "strictly speaking in order to use chi-squared distribution we must check for
\n" ); document.write( ":
\n" ); document.write( "min(0.12(125) +0.18(125), 0.15(125), 0.23(125), 0.32(125)) > 5
\n" ); document.write( ":
\n" ); document.write( "min(15, 22, 19, 29, 40) > 5, yes since 15 > 5
\n" ); document.write( ":
\n" ); document.write( "degrees of freedom = 5 - 1 = 4 and a 95% confidence level
\n" ); document.write( ":
\n" ); document.write( "the X^2 table for 4 degrees of freedom and a = 0.05 ( 1 - 95/100)
\n" ); document.write( ":
\n" ); document.write( "the critical value is 9.49
\n" ); document.write( ":
\n" ); document.write( "we reject H0 if X^2 > or = 9.49
\n" ); document.write( ":
\n" ); document.write( "X^2 = summation from 1 to 5 ( observed value - expected value)^2 / expected value
\n" ); document.write( ":
\n" ); document.write( "Note the expected values are (15, 22, 19, 29, 40) and observed values are (30, 15, 7, 40, 33)
\n" ); document.write( ":
\n" ); document.write( "X^2 = 30.02
\n" ); document.write( ":
\n" ); document.write( "***********************************************************************
\n" ); document.write( "we reject H0 - the owner did not report the correct number of customers
\n" ); document.write( "***********************************************************************
\n" ); document.write( ":
\n" ); document.write( "
\n" ); document.write( "
\n" );