配对 t 检验计算器
输入同一组对象的配对测量值(如服药前后),计算每对差值及其均值与标准差,用配对 t 检验判断差值是否显著不为零,输出 t 统计量、自由度与 p 值,用于前后对…
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.
📐 计算公式
df=n−1。
对同一对象前后/配对测量的差值进行检验。
📌 计算说明
- 用于前后对照实验。
- df=n−1。
📚 深度解析:配对样本 t 检验
💡 常见使用场景
- 同体前后测差异:t=d̄/(sd/√n),df=n−1。
- 消除个体间变异、提高灵敏度。
- 如用药前后血压差。
前后测
差值均值 d̄=3、差值 sd=4、n=20:t=3/(4/√20)=3/0.894≈3.354,df=19。临界≈2.093,显著(p<0.01),干预有效。
无效应
d̄=0.5:t=0.5/0.894≈0.56,不显著。
❓ 常见问题(FAQ)
- 为何用配对而非独立 t?
- 配对控制个体基线差异,误差更小、功效更高;前提是同一对象前后或配对设计。
- 差值需正态?
- 要求差值近似正态,n 大时中心极限可放宽。