# t 统计量

t 统计量是一种检验统计量，用于衡量某个估计量——如样本均值、均值之差或回归系数——偏离假设值的程度，计算方法是将该偏离除以其标准误的估计值。在零假设和通常假定之下，该统计量服从学生 t 分布，从而可以在不知道总体标准差的情况下计算 p 值和临界值。它由都柏林健力士啤酒厂的化学家威廉·西利·戈塞特（William Sealy Gosset）于 1908 年引入，他以笔名“Student”发表。<sup>[1](https://www.jstor.org/stable/i315351)</sup><sup> • </sup><sup>[2](https://www.physoc.org/magazine-articles/the-strange-origins-of-the-students-t-test/)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 1908 年由威廉·西利·戈塞特（“Student”）在《均值的或然误差》一文中引入，Biometrika 6(1), 第 1–25 页<sup>[1](https://www.jstor.org/stable/i315351)</sup> |
| 单样本形式 | \( T = (\bar{Y} - \mu_{0})/(s/\sqrt{N}) \)，自由度为 \( N - 1 \)<sup>[3](https://www.itl.nist.gov/div898/handbook/eda/section3/eda352.htm)</sup> |
| 双样本形式 | \( T = (\bar{Y_{1}} - \bar{Y_{2}})/\sqrt{s^{2}_{1}/N_{1} + s^{2}_{2}/N_{2}} \)；在方差相等假定下，合并形式使用 \( \nu = N_{1} + N_{2} - 2 \)<sup>[4](https://www.itl.nist.gov/div898/handbook/eda/section3/eda353.htm)</sup> |
| 方差不等 | Welch–Satterthwaite 自由度，对样本量不等和/或方差不等的情形具有稳健性<sup>[4](https://www.itl.nist.gov/div898/handbook/eda/section3/eda353.htm)</sup> |
| 回归中的使用 | 系数的 t 统计量是估计值除以其标准误，每估计一个参数自由度减一<sup>[5](https://openstax.org/books/introductory-business-statistics-2e/pages/13-4-the-regression-equation)</sup> |
| 解释的局限 | 根据美国统计协会 2016 年声明，由 t 得出的较小 p 值并不衡量效应的大小或结果的重要性<sup>[6](https://www.amstat.org/asa/files/pdfs/p-valuestatement.pdf)</sup> |

## 定义与形式

**单样本情形。** 为检验总体均值是否等于某个指定值 \( \mu_{0} \)，统计量为

\[ T = \frac{\bar{Y} - \mu_{0}}{s/\sqrt{N}} \]

其中 \( \bar{Y} \) 为样本均值，\( s \) 为样本标准差，\( N \) 为样本量，自由度为 \( N - 1 \)。<sup>[3](https://www.itl.nist.gov/div898/handbook/eda/section3/eda352.htm)</sup>当总体标准差未知、必须从数据中估计时——这是实践中的典型情形——使用该统计量而非 z 统计量。<sup>[7](https://www.itl.nist.gov/div898/handbook/prc/section2/prc.htm)</sup>

**双样本情形。** 对于非配对数据，检验 \( H_{0}: \mu_{1} = \mu_{2} \) 使用

\[ T = \frac{\bar{Y_{1}} - \bar{Y_{2}}}{\sqrt{s^{2}_{1}/N_{1} + s^{2}_{2}/N_{2}}} \]

若假定方差相等，则简化为使用合并方差估计 \( s_{p}^{2} = \frac{(N_{1}-1)s^{2}_{1} + (N_{2}-1)s^{2}_{2}}{N_{1} + N_{2} - 2} \) 的形式，当样本量相近时自由度为 \( \nu = N_{1} + N_{2} - 2 \)。<sup>[4](https://www.itl.nist.gov/div898/handbook/eda/section3/eda353.htm)</sup>对于配对数据，统计量基于配对内的差值计算，使用差值的标准差除以配对数的平方根。<sup>[8](https://itl.nist.gov/div898/software/dataplot/refman1/auxillar/t_test.htm)</sup>

每一种形式都遵循同样的模式：观测估计值与其假设值之差，除以该差值的标准误。在所有 t 检验中，t 统计量都按均值之差除以比较的标准误来计算。<sup>[9](https://academic.oup.com/jimb/article/doi/10.1093/jimb/kuae001/7515277)</sup>

## t 分布与自由度

参照分布是学生 t 分布，其离散程度取决于自由度 \( \nu \)。自由度较小时曲线尾部较厚，因此需要更大的 T 值才能拒绝零假设；随着 \( \nu \) 增大，分布趋近于正态分布。临界值按自由度和显著性水平列成表：对于 \( \alpha = 0.05 \) 的双侧检验，拒绝域为 \( |T| > t_{1-\alpha/2,\nu} \)。<sup>[4](https://www.itl.nist.gov/div898/handbook/eda/section3/eda353.htm)</sup><sup> • </sup><sup>[10](https://www.itl.nist.gov/div898/handbook/eda/section3/eda3672.htm)</sup>例如，自由度为 9 时，\( \alpha = 0.05 \) 的双侧临界值为 2.262；自由度为 326 时为 1.9673。<sup>[7](https://www.itl.nist.gov/div898/handbook/prc/section2/prc.htm)</sup><sup> • </sup><sup>[4](https://www.itl.nist.gov/div898/handbook/eda/section3/eda353.htm)</sup>

同一统计量也用于置信区间：均值的双侧置信区间为 \( \bar{Y} \pm t_{1-\alpha/2,\,N-1} \cdot s/\sqrt{N} \)，因此假设检验与相应的区间给出一致的答案。<sup>[3](https://www.itl.nist.gov/div898/handbook/eda/section3/eda352.htm)</sup>

## 韦尔奇修正

当不能假定两个总体方差相等时，合并形式不合适。这就是 Behrens–Fisher 问题，其中 T 的精确分布不易刻画。B. L. 韦尔奇（B. L. Welch）1938 年发表于 Biometrika 的论文《当总体方差不等时两均值之差的显著性》提供了标准近似：一个 t 分布，其自由度由 Welch–Satterthwaite 公式从数据中估计，<sup>[11](https://academic.oup.com/biomet/article-abstract/29/3-4/350/256577)</sup>

\[ \nu = \frac{(s^{2}_{1}/N_{1} + s^{2}_{2}/N_{2})^{2}}{(s^{2}_{1}/N_{1})^{2}/(N_{1}-1) + (s^{2}_{2}/N_{2})^{2}/(N_{2}-1)} \]

这些自由度通常是非整数，对样本量不等和/或方差不等的情形具有稳健性。<sup>[4](https://www.itl.nist.gov/div898/handbook/eda/section3/eda353.htm)</sup>软件实践反映了这一点：R 的 `t.test()` 默认 `var.equal = FALSE`，运行韦尔奇 t 检验并向下调整自由度，这就是韦尔奇结果的自由度通常是像 27.19 这样的非整数的原因；设置 `var.equal = TRUE` 则改为运行经典的合并学生 t 检验。<sup>[12](https://casrai.org/guides/t-test-in-r)</sup>比较方差不等情形下各种程序的模拟研究发现，在宽松的程序中，韦尔奇 t 检验的第一类错误率始终低于标准 t 检验。<sup>[9](https://academic.oup.com/jimb/article/doi/10.1093/jimb/kuae001/7515277)</sup>

## 两均值比较之外的用途

**回归。** 在线性回归中，每个系数的 t 统计量是估计值除以其标准误。自由度是观测数每估计一个参数减一（包括截距），因此有 \( k \) 个自变量的模型，其系数检验的自由度为 \( n - k - 1 \)。多重共线性会膨胀标准误，从而产生较小的 t 值，可能使真实关系在统计上显得不显著。<sup>[5](https://openstax.org/books/introductory-business-statistics-2e/pages/13-4-the-regression-equation)</sup><sup> • </sup><sup>[5](https://openstax.org/books/introductory-business-statistics-2e/pages/13-4-the-regression-equation)</sup>

**相关。** 为检验 \( H_{0}: \rho = 0 \)，统计量 \( t^{*} = \dfrac{r\sqrt{n-2}}{\sqrt{1-r^{2}}} \) 服从自由度为 \( n - 2 \) 的 t 分布。<sup>[13](https://online.stat.psu.edu/stat500/Lesson09)</sup>

**质量控制与计量学。** NIST 的测量实践使用 t 统计量检查过程均值是否与假定值保持一致，并可随时间监测计算出的 t 统计量以检测测量标准的漂移。<sup>[7](https://www.itl.nist.gov/div898/handbook/prc/section2/prc.htm)</sup><sup> • </sup><sup>[14](https://www.nist.gov/system/files/documents/2019/05/13/section-8-statistics-techniques-20190506.pdf)</sup>

## 假定与稳健性

经典 t 检验要求样本是从所定义的总体中随机抽取的，总体分布服从正态分布，合并形式要求这些正态总体方差相等，且样本之间统计独立。<sup>[15](https://pubmed.ncbi.nlm.nih.gov/7717947/)</sup>t 检验对于方差相同的正态分布观测是最优的，并且在样本量不是非常小时对偏离正态具有稳健性；当方差不同时，允许方差不等的一种修正 t 检验在模拟中优于传统 t 检验和 Wilcoxon–Mann–Whitney 检验。<sup>[16](https://pubmed.ncbi.nlm.nih.gov/11165471/)</sup>对小样本有序数据（取值如 0、1、2、3，样本量 5 到 20）的研究发现，双样本 t 检验具有稳健性，最大实际显著性水平接近声明水平。<sup>[17](https://pubmed.ncbi.nlm.nih.gov/3576020/)</sup>小样本还会增加第二类错误的风险，样本量不等会放大方差不等的影响。<sup>[15](https://pubmed.ncbi.nlm.nih.gov/7717947/)</sup>

## 统计量的解释及其 p 值

t 统计量被转换为 p 值，即在零假设下，检验统计量至少与观测值一样极端的概率。<sup>[18](https://www.itl.nist.gov/div898/handbook/prc/section1/prc131.htm)</sup>针对广泛存在的误用，美国统计协会于 2016 年发布了关于 p 值的声明，阐明了直接适用于基于 t 的检验的原则：p 值可以显示数据与给定统计模型的不相容程度，但不能表明所研究假设为真的概率；p 值和统计显著性都不能告诉我们效应有多大或结果可能多重要。给定足够大的样本或足够精确的测量，即使微小的效应也能产生小的 p 值；而当样本小或测量缺乏精度时，大的效应也可能产生平平无奇的 p 值。<sup>[6](https://www.amstat.org/asa/files/pdfs/p-valuestatement.pdf)</sup>该声明还告诫，科学结论不应仅基于 p 值是否通过 0.05 之类的阈值，并建议报告效应估计值及其不确定性度量（如置信区间）。<sup>[6](https://www.amstat.org/asa/files/pdfs/p-valuestatement.pdf)</sup>美国统计协会后来的工作组声明（2021 年）确认，p 值和显著性检验在正确应用和解释时是有效且重要的工具，不应被抛弃，同时指出当需要采取行动时阈值是有帮助的，并应根据研究目标来定义。<sup>[19](https://hdsr.mitpress.mit.edu/pub/50vl2b07/release/2?readingCollection=c6a3a10e)</sup>

## 历史

威廉·西利·戈塞特（William Sealy Gosset，1876–1937）受雇于健力士（Guinness），当时爱尔兰最大的啤酒厂，该厂寻求以精心控制的工业规模引入酿造，需要严格的质量控制。他的任务是经济地评估农业投入品（如发芽大麦、啤酒花和酵母）的质量，这需要从小样本实验中得出结论并应用于大规模酿造。<sup>[2](https://www.physoc.org/magazine-articles/the-strange-origins-of-the-students-t-test/)</sup>健力士有不公布公司数据的政策，只允许戈塞特匿名且不带公司数据发表，因此他以笔名“Student”写作，他的 21 篇出版物中有 19 篇以此名发表，据说这个名字取自他笔记本《学生科学笔记本》的封面。<sup>[2](https://www.physoc.org/magazine-articles/the-strange-origins-of-the-students-t-test/)</sup>他 1908 年的论文《均值的或然误差》发表于 Biometrika 第 6 卷第 1 期第 1–25 页。<sup>[1](https://www.jstor.org/stable/i315351)</sup>该分布对实验设计和抽样理论的影响远远超出了其创始人的初衷。<sup>[2](https://www.physoc.org/magazine-articles/the-strange-origins-of-the-students-t-test/)</sup>

## References

1. [Student (1908). "The Probable Error of a Mean". Biometrika 6(1): 1–25, JSTOR volume listing](https://www.jstor.org/stable/i315351)
2. [The strange origins of the Student's t-test, The Physiological Society](https://www.physoc.org/magazine-articles/the-strange-origins-of-the-students-t-test/)
3. [NIST/SEMATECH e-Handbook 1.3.5.2, Confidence Limits for the Mean](https://www.itl.nist.gov/div898/handbook/eda/section3/eda352.htm)
4. [NIST/SEMATECH e-Handbook 1.3.5.3, Two-Sample t-Test for Equal Means](https://www.itl.nist.gov/div898/handbook/eda/section3/eda353.htm)
5. [OpenStax, Introductory Business Statistics 2e, 13.4 The Regression Equation](https://openstax.org/books/introductory-business-statistics-2e/pages/13-4-the-regression-equation)
6. [ASA Releases Statement on Statistical Significance and P-Values (2016)](https://www.amstat.org/asa/files/pdfs/p-valuestatement.pdf)
7. [NIST/SEMATECH e-Handbook 7.2.2, Are the data consistent with the assumed process mean?](https://www.itl.nist.gov/div898/handbook/prc/section2/prc.htm)
8. [NIST Dataplot, T TEST command](https://itl.nist.gov/div898/software/dataplot/refman1/auxillar/t_test.htm)
9. [Discussion and evaluation of statistical procedures used by JIMB authors when comparing means, Journal of Industrial Microbiology and Biotechnology](https://academic.oup.com/jimb/article/doi/10.1093/jimb/kuae001/7515277)
10. [NIST/SEMATECH e-Handbook 1.3.6.7.2, Critical Values of the Student's t Distribution](https://www.itl.nist.gov/div898/handbook/eda/section3/eda3672.htm)
11. [B. L. Welch (1938). "The Significance of the Difference Between Two Means When the Population Variances Are Unequal". Biometrika 29(3-4): 350–362](https://academic.oup.com/biomet/article-abstract/29/3-4/350/256577)
12. [t.test() in R: Syntax & Reporting, CASRAI](https://casrai.org/guides/t-test-in-r)
13. [STAT 500, Lesson 9: Linear Regression Foundations, Penn State](https://online.stat.psu.edu/stat500/Lesson09)
14. [NIST Section 8, Statistical Techniques](https://www.nist.gov/system/files/documents/2019/05/13/section-8-statistics-techniques-20190506.pdf)
15. [J. Ludbrook (1995). Issues in biomedical statistics: comparing means under normal distribution theory. ANZ Journal of Surgery](https://pubmed.ncbi.nlm.nih.gov/7717947/)
16. [E. Skovlund and G. U. Fenstad (2001). Should we always choose a nonparametric test when comparing two apparently nonnormal distributions? Journal of Clinical Epidemiology](https://pubmed.ncbi.nlm.nih.gov/11165471/)
17. [T. Heeren and R. D'Agostino (1987). Robustness of the two independent samples t-test when applied to ordinal scaled data. Statistics in Medicine](https://pubmed.ncbi.nlm.nih.gov/3576020/)
18. [NIST/SEMATECH e-Handbook 7.1.3.1, Critical values and p values](https://www.itl.nist.gov/div898/handbook/prc/section1/prc131.htm)
19. [ASA President's Task Force Statement on Statistical Significance and Replicability, Harvard Data Science Review (2021)](https://hdsr.mitpress.mit.edu/pub/50vl2b07/release/2?readingCollection=c6a3a10e)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Hypothesis testing

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/t-statistic

English original: https://www.edgepedia.org/t-statistic
