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。