返回题库

购物习惯:双样本 t 检验的显著性水平

Shopping Habits

专题
Probability / 概率
难度
L6

题目详情

研究者分别独立随机抽取 20 位周末购物者与 20 位工作日购物者。

  • 周末:均值 78,标准差 22。
  • 工作日:均值 67,标准差 20。

假设正态、方差齐性。检验两群体均值是否有显著差异(双侧)。求达到的显著性水平(p 值),保留 3 位有效数字。

A researcher is investigating the temporal effect of shopping habits at the mall. She independently and randomly selects 20 weekend and 20 weekday shoppers and finds that weekend shoppers spend 78 dollar on average with a standard deviation of 22dollar, while weekday shoppers spend 67onaveragewithastandarddeviationof67 on average with a standard deviation of20. The researcher would like to test if there is sufficient evidence to claim that there is a significant difference in the average amount spent by weekend and weekday shoppers. What is the attained significance level? Round to 3 significant figures. Assume simple random sampling, variance homogeneity, and that spending is approximately normally distributed.

解析

合并标准差

Sp=19222+192023821.024.S_p=\sqrt{\frac{19\cdot 22^2+19\cdot 20^2}{38}}\approx 21.024.

t 统计量(自由度 38):

t=7867Sp1/20+1/201.655.t=\frac{78-67}{S_p\sqrt{1/20+1/20}}\approx 1.655.

双侧 p 值约为 0.1060.106(3 位有效数字)。


Original Explanation

We are testing the null hypothesis H0:μ1=μ2H_0: \mu_1 = \mu_2 against the alternative hypothesis Ha:μ1μ2H_a: \mu_1 \neq \mu_2. Because neither sample size is sufficiently large, we must use a tt test with 38 degrees of freedom:

t=x1ˉx2ˉSp1n1+1n2 where Sp=(n11)S12+(n21)S22n1+n22t = \frac{\bar{x_1} - \bar{x_2}}{S_p \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}} \text{ where } S_p = \sqrt{\frac{(n_1-1)S_1 ^2 + (n_2-1)S_2 ^2}{n_1+n_2-2}}

Solving for SpS_p:

Sp=(201)×222+(201)×20220+20221.024S_p = \sqrt{\frac{(20-1) \times 22^2 + (20-1) \times 20^2}{20 + 20 - 2}} \approx 21.024

Solving for tt:

t=786721.024120+1201.655t = \frac{78 - 67}{21.024 \sqrt{\frac{1}{20} + \frac{1}{20}}} \approx 1.655

Because this is a two-tailed test, the attained significance level is double the p-value of a one-tailed test. Thus,

p-value=2×P(t1.655)=2×0.053080.106p\text{-value} = 2 \times P(t \geq 1.655) = 2 \times 0.05308 \approx 0.106