Question 1064093
restaurant owner's sample is 20+30+25+40+55 = 170
p1 = 20/170 = 0.12 for Monday
p2 = 30/170 = 0.18 for Tuesday
p3 = 25/170 = 0.15 for Wednesday
p4 = 40/170 = 0.23 for Thursday
p5 = 55/170 = 0.32 for Friday
:
prospective owner's sample is 30+15+7+40+33 = 125
:
H0: The distribution of the prospective owners sample is 0.12, 0.18, 0.15, 0.23, 0.32
:
H1: H0 is false
:
strictly speaking in order to use chi-squared distribution we must check for
:
min(0.12(125) +0.18(125), 0.15(125), 0.23(125), 0.32(125)) > 5
:
min(15, 22, 19, 29, 40) > 5, yes since 15 > 5
:
degrees of freedom = 5 - 1 = 4 and a 95% confidence level
:
the X^2 table for 4 degrees of freedom and a = 0.05 ( 1 - 95/100)
:
the critical value is 9.49
:
we reject H0 if X^2 > or = 9.49
:
X^2 = summation from 1 to 5 ( observed value - expected value)^2 / expected value
:
Note the expected values are (15, 22, 19, 29, 40) and observed values are (30, 15, 7, 40, 33)
:
X^2 = 30.02
:
***********************************************************************
we reject H0 - the owner did not report the correct number of customers
***********************************************************************
: