t = d̄ / (s_d/√n), df=n−1

Enter paired measurements of the same subjects (e.g. before and after treatment) to compute the mean and SD of differences and test whether the difference is non-zero, returning t, df and p.

📐 计算公式
配对样本 t 检验(本页代码口径):t=d̄÷(s_d÷√n)(d̄ 差值均值、s_d 差值标准差、n 配对数);自由度 df=n−1;双侧 p 值按不完全贝塔函数 p=I(df÷2, 0.5, df÷(df+t²)) 数值求得。校验:d̄、s_d、n 必填,s_d 必须大于 0,n 必须是至少为 2 的整数。判据:无固定阈值分支,通行口径 p<0.05 视为差值统计显著。

对同一对象前后/配对测量的差值进行检验。

Formula & Standard References

Item Formula / Note Source / Standard
Difference scores d_i = x1_i - x2_i (two measurements on the same unit) Student (1908), The probable error of a mean, Biometrika 6(1)
Paired t statistic t = dbar / (s_d / sqrt(n)), df = n - 1 NIST/SEMATECH e-Handbook of Statistical Methods §1.3.5.4
Standard deviation of differences s_d = sqrt( sum(d_i - dbar)^2 / (n - 1) ) NIST/SEMATECH e-Handbook of Statistical Methods §1.3.5.4
Effect size Cohen's d_z = dbar / s_d Cohen J., Statistical Power Analysis for the Behavioral Sciences (1988)
📌 计算说明
  • 用于前后对照实验。
  • df=n−1。