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(无偏)。