s² = Σ(xᵢ − x̄)² / (n − 1)
Enter a data set to compute the sample variance using n - 1 degrees of freedom, measuring dispersion for inferential statistics and hypothesis testing.
📐 計算公式
樣本方差與標準差(本頁程式碼口徑,資料按逗號、分號、空白或全形分隔符逐項嚴格解析):均值 x̄=Σx÷n;樣本方差 s²=Σ(xᵢ−x̄)²÷(n−1);樣本標準差 s=√s²,均保留 4 位小數。校驗:資料框經輸入守衛必填,無法解析的項不計入 n;n<2 時主算停答並清空圖表/明細/差異/歷史;主算與附加層共用同一份解析陣列。判據:無固定分級,資料全部相同則方差為 0。
用 n−1 自由度的樣本方差。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Sample variance | s^2 = sum(x_i - xbar)^2 / (n - 1), Bessel-corrected | ISO 3534-1:2006, Statistics - Vocabulary and symbols |
| Unbiasedness | E[s^2] = sigma^2; dividing by n - 1 is what makes the estimator unbiased | Cramer H., Mathematical Methods of Statistics (1946) |
| Degrees of freedom | df = n - 1 because xbar consumes one linear constraint | NIST/SEMATECH e-Handbook of Statistical Methods §1.3.5.1 |
| Sampling distribution | For a normal population, (n - 1)s^2/sigma^2 follows chi-square(n - 1) | Cochran WG (1934), The distribution of quadratic forms, PNAS |
📌 計算說明
- s² = Σ(xᵢ−x̄)²/(n−1)。
- 分母為 n−1(無偏)。