Compare mean ages of employees at Company A and Company B
Check the final answer first, then review the worked steps.
Answer
There is strong evidence that employees at company A are older than those at company B.
Step-by-step solution
- Identify the hypotheses: The researcher wants to test if employees at Company A are older on average than those at Company B. Let $\mu_A$ be the mean age of employees at Company A and $\mu_B$ be the mean age at Company B. The null hypothesis is $H_0: \mu_A = \mu_B$ (or $\mu_A - \mu_B = 0$), and the alternative hypothesis is $H_a: \mu_A > \mu_B$ (a right-tailed test).
- Calculate the test statistic: We use the two-sample t-test formula: $t = \frac{(\bar{x}_A - \bar{x}_B) - 0}{\sqrt{\frac{s_A^2}{n_A} + \frac{s_B^2}{n_B}}}$. Plugging in the values: $\bar{x}_A = 36.5, s_A = 6.4, n_A = 30$ and $\bar{x}_B = 32.0, s_B = 5.6, n_B = 40$. The numerator is $36.5 - 32.0 = 4.5$. The denominator is $\sqrt{\frac{6.4^2}{30} + \frac{5.6^2}{40}} = \sqrt{\frac{40.96}{30} + \frac{31.36}{40}} = \sqrt{1.3653 + 0.784} = \sqrt{2.1493} \approx 1.466$. Thus, $t = \frac{4.5}{1.466} \approx 3.07$.
- Determine the p-value: Using a t-distribution table or calculator with degrees of freedom (using the smaller of $n_A-1$ or $n_B-1$, which is $29$, or a conservative estimate), for $t = 3.07$ with $df \approx 58$ (Welch-Satterthwaite), the p-value is approximately $0.0016$.
- Conclusion: Since the p-value ($0.0016$) is much less than the significance level $\alpha = 0.05$, we reject the null hypothesis. There is strong evidence to support the claim that employees at Company A are older on average than those at Company B.