独立双样本 t 检验计算器

Independent Two-Sample t-Test Calculator

📐 计算公式
t = (x̄₁−x̄₂)/√(s_p²(1/n₁+1/n₂))
独立双样本 t 统计量用两组均值之差除以合并标准误,衡量两组总体均值是否有显著差异。合并方差 s_p² 按两组样本量加权平均,自由度 df = n₁ + n₂ − 2。|t| 越大,越倾向拒绝「两组均值相等」的原假设。

Enter two independent samples (means, standard deviations and sizes) to compute the t value and p value and test whether the two population means differ significantly.

📌 计算说明
  • 要求两组方差齐。
  • 方差不齐应 Welch 校正。

📚 深度解析:独立样本 t 检验

💡 常见使用场景

两组比较
m1=85、m2=80、sp=10、n1=n2=30:t=5/√(100×(2/30))=5/√6.667=5/2.582≈1.936,df=58。|t|>2.00 临界才显著(此处边缘)。
差异更大
m1−m2=10:t=10/2.582≈3.87,df=58 显著(p<0.001)。

❓ 常见问题(FAQ)

方差不齐怎么办?
用 Welch t 检验(df 经 Welch-Satterthwaite 校正),更稳健,多数软件默认。
t 与 z 检验区别?
σ 未知用小样本 t(用 s、t 分布);σ 已知或大样本用 z。