Answer:
a)
Since is a two tailed test, the p value would be:
If we compare the p value and the significance level given
we have that
so we can conclude that we have enough evidence to FAIL to reject the null hypothesis.
Do not reject H0. There is no evidence that the mean temperature in New York City is different from the mean temperature in Phoenix.
Explanation:
Data given and notation
For this case we have the following Data:
New york: 8,95.5,92.2,102,85.4,80,85.4,75.4,79.5,82.4,64.3,65.5,87.7,104,74.3,59.5,82.8
Phoenix:94.2,72,86.8,120.1,114.4,93.7,89.7,104.7,76.6,106.8,98.6,91.5,82,97.7,64.9,82,72,115.2
represent the mean for the sample New york
represent the mean for the sample Phoenix
represent the sample standard deviation for New York
represent the sample standard deviation for Phoenix
sample size for the group New York
sample size for the group Phoneix
t would represent the statistic (variable of interest)
Concepts and formulas to use
We need to conduct a hypothesis in order to check if the means for the two groups are the same, the system of hypothesis would be:
H0:
H1:
If we analyze the size for the samples both are less than 30 so for this case is better apply a t test to compare means, and the statistic is given by:
(1)
t-test: Is used to compare group means. Is one of the most common tests and is used to determine whether the means of two groups are equal to each other.
In order to calculate the mean and the sample deviation we can use the following formulas:
(2)
(3)
Calculate the statistic
First we need to calculate the mean and deviation for each sample, after apply the formulas (2) and (3) we got the following results:
And with this we can replace in formula (1) like this:
Statistical decision
For this case we have a significance level of , now we can calculate the p value for this test. The first step is calculate the degrees of freedom, on this case:
Since is a two tailed test, the p value would be:
If we compare the p value and the significance level given
we have that
so we can conclude that we have enough evidence to FAIL to reject the null hypothesis.
And the best conclusion for this case would be:
Do not reject H0. There is no evidence that the mean temperature in New York City is different from the mean temperature in Phoenix.