The complete question is :
People tend to be more generous after receiving good news. Are they less generous after receiving bad news? The average tip left by adult Americans is 20%. Give 20 patrons of a restaurant a message on their bill warning them that tomorrow’s weather will be bad and record the tip percentage they leave. Table 1 contains the tips as a percentage of the total bill.
Table : 18.0 19.1 19.2 18.8 18.4 19.0 18.5 16.1 16.8 18.2 14.0 17.0 13.6 17.5 20.0 20.2 18.8 18.0 23.2 19.4
Suppose that tip percentage is Normal with ? = 2 and assume that the patrons in this study are a random sample of all patrons of this restaurant. Is there good evidence that the mean tip percentage for all patrons of this restaurant is less than 20 when they receive a message warning them of tomorrow’s bad weather? State and and carry out a significance test. Use significance level 0.05.
Solution:
The given data is :
18.0, 19.1, 19.2, 18.8, 18.4, 19.0, 18.5, 16.1, 16.8, 18.2, 14.0, 17.0, 13.6, 17.5, 20.0, 20.2, 18.8, 18.0, 23.2, 19.4
Therefore, sample mean,
= 18.19
Now test : μ < 20 with normal distance
Hypothesis test:
This is the lower tailed test.
n = 20
Significant level, α = 0.05
Test statistics,
≈ -4.05
P value is in direction of alternative hypothesis or
Since, , P value = P(Z<-4.05)
P value is the area to the left of the test statistics = -4.05 (from the figure)
P value = P(Z< -4.05) = 0.000 (from z table)
P value = 00000
Rejection rule : Reject if P value < α
Using excel functional normdist or TI's function normaldf answer is 0.0000259078
Decision : Since 0.0000 < 0.05, we reject the null hypothesis
Hence at 5% significance level, we have sufficient evidence to conduct that μ is less than 20.