Calculate the p-value for a 2-sample t-test given means 64.3 and 53.4, standard dev...
Check the final answer first, then review the worked steps.
Step-by-step solution
- Identify the parameters: From the table, we have two independent samples. For Norway (Group 1): $\bar{x}_1 = 64.3$, $s_1 = 18.2$, $n_1 = 65$. For the US (Group 2): $\bar{x}_2 = 53.4$, $s_2 = 23.9$, $n_2 = 75$.
- State the hypotheses: The economist wants to know if the average annual income is different. This implies a two-tailed test. Let $\mu_1$ be the mean income in Norway and $\mu_2$ be the mean income in the US. The null hypothesis is $H_0: \mu_1 = \mu_2$ and the alternative hypothesis is $H_a: \mu_1 \neq \mu_2$.
- Calculate the test statistic ($t$): The formula for the two-sample t-test statistic is $$t = \frac{\bar{x}_1 - \bar{x}_2}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}}$$ Substituting the values: $$t = \frac{64.3 - 53.4}{\sqrt{\frac{18.2^2}{65} + \frac{23.9^2}{75}}} = \frac{10.9}{\sqrt{\frac{331.24}{65} + \frac{571.21}{75}}} = \frac{10.9}{\sqrt{5.096 + 7.616}} = \frac{10.9}{\sqrt{12.712}} \approx \frac{10.9}{3.565} \approx 3.057$$
- Calculate the degrees of freedom ($df$): Using the conservative approach (smaller of $n_1-1$ or $n_2-1$), $df = 65 - 1 = 64$. Using a more precise Welch-Satterthwaite formula yields a similar result.
- Determine the p-value: For a two-tailed test with $t \approx 3.057$ and $df \approx 130$ (or using calculator software for 2-SampTTest), the area in one tail is approximately $0.00135$. Since it is a two-tailed test, the p-value is $2 \times 0.00135 = 0.0027$.