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。