# 中心矩

随机变量或数据集的中心矩，是将偏离均值的偏差取幂后的期望值：对于均值为 μ 的随机变量 X，第 n 阶中心矩为 μ_n = E[(X − μ)^n]。中心矩度量的是分布围绕其自身中心的形状，这与围绕原点取的原点矩形成对照；描述性统计中的标准量——方差、偏度和峰度——正是以缩放形式出现的第二、第三和第四阶中心矩。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Uniform.moment.html)</sup>

| 要点 | 说明 |
|---|---|
| 定义 | 对于密度为 f、均值为 μ = E[X] 的连续变量，μ_n(X) = ∫(x − μ)^n f(x) dx；离散变量则以支撑集上的求和代替积分。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Uniform.moment.html)</sup> |
| 样本形式 | m_k = (1/n) Σ (x_i − c)^k，其中 c 为中心（默认为样本均值），分母不做自由度校正。<sup>[2](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.moment.html)</sup> |
| 前两阶 | 第一阶中心矩按构造即为 0；第二阶即方差。<sup>[8](https://docs.sympy.org/latest/modules/stats.html)</sup> |
| 正态分布 | 正态变量的第四阶中心矩为 3σ⁴，这是超额峰度惯例的依据。<sup>[8](https://docs.sympy.org/latest/modules/stats.html)</sup> |
| 标准化形式 | 将 μ_n 除以 σ^n（其中 σ = √μ₂），得到尺度不变的标准化矩。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Uniform.moment.html)</sup> |
| 存在性 | 并非所有分布都具有各阶有限的矩；某些阶可能无定义或为无穷大。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Uniform.moment.html)</sup> |
| 计算 | 直接的两遍公式在数值上是稳定的；将中心矩展开为原点矩可以单遍累积，但对未缩放的数据数值不稳定。<sup>[4](https://pages.nist.gov/cmomy/examples/usage/motivation.html)</sup> |

## 定义及其与其他矩的关系

对于随机变量 X，关于点 a 的 n 阶原点矩为 E[(X − a)^n]。当 a 为原点时，这就是通常的原点矩 μ′_n = E[X^n]；当 a 为均值 μ = μ′₁ 时，它就是中心矩 μ_n = E[(X − μ)^n]。对于支撑集 χ 上密度为 f 的连续分布，中心矩写作积分 ∫_χ (x − μ)^n f(x) dx，离散情形则以求和代替积分。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Uniform.moment.html)</sup> 对于样本 x₁, …, x_n，关于中心 c 的第 k 阶中心矩为 m_k = (1/n) Σᵢ (xᵢ − c)^k；SciPy 的 `scipy.stats.moment` 等软件默认将 c 取为样本均值，并除以观测个数而不做自由度校正。<sup>[2](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.moment.html)</sup>

中心矩与原点矩可以相互转换。二项式展开给出变换式 E[(X − b)^n] = Σᵢ₌₀ⁿ E[(X − a)^i] · C(n, i) · (a − b)^(n−i)，因此关于原点的原点矩决定中心矩，反之亦然；令 b = μ、a = 0 即可将原点矩转换为中心矩。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Uniform.moment.html)</sup> 例如，第二阶中心矩等于 E[X²] − E[X]²，第三阶等于 E[X³] − 3·E[X²]·E[X] + 2·E[X]³。<sup>[4](https://pages.nist.gov/cmomy/examples/usage/motivation.html)</sup>

将中心矩除以标准差 σ = √μ₂ 的 n 次幂，得到标准化矩 μ̃_n = μ_n / σ^n，这是一个尺度不变量，在变量乘以常数时保持不变。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Uniform.moment.html)</sup>

## 有名称的各阶矩

前四阶中心矩承载着标准的描述性词汇。第一阶恒为零，因为偏离均值之和为零。第二阶是方差，即偏离均值的平方的平均值。第三阶经标准化后即为偏度，度量分布缺乏对称性的程度；第四阶经标准化后即为峰度，度量数据相对于正态分布是重尾还是轻尾。<sup>[3](https://www.itl.nist.gov/div898/handbook/eda/section3/eda35b.htm)</sup> 对于单变量数据 Y₁, …, Y_N，NIST《工程统计手册》给出的样本偏度为 g₁ = [Σᵢ (Yᵢ − Ȳ)³ / N] / s³，其中标准差的分母用 N 而非 N − 1。<sup>[3](https://www.itl.nist.gov/div898/handbook/eda/section3/eda35b.htm)</sup>

**峰度的惯例。** 按原始的（皮尔逊）定义，标准正态分布的峰度为三。因此许多文献采用超额峰度，[Σᵢ (Yᵢ − Ȳ)⁴ / N] / s⁴ − 3，使标准正态的峰度为零；按此定义，正峰度表示重尾分布，负峰度表示轻尾分布。采用哪种定义属于惯例问题，软件可能报告其中任一种，因此在比较计算值时必须核查所用的惯例。<sup>[3](https://www.itl.nist.gov/div898/handbook/eda/section3/eda35b.htm)</sup>

**对尾部的敏感性。** 由于高阶中心矩对极端偏差赋予很大权重，偏度和峰度与均值和标准差一样，可能被尾部的极端值扭曲。从柯西分布（一种对称的重尾分布）中抽取样本，展示时仅显示 −10 到 10 之间的值，得到的偏度为 69.99、峰度为 6,693，这些值是由重尾而非数据可见的主体所驱动的。<sup>[3](https://www.itl.nist.gov/div898/handbook/eda/section3/eda35b.htm)</sup> 显著的偏度或峰度表明数据非正态；常见的应对办法是采用稳定方差的变换（如 Box-Cox 变换），或用非正态分布（如指数分布、威布尔分布或对数正态分布）建模。<sup>[3](https://www.itl.nist.gov/div898/handbook/eda/section3/eda35b.htm)</sup>

对于正态分布，中心矩取简单的值：第二阶为 σ²，第四阶为 3σ⁴，所有奇数阶中心矩为零，这正是高斯分布的比值 μ₄/σ⁴ 等于 3 的原因。<sup>[8](https://docs.sympy.org/latest/modules/stats.html)</sup>

## 计算

存在两条计算路线，在稳定性与遍历次数之间权衡。直接公式先计算均值，再对偏差的幂取平均；它在数值上稳定，但需要两遍遍历数据。将中心矩展开为原点矩，如 E[(x − x̄)²] = E[x²] − E[x]²，可以单遍完成，便于在数据到达时累积，但大而近乎相等的量相减会造成数值不稳定。在一个有记载的例子中，数据为 y = 0.1·x + 10⁴，波动相对于偏移量很小，原点矩路线在第三阶中心矩上产生约 −4.7 × 10² 的相对误差，而两遍中心矩路线则保持在 10⁻⁹ 附近。<sup>[4](https://pages.nist.gov/cmomy/examples/usage/motivation.html)</sup>

**单遍与并行更新。** 流式和分布式场景需要在不存储数据的情况下计算中心矩。菲利普·佩贝（Philippe Pébay）的报告 SAND2008-6212（2008 年 9 月 1 日）给出了任意阶中心矩的成对更新公式，这对大规模分布式数据集上的并行计算很有意义，并附有面向流式实现的增量特化形式以及协方差的相应更新公式。<sup>[7](https://digital.library.unt.edu/ark:/67531/metadc837537/)</sup> 后续工作考察了高达四阶的成对更新公式的正确性，并比较了高达六阶的八种中心矩公式的条件数与相对误差界，探讨了数值精度与速度之间的权衡。<sup>[9](https://www.sandia.gov/research/publications/details/numerically-stable-scalable-formulas-for-parallel-and-online-computation-of-2016-03-29/)</sup> 这些公式还允许将分别在各个样本上计算的中心矩合并起来，从而使基于已存储中心矩的重采样成为可能；Python 包 `cmomy` 以它们为基础，通过 numba 加速计算中心矩与协矩。<sup>[4](https://pages.nist.gov/cmomy/examples/usage/motivation.html)</sup>

## 历史

系统地使用矩来刻画和拟合分布，与统计学家卡尔·皮尔逊（Karl Pearson）相关，他于 1890 年代在伦敦大学学院（University College London）讲授变异与相关。《数学百科全书》记载，皮尔逊于 1894 年首次将矩方法用于估计分布参数，以皮尔逊分布族近似经验分布。<sup>[5](https://encyclopediaofmath.org/wiki/Moments,_method_of_(in_probability_theory))</sup> 他的论文《对数学进化论的贡献。II. 均匀材料中的偏斜变异》（"Contributions to the Mathematical Theory of Evolution. II. Skew Variation in Homogeneous Material"）于 1895 年发表在《哲学汇刊A辑》（Philosophical Transactions A）上（DOI 10.1098/rsta.1895.0010），分析了当均值一侧的偏离倾向与另一侧不相等时出现的不对称频率曲线。<sup>[6](https://zenodo.org/record/1432104)</sup> 在皮尔逊频率曲线系统中，每条曲线由四个参数描述，用现代术语说就是均值、标准差、偏度和峰度，通过皮尔逊对矩方法的扩展来拟合。<sup>[10](https://academic.oup.com/jrssig/article/16/3/22/7037803)</sup>

## 软件

统计库直接提供中心矩。SciPy 的 `scipy.stats.moment` 计算关于可配置中心的 n 阶矩，默认中心为样本均值，并使用反复平方法求幂以提高效率；对样本 [1, 2, 3, 4, 5]，它在 1 阶时返回 0.0，在 2 阶时返回 2.0。<sup>[2](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.moment.html)</sup> 较新的 SciPy 分布基础设施通过单一的 `moment` 方法提供正整数阶的原点矩、中心矩和标准化矩，在专用公式、一般恒等式、变换关系、归一化和数值积分之间进行选择。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Uniform.moment.html)</sup> SymPy 通过 `sympy.stats.cmoment(X, n) = E((X − E(X))^n)` 提供符号中心矩，例如正态变量的第四阶中心矩可符号化地简化为 3σ⁴。<sup>[8](https://docs.sympy.org/latest/modules/stats.html)</sup>

## References

1. [scipy.stats.Uniform.moment, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.Uniform.moment.html)
2. [scipy.stats.moment, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.moment.html)
3. [1.3.5.11. Measures of Skewness and Kurtosis, NIST/SEMATECH e-Handbook of Statistical Methods](https://www.itl.nist.gov/div898/handbook/eda/section3/eda35b.htm)
4. [Why cmomy? — cmomy 1.2.0 documentation, NIST](https://pages.nist.gov/cmomy/examples/usage/motivation.html)
5. [Moments, method of (in probability theory), Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Moments,_method_of_(in_probability_theory))
6. [Pearson, Karl (1895). Contributions to the Mathematical Theory of Evolution. II. Skew Variation in Homogeneous Material, Zenodo record](https://zenodo.org/record/1432104)
7. [Pébay, Philippe Pierre (2008). Formulas for robust, one-pass parallel computation of covariances and arbitrary-order statistical moments, SAND2008-6212, UNT Digital Library](https://digital.library.unt.edu/ark:/67531/metadc837537/)
8. [Stats, SymPy 1.14.0 documentation](https://docs.sympy.org/latest/modules/stats.html)
9. [Numerically stable, scalable formulas for parallel and online computation of higher-order multivariate central moments with arbitrary weights, Sandia National Laboratories](https://www.sandia.gov/research/publications/details/numerically-stable-scalable-formulas-for-parallel-and-online-computation-of-2016-03-29/)
10. [Turning Points: Pearson and the Parameter, Significance (Oxford Academic)](https://academic.oup.com/jrssig/article/16/3/22/7037803)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Probability theory › Expectation, moments, and inequalities › Moments of random variables

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/central-moment

English original: https://www.edgepedia.org/central-moment
