In: Statistics and Probability
1.
Suppose, random variable X denotes labor cost (in dollars).
We have sample values. But we do not know population standard deviation (or variance). So, we have to perform one sample t-test.
We have to test for null hypothesis
against the alternative hypothesis
Our test statistic is given by
Here,
Sample size
Sample mean
Sample standard deviation
Degrees of freedom
[Using R-code 'pt(-2.422407,19)']
Level of significance
We reject our null hypothesis if
Here, we observe that
So, we cannot reject our null hypothesis.
Based on the given data we can conclude that there is no significant evidence that that average labor costs involved with this service is less than $10.00.
Hence, based on this evidence, the dealership would not lower its cost for a basic oil change.
P-value (probability of being extreme than test statistic) is as follows.
Decision rule for this hypothesis test is as follows.
Critical value is given by [Using R-code 'qt(0.01,19)']
We reject our null hypothesis if
So, critical region (rejection region) is as follows.
2.
Suppose, random variable X denotes time (in minutes) required by a customer.
We have sample values. But we do not know population standard deviation (or variance). So, we have to perform one sample t-test.
We have to test for null hypothesis
against the alternative hypothesis
Our test statistic is given by
Here,
Sample size
Sample mean
Sample standard deviation
Degrees of freedom
[Using R-code 'pt(-1.780098,29)+1-pt(1.780098,29)']
Level of significance
We reject our null hypothesis if
Here, we observe that
So, we reject our null hypothesis.
Hence, based on the given data we can conclude that there is significant evidence that average time with the new ATM machines is different than the average time with the old ATM machines.
P-value (probability of being extreme than test statistic) is as follows.
P-value is equally distributed in two tails.
Decision rule for this hypothesis test is as follows.
Critical value is given by [Using R-code 'qt(1-0.10/2,29)']
We reject our null hypothesis if
So, critical region (rejection region) is as follows.