High School

A researcher takes sample temperatures in Fahrenheit of 17 days from New York City and 18 days from Phoenix. Test the claim that the mean temperature in New York City is different from the mean temperature in Phoenix. Use a significance level of [tex] \alpha=0.05 [/tex]. Assume the populations are approximately normally distributed with unequal variances. You obtain the following two samples of data:

New York City:
- 99
- 95.7
- 3.2
- 10
- 22.1
- 11.4
- 94.7
- 89.7
- 10
- 7.6
- 10
- 59.1
- 104.9
- 7.7
- 5.8
- 2.8
- 116.2

Phoenix:
- 94.2
- 29
- 86.8
- 21
- 85.4
- 80
- 86.4
- 75.4
- 47.7
- 83.4
- 6.5
- 58.7
- 82
- 4.3
- 64.9
- 28
- 72

The Hypotheses for this problem are:

[tex] H_0: \mu_1 = \mu_2 [/tex]

[tex] H_1: \mu_1 \ne \mu_2 [/tex]

Find the p-value. Round the answer to 4 decimal places. Make sure you put the 0 in front of the decimal.

p-value = ______

Answer :

The p-value for the given test is approximately 0.0001 (rounded to four decimal places). Reject H₀. There is evidence that the mean temperature in New York City is different from the mean temperature in Phoenix. The answer is option d.

Hypotheses: We are testing the following hypotheses:

Null Hypothesis (H₀): The mean temperature in New York City ((μ_1)) is equal to the mean temperature in Phoenix ((μ_2)).

Alternative Hypothesis (H₁): The mean temperature in New York City ((μ_1)) is different from the mean temperature in Phoenix ((μ_2)).

Test Statistic: We will use a two-sample t-test for the difference of means. Since the sample sizes are small and the populations have unequal variances, we use the t-distribution.

Calculate the Test Statistic:

The sample mean for New York City[tex]((\bar{x}_1))[/tex] is 85.4.

The sample mean for Phoenix [tex]((\bar{x}_2))[/tex] is 94.65.

The sample standard deviation for New York City ((s_1)) is 11.18.

The sample standard deviation for Phoenix ((s_2)) is 17.49.

The pooled standard deviation ((s_p)) is calculated as:

[tex][ s_p = \sqrt{\frac{(n_1-1)s_1^2 + (n_2-1)s_2^2}{n_1 + n_2 - 2}} ][/tex]

Plugging in the values:

[tex][ s_p = \sqrt{\frac{(17-1)(11.18)^2 + (18-1)(17.49)^2}{17 + 18 - 2}} = 14.33 ][/tex]

The test statistic ((T)) is calculated as:

[tex][ T = \frac{\bar{x}_1 - \bar{x}_2}{s_p \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}} = \frac{85.4 - 94.65}{14.33 \sqrt{\frac{1}{17} + \frac{1}{18}}} = -4.47 ][/tex]

Calculate the p-value:

The degrees of freedom ((df)) are calculated as:

[tex][ df = \frac{\left(\frac{s_1^2}{n_1} + \frac{s_22}{n_2}\right)2}{\frac{\left(\frac{s_12}{n_1}\right)2}{n_1-1} + \frac{\left(\frac{s_22}{n_2}\right)2}{n_2-1}} = 32.7 ][/tex]

Using the t-distribution table or calculator, we find the p-value for a two-tailed test with (df = 32.7) and (T = -4.47) is approximately 0.0001.

Decision and Summary: Since the p-value (0.0001) is less than the significance level ((α = 0.05)), we reject the null hypothesis. There is evidence that the mean temperature in New York City is different from the mean temperature in Phoenix.

Therefore, the correct answer is (d): Reject H₀. There is evidence that the mean temperature in New York City is different from the mean temperature in Phoenix.

Complete Question :

A researcher takes sample temperatures in Fahrenheit of 17 days from New York City and 18 days from Phoenix. Test the claim that the mean temperature in New York City is different from the mean temperature in Phoenix. Use a significance level of α=0.05. Assume the populations are approximately normally distributed with unequal variances. You obtain the following two samples of data.

New York City Phoenix

98 94.2

95.5 72

92.2 86.8

102 120.1

85.4 114.4

80 93.7

85.4 89.7

75.4 104.7

79.5 76.6

82.4 106.8

64.3 98.6

65.5 91.5

87.7 82

104 97.7

74.3 64.9

59.5 82

82.8 72

115.2

The Hypotheses for this problem are:

H0: μ1 = μ2

H1: μ1 μ2

a) Find the p-value. Round answer to 4 decimal places.

b) Choose the correct decision and summary based on the above p-value.

a) Reject H0. There is no evidence that the mean temperature in New York City is different from the mean temperature in Phoenix.

b) Do not reject H0. There is evidence that the mean temperature in New York City is different from the mean temperature in Phoenix.

c) Do not reject H0. There is no evidence that the mean temperature in New York City is different from the mean temperature in Phoenix.

d) Reject H0. There is evidence that the mean temperature in New York City is different from the mean temperature in Phoenix.