t = (x̄ − μ₀) / (s/√n), df=n−1

Enter sample data (or mean, standard deviation and size) to test a sample mean against a hypothesised population mean when the population SD is unknown, returning t, df and p.

📐 计算公式
单样本 t 检验(本页代码口径,calcTool 主算与增强面板挂接共存):t=(x̄−μ₀)÷(s÷√n)、df=n−1、双尾 p=betai(df÷2,0.5,df÷(df+t²))(不完全贝塔函数数值解);增强量:标准误 se=s÷√n、Cohen d=(x̄−μ₀)÷s、95% 区间=x̄±t_crit×se,t_crit 由 t 分布数值反解(不再按自由度分档近似)。校验:四项空值即提示并中止;主算与增强均要求 s>0 且 n 为 ≥2 的整数(否则自由度 ≤0、p 值无定义)。判据:双侧 p<0.05 拒绝 H0(不再用 |t|>2 或分档临界值近似);|d|≥0.8 大 / ≥0.5 中 / ≥0.2 小 / 其余可忽略;n<15 附正态性提示。

总体标准差未知时,用样本标准差检验均值偏离。

📌 计算说明
  • σ 未知时改用 t 检验。
  • df=n−1。