# 均值中心化

均值中心化是一种数据预处理步骤，它将某一变量的均值从该变量的每一个观测值中减去，使变换后的数值平均为零；国际纯粹与应用化学联合会（IUPAC）将该操作定义为 \( a_{i,j}^{*} = a_{i,j} - \tfrac{1}{n}\sum_{i=1}^{n} a_{i,j} \)。<sup>[1](https://goldbook.iupac.org/terms/view/10053)</sup> 更一般地说，中心化意味着为每个预测变量选择一个参照值，并对数据进行编码，使每个估计系数都与研究问题相关。<sup>[2](https://doi.org/10.1002/mpr.170)</sup> 它用于调节回归、多层建模，以及主成分分析、偏最小二乘和判别分析等多变量方法。<sup>[1](https://goldbook.iupac.org/terms/view/10053)</sup><sup> • </sup><sup>[3](https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2025.1634152/full)</sup>

| 关键事实 | 详情 |
|---|---|
| 操作 | 从每个观测值中减去变量均值；变换后的数据均值为零 <sup>[1](https://goldbook.iupac.org/terms/view/10053)</sup> |
| 与乘积项的相关 | 在双变量正态性下，中心化预测变量与其中心化乘积的相关系数为零 <sup>[4](https://jse.amstat.org/v19n3/afshartous.pdf)</sup> |
| 不变的内容 | \( R^2 \)、调整后的 \( R^2 \)，以及最高阶交互项的系数和标准误，无论是否中心化都相同 <sup>[5](https://www.bauer.uh.edu/jhess/papers/JMRMeanCenterPaper.pdf)</sup> |
| 多层模型的选择 | 总均值中心化和组均值中心化通常产生在数值和含义上都不同的估计 <sup>[6](https://doi.org/10.1037/1082-989x.12.2.121)</sup> |
| 与标准化的区别 | 中心化改变零的含义；标准化还会额外除以标准差 <sup>[7](https://uoepsy.github.io/lmm/10_centering.html)</sup> |
| 多变量方法的注意事项 | 推荐用于 PCA、PLS 和判别分析，但与多变量曲线分辨等方法中的非负约束不兼容 <sup>[1](https://goldbook.iupac.org/terms/view/10053)</sup> |

## 工作原理

在调节回归 \( y = b_0 + b_1 x_1 + b_2 x_2 + b_3 x_1 \cdot x_2 + e \) 中，一阶系数是在另一个预测变量取零时评估的条件（简单）效应，而非主效应，无论数据是否中心化。<sup>[3](https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2025.1634152/full)</sup> 中心化重新定义了零的位置：如果 \( x_2 \) 以其均值中心化，那么 \( b_1 \) 就变成 \( x_2 = \mu_2 \) 时 \( x_1 \) 的效应，而不是 \( x_2 = 0 \) 时的效应。<sup>[4](https://jse.amstat.org/v19n3/afshartous.pdf)</sup> 这就是为什么中心化后低阶系数和截距会改变，而模型本身不变。

协方差代数解释了共线性效应：\( \mathrm{Cov}(x_1 \cdot x_2,\, x_1) = \sigma_1^2 \mu_2 + \mathrm{Cov}(x_1, x_2)\,\mu_1 \)，因此当两个预测变量的均值都为零时，主效应与其乘积项的相关系数为零，但这仅在联合正态性等附加条件下成立，因为该协方差完全是联合分布中心三阶矩的函数。<sup>[4](https://jse.amstat.org/v19n3/afshartous.pdf)</sup><sup> • </sup><sup>[19](https://pmc.ncbi.nlm.nih.gov/articles/PMC6713984/)</sup> 在双变量正态性下，每个中心化预测变量与中心化乘积 \( (x_1 - \mu_1) \cdot (x_2 - \mu_2) \) 的协方差为零，因而相关系数为零；任何残余相关都完全源于非正态性。<sup>[4](https://jse.amstat.org/v19n3/afshartous.pdf)</sup>

一个计算示例展示了哪些量保持不变。未中心化（\( \hat{y} = 657.69 - 8.58x - 55.65\,\mathrm{mod} + 0.96\,xm \)）和中心化（\( \hat{y} = 203.02 + 1.02\,x_c + 39.88\,\mathrm{mod}_c + 0.96\,x_c \cdot \mathrm{mod}_c \)）回归给出相同的交互系数（0.96）、标准误（0.265）、t 值（3.626）、p 值（.000）、置信区间 [0.434, 1.486] 和模型摘要。<sup>[8](https://study.sagepub.com/sites/default/files/gurnsey_onlineapp17.pdf)</sup> 中心化斜率 1.02 可以从非中心化方程中恢复，即调节变量均值处的斜率，\( b = b_x + b_{xm} \cdot \mathrm{mod} = -8.58 + 0.96 \cdot 10 = 1.02 \)。<sup>[8](https://study.sagepub.com/sites/default/files/gurnsey_onlineapp17.pdf)</sup>

## 操作方法

在实践中，均值中心化是一个两步过程：校准从校准数据集 \( X \) 估计各列均值，应用则从数据中减去这些均值。<sup>[9](https://eigenvector.com/wp-content/uploads/2020/01/Data-preprocessing-objective.pdf)</sup> 在回归中，主要选择是参照值。总均值中心化减去全样本均值；组均值中心化减去每个观测值所属聚类的均值。<sup>[10](https://web.pdx.edu/~newsomj/mlrclass/ho_centering.pdf)</sup>

一种已发表的默认策略将二值变量编码为 +1/2，将有序变量编码为相对于其中位数的偏差，将 \( m \) 个类别的哑变量编码为 \( 1 - 1/m \) 和 \( -1/m \)，然后从中心化预测变量计算交互项。<sup>[2](https://doi.org/10.1002/mpr.170)</sup> 中心化不同于标准化（z 分数化），后者减去均值后再除以标准差，改变了斜率所代表的单位，但显著性不变；对线性模型预测变量重新中心化只改变截距，即零的含义。<sup>[7](https://uoepsy.github.io/lmm/10_centering.html)</sup>

## 起源

关于交互模型中中心化的现代文献贯穿了一系列方法论论文。理查德·L·泰特（Richard L. Tate，1984，《社会学方法与研究》）考察了中心化用于交互模型的局限性，并将与 \( x_1 \) 和 \( x_2 \) 均不相关的中心化乘积 \( (x_1 - d) \cdot (x_2 - e) \) 视为残差化后的 \( x_1 \cdot x_2 \) 项。<sup>[11](https://doi.org/10.1177/0049124184013002004)</sup> 对进入高阶交互的预测变量进行中心化的建议，连同计算原理和双变量正态性下的零协方差结果，可追溯至利昂娜·S·艾肯（Leona S. Aiken）、斯蒂芬·G·韦斯特（Stephen G. West）和雷蒙德·R·雷诺（Raymond R. Reno）1991 年的著作《多元回归：交互作用的检验与解释》。<sup>[5](https://www.bauer.uh.edu/jhess/papers/JMRMeanCenterPaper.pdf)</sup> 克雷夫特（Kreft）、德勒乌（de Leeuw）和艾肯（1995）在《多变量行为研究》中分析了分层线性模型中中心化的形式 <sup>[12](https://doi.org/10.1207/s15327906mbr3001_1)</sup>；克雷默（Kraemer）和布拉塞（Blasey，2004）在《国际精神病学研究方法杂志》中提出了上述默认编码策略 <sup>[2](https://doi.org/10.1002/mpr.170)</sup>；恩德斯（Enders）和托菲吉（Tofighi，2007）在《心理学方法》中为横截面多层模型形式化了总均值与组内中心化的区分 <sup>[6](https://doi.org/10.1037/1082-989x.12.2.121)</sup>；亚科布奇（Iacobucci）及其同事（2015）在《行为研究方法》中主张中心化有助于缓解“微观”而非“宏观”多重共线性。<sup>[13](https://doi.org/10.3758/s13428-015-0624-x)</sup>

## 变体

**多层中心化**有两种含义不同的主要形式。组内中心化（CWC，组均值中心化）去除所有组间变异，产生合并组内第一层系数的纯估计。<sup>[6](https://doi.org/10.1037/1082-989x.12.2.121)</sup> 采用组均值中心化并将聚类均值重新引入为第二层预测变量时，一个系数估计组内效应，另一个估计组间效应；采用总均值中心化并重新引入均值时，第二个系数估计构成效应，即组间斜率与组内斜率之差。<sup>[10](https://web.pdx.edu/~newsomj/mlrclass/ho_centering.pdf)</sup> 第二层变量只能进行总均值中心化。<sup>[10](https://web.pdx.edu/~newsomj/mlrclass/ho_centering.pdf)</sup>

**矩阵层面的变体**包括将每个数据对象以原点为中心使其元素均值为 0、总均值中心化（减去所有矩阵元素的均值）以及双重中心化。<sup>[14](https://par.nsf.gov/servlets/purl/10439036)</sup>

## 应用

在调节回归中，中心化建立一个有意义的零点，使一阶系数描述典型预测变量值处的效应，而非零处的效应，而零往往位于数据范围之外。<sup>[8](https://study.sagepub.com/sites/default/files/gurnsey_onlineapp17.pdf)</sup><sup> • </sup><sup>[2](https://doi.org/10.1002/mpr.170)</sup> 在多层模型中，它分离组内效应与组间效应，并且根据已发表的跨层交互指南，第一层预测变量采用组均值中心化，第二层预测变量采用总均值中心化。<sup>[10](https://web.pdx.edu/~newsomj/mlrclass/ho_centering.pdf)</sup>

在 PCA、偏最小二乘和判别分析中，通常推荐均值中心化，因为样本间的相对值比偏离零的绝对偏差更重要。<sup>[1](https://goldbook.iupac.org/terms/view/10053)</sup> 中心化后，第一主成分捕获关于均值的最大平方和，即关于均值的方差，因此在探索性分析中模型必须作不同解释。<sup>[9](https://eigenvector.com/wp-content/uploads/2020/01/Data-preprocessing-objective.pdf)</sup>

## 局限与替代方法

**中心化不能解决本质共线性。** 由尺度导致的相关是非本质多重共线性，可通过重新缩放消除；由偏态导致的相关是本质性的，无法通过重新缩放消除。<sup>[4](https://jse.amstat.org/v19n3/afshartous.pdf)</sup> 由于减去一个常数不改变变量的离散程度及其与其他预测变量的关系，中心化只能影响非本质共线性。<sup>[3](https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2025.1634152/full)</sup>

**与乘积项的相关可能增加。** 对于许多联合分布的随机变量，甚至一些具有相当对称性的变量，中心化主效应与其交互项之间的相关相对于未中心化情形可能上升；低维边缘分布的对称性是减少的必要条件，但并非充分条件。<sup>[15](https://journals.sagepub.com/doi/10.1177/0013164418817801)</sup>

**解释风险。** 中心化不增加新信息，也不能产生更精确的估计；它只改变系数和 t 检验所回答的问题。<sup>[16](https://press.umich.edu/pdf/9780472099696-ch4.pdf)</sup>

**多层模型特有的发现。** 与 OLS 中共线性不使点估计产生偏差不同，多层模型中未中心化的第一层预测变量可能给出严重偏差的斜率；解聚（聚类均值中心化加上聚类均值作为第二层预测变量）消除了仅由共线性导致固定效应偏差的可能性，尽管在某些条件下标准误和随机效应协方差仍可能有偏。<sup>[17](https://quantpsy.org/pubs/yaremych_preacher_2024.pdf)</sup>

**替代方法。** 残差中心化将乘积项对其成分正交化，会使 \( x_1 \) 和 \( x_2 \) 的效应产生偏差，被批评者称为“一个明显糟糕的主意”，他们建议通过设计或更大样本解决共线性 <sup>[5](https://www.bauer.uh.edu/jhess/papers/JMRMeanCenterPaper.pdf)</sup>；它对潜变量交互仍然有用，但带有注意事项，包括双重正交化的风险、对模型拟合的意外影响、均值结构的移除，以及对非正态数据的敏感性。<sup>[18](https://sage.cnpereading.com/doi/10.1177/0013164412445473)</sup> 2025 年的综述推荐将分层（第一步/第二步）分析作为评估主效应和交互作用的默认方法，而不依赖中心化。<sup>[3](https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2025.1634152/full)</sup>

## References

1. [IUPAC Gold Book – mean centering](https://goldbook.iupac.org/terms/view/10053)
2. [Helena C. Kraemer, Christine M. Blasey (2004). Centring in regression analyses: a strategy to prevent errors in statistical inference. International Journal of Methods in Psychiatric Research.](https://doi.org/10.1002/mpr.170)
3. ['Mean centering is not necessary in regression analyses, and probably increases the risk of incorrectly interpreting coefficients' (Frontiers in Psychology, 2025)](https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2025.1634152/full)
4. [Afshartous & Preston, 'Key Aspects of Centering Predictor Variables' (Journal of Statistics Education, Vol. 19, No. 3, 2011)](https://jse.amstat.org/v19n3/afshartous.pdf)
5. [Echambadi & Hess (2007), 'Mean-Centering Does Nothing for Moderated Multiple Regression' (Journal of Marketing Research; author-hosted PDF)](https://www.bauer.uh.edu/jhess/papers/JMRMeanCenterPaper.pdf)
6. [Craig K. Enders, Davood Tofighi (2007). Centering predictor variables in cross-sectional multilevel models: A new look at an old issue.. Psychological Methods.](https://doi.org/10.1037/1082-989x.12.2.121)
7. [10: Centering – LMM/MLM (University of Edinburgh course materials)](https://uoepsy.github.io/lmm/10_centering.html)
8. [Gurnsey, online Appendix 17.2: Mean-Centering and Collinearity (SAGE textbook companion site)](https://study.sagepub.com/sites/default/files/gurnsey_onlineapp17.pdf)
9. [Data preprocessing objective (Eigenvector Research)](https://eigenvector.com/wp-content/uploads/2020/01/Data-preprocessing-objective.pdf)
10. [Centering in Multilevel Regression (Newsom, Portland State University class notes)](https://web.pdx.edu/~newsomj/mlrclass/ho_centering.pdf)
11. [RICHARD L. TATE (1984). Limitations of Centering for Interactive Models. Sociological Methods & Research.](https://doi.org/10.1177/0049124184013002004)
12. [Ita G.G. Kreft, Jan de Leeuw, Leona S. Aiken (1995). The Effect of Different Forms of Centering in Hierarchical Linear Models. Multivariate Behavioral Research.](https://doi.org/10.1207/s15327906mbr3001_1)
13. [Dawn Iacobucci and colleagues (2015). Mean centering helps alleviate “micro” but not “macro” multicollinearity. Behavior Research Methods.](https://doi.org/10.3758/s13428-015-0624-x)
14. [New Perspectives on Centering (NSF PAR)](https://par.nsf.gov/servlets/purl/10439036)
15. [McClelland et al., 'Centering in Multiple Regression Does Not Always Reduce Multicollinearity' (Educational and Psychological Measurement, 2018/2019)](https://journals.sagepub.com/doi/10.1177/0013164418817801)
16. [Kam & Franzese, 'Colinearity and Mean-Centering the Components of Interaction Terms' (University of Michigan Press chapter)](https://press.umich.edu/pdf/9780472099696-ch4.pdf)
17. [Yaremych & Preacher (2024), 'Understanding the Consequences of Collinearity for Multilevel Models: The Importance of Disaggregation Across Levels' (Educational and Psychological Measurement; author PDF)](https://quantpsy.org/pubs/yaremych_preacher_2024.pdf)
18. [Orthogonalizing Through Residual Centering (Educational and Psychological Measurement, 2012)](https://sage.cnpereading.com/doi/10.1177/0013164412445473)
19. [pmc.ncbi.nlm.nih.gov](https://pmc.ncbi.nlm.nih.gov/articles/PMC6713984/)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/mean-centering

English original: https://www.edgepedia.org/mean-centering
