Carrying Out a Two-Mean Test
引入本课内容
| English | 释义 | 拼音 |
|---|---|---|
| p-value/piː ˈvæljuː/ | P值 | P zhí |
| alpha/ˈælfə/ | 显著性水平 | xiǎn zhù xìng shuǐ píng |
| degrees of freedom/dɪˈɡriːz ɒv ˈfriːdəm/ | 自由度 | zì yóu dù |
| alternative/ɔːlˈtɜːnətɪv/ | 备择假设 | bèi zé jiǎ shè |
| two-sample $t$ statistic | 双样本t统计量 | shuāng yàng běn t tǒng jì liàng |
| tail area | 尾部面积 | wěi bù miàn jī |
| two-sided/tuː ˈsaɪdɪd/ | 双侧 | shuāng cè |
| null distribution | 零假设分布 | líng jiǎ shè fēn bù |
| null model | 零假设模型 | líng jiǎ shè mó xíng |
| test statistic/test stəˈtɪstɪk/ | 检验统计量 | jiǎn yàn tǒng jì liàng |
| matched pairs | 配对样本 | pèi duì yàng běn |
| one-sample $t$ | 单样本t检验 | dān yàng běn t jiǎn yàn |
| group means | 组均值 | zǔ jūn zhí |
| mean difference | 平均差值 | píng jūn chà zhí |
| Independent groups/ˌɪndɪˈpendənt ɡruːps/ | 独立组 | dú lì zǔ |
| variances | 方差 | fāng chà |
| paired data/peəd ˈdeɪtə/ | 配对数据 | pèi duì shù jù |
| independent samples/ˌɪndɪˈpendənt ˈsæmplz/ | 独立样本 | dú lì yàng běn |
四舍五入后的 p 值无法确定边界处的决策
- 显示的 p=0.05 保留了两位小数。实际结果可能是 0.047 或 0.053,在显著性水平 alpha=0.05 时会得出不同的决策。
- 与 alpha 比较之前,应使用足够的精度。四舍五入后的边界值不一定代表精确相等;仅凭 t=2 也不够,还需要知道自由度和备择假设。

求 p 值
- 根据$t$分布,将双样本 $t$ 统计量转换为 p 值。单侧 $H_a$: 取该方向的尾部面积;双侧: 将对称的零假设分布中较小的尾部面积加倍。
- $df$ 由技术工具得出(例如计算器的双样本 $t$ 程序)。在零假设模型下,p 值是检验统计量在备择假设指定的一个或多个方向上至少同样极端的概率。
配对 t 检验
- 如果采用配对样本设计,就对差值进行配对 $t$ 检验。计算每个 $d = x_1 - x_2$,然后对这些 $d$ 进行单样本 $t$ 检验,以检验 $H_0: \mu_d = 0$。
- 检验统计量:$t = \dfrac{\bar{d} - 0}{s_d/\sqrt{n}}$,其中 $df = n - 1$($n$ = 配对数量)。这就是将单样本 $t$ 检验应用于差值。
A paired t-test has twelve complete pairs. What are its degrees of freedom?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
The analysis has twelve differences, so df = 12 - 1 = 11, not 24 - 1.
做出决策
- 将 p 值与 $\alpha$ 比较:p $\le \alpha$ → 拒绝 $H_0$:有令人信服的证据表明均值不同。
- p $> \alpha$ → 不拒绝:没有令人信服的证据。双样本检验和配对检验都使用这一规则。
For a matched-pairs design, the correct test is...
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Collapse pairs to differences, then a one-sample (paired) t-test.
With an unrounded two-sided p-value exactly 0.05 and alpha exactly 0.05, which decision follows the stated p ≤ alpha rule?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Under the stated exact boundary convention, reject. A rounded display of 0.05 could instead represent a value above or below alpha.
The paired t-test statistic is t = d-bar / (s_d/√n) with df = n − 1.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
It's a one-sample t-test on the paired differences.
Running a two-sample test on paired data gives the correct p-value if the arithmetic is right.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Wrong procedure → wrong p-value, even with correct arithmetic.
A paired-test conclusion is phrased about...
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Paired tests are about the mean of the differences.
结合情境得出结论
- 结合具体情境,陈述关于两个总体均值的结论。若拒绝零假设,则说“有令人信服的证据表明两组均值不同”;若未拒绝,则说“没有令人信服的证据”。
- 指明组别、均值衡量的内容及单位。对于配对检验,应围绕均值差表述。
x-bar-1 − x-bar-2 的分布
以 μ1 − μ2 为中心;两个方差在根号下相加。
先根据设计选择检验,再进行计算。配对样本 → 对差值进行配对 $t$ 检验($df = n-1$,由 $s_d$ 得到一个标准误)。独立组 → 双样本 $t$ 检验(方差相加,$df$ 由技术工具得出)。对配对数据进行双样本检验,或对独立组数据进行配对检验,即使每个数字都输入正确,也会得到错误的 p 值。
A valid two-sided test reports p = 0.053 at alpha = 0.05. Which should a report include?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Non-rejection is a threshold decision, not proof of no difference. Report the estimate and how the evidence was obtained.
假设技术工具给出一个有效双样本检验的双侧 p 值为 $0.0473$;$\alpha=0.05$。
- 比较: $0.0473<0.05$ → 拒绝 $H_0$。不要根据保留两位小数的显示结果 $0.05$ 做出决策。
- **结论:**有令人信服的证据表明两组均值不同。
- 配对检验则会根据差值检验 $H_0: \mu_d = 0$。
将推理应用于新情况
- 对独立样本使用双样本检验;对配对测量分析差值。
- 在做出显著性决策之前,保持设计和备择假设不变。
Match each unrounded p-value to the decision at alpha=0.05.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Use the unrounded value or sufficient precision. Failure to reject does not prove equality.
根据 $t$ 统计量求出 p 值(双侧检验取较小尾部面积的两倍),并与 $\alpha$ 比较:若 p $\le \alpha$ 则拒绝,否则不拒绝。对独立组使用双样本 $t$ 检验,对配对样本使用配对 $t$ 检验($t = \frac{\bar{d}}{s_d/\sqrt{n}}$)。结合具体情境,陈述关于两个总体均值的结论。
根据给定数据作答
- 对八个配对差值进行 t 检验。
- 求自由度时,每个完整的配对计为一个差值。
A paired t-test analyses eight complete pairs. What are its degrees of freedom? Explain how the observations are counted.
Pairs, not people counted twice, set the degrees of freedom.
What are the degrees of freedom for 8 pairs?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
8 minus 1 is 7.
出了什么问题?只有网站团队能看到这些信息。