# 变量投影重要性

变量投影重要性（variable importance in projection，VIP）是一种从已拟合的偏最小二乘法（partial least squares，PLS）回归模型计算得到的评分，用于量化每个预测变量对解释响应的贡献大小，其方式是将该预测变量在所有潜在成分上的加权贡献进行汇总。它为每个预测变量输出一个数值，得分高的变量通常被保留，其余则被剔除，这使 VIP 成为化学计量学和组学数据分析中标准的变量选择工具之一。<sup>[1](https://doi.org/10.1016/j.chemolab.2023.104986)</sup><sup> • </sup><sup>[2](http://bioconductor.statistik.uni-dortmund.de/packages/3.9/bioc/vignettes/ropls/inst/doc/ropls-vignette.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 衡量内容 | 每个预测变量对 PLS 潜在成分所解释的响应方差的贡献，综合了载荷权重与各成分解释的 Y 方差<sup>[2](http://bioconductor.statistik.uni-dortmund.de/packages/3.9/bioc/vignettes/ropls/inst/doc/ropls-vignette.html)</sup> |
| 输出 | 每个预测变量一个 VIP 评分（多变量模型中每个响应变量一列）<sup>[3](https://www.software.eigenvector.com/docarchive/v42/vip.html)</sup> |
| 常用阈值 | VIP > 1，其依据是这种缩放使 VIP 平方的平均值等于 1<sup>[1](https://doi.org/10.1016/j.chemolab.2023.104986)</sup><sup> • </sup><sup>[4](https://iris.unimore.it/bitstream/11380/1000118/1/VIPCHEMOM13postprint.pdf)</sup> |
| 公式（PLS1） | \( \mathrm{VIP}_j = \sqrt{ p \cdot \sum_{h} R^{2}(y, t_{h}) \, w_{hj}^{2} \, / \, \sum_{h} R^{2}(y, t_{h}) } \)<sup>[1](https://doi.org/10.1016/j.chemolab.2023.104986)</sup><sup> • </sup><sup>[5](https://github.com/mlesnoff/Jchemo.jl/blob/64e5ff57faba7cd17819369f7884fb315af4ea43/src/vip.jl)</sup> |
| 主要警示 | VIP > 1 规则只是一种经验法则，已有文献记录了其缺陷；实际的变量选择建议采用基于重采样的显著性检验<sup>[1](https://doi.org/10.1016/j.chemolab.2023.104986)</sup><sup> • </sup><sup>[4](https://iris.unimore.it/bitstream/11380/1000118/1/VIPCHEMOM13postprint.pdf)</sup> |
| 典型用途 | 光谱学、代谢组学、感官和基因表达数据的 PLS 模型中的特征选择<sup>[6](http://onlinelibrary.wiley.com/doi/10.1002/cem.2736)</sup><sup> • </sup><sup>[7](https://doi.org/10.1016/j.aca.2026.345258)</sup> |

## 工作原理

PLS 回归将潜在成分 \( t_{h} \) 构建为预测变量的加权组合，所选成分既要能捕捉 \( X \) 中的方差，又要对响应 \( y \) 具有预测能力。每个预测变量 \( j \) 在每个成分上获得一个 PLS 权重 \( w_{hj} \)，每个成分解释响应方差的一个份额 \( R^{2}(y, t_{h}) \)。VIP 将这两部分结合起来：变量 \( j \) 在各成分上的权重平方，以该成分解释 \( y \) 的比例为权，再对所有成分求和。<sup>[4](https://iris.unimore.it/bitstream/11380/1000118/1/VIPCHEMOM13postprint.pdf)</sup><sup> • </sup><sup>[5](https://github.com/mlesnoff/Jchemo.jl/blob/64e5ff57faba7cd17819369f7884fb315af4ea43/src/vip.jl)</sup>

对于含有 \( p \) 个预测变量和成分 \( t_{h} \) 的 PLS1 模型，评分为<sup>[1](https://doi.org/10.1016/j.chemolab.2023.104986)</sup><sup> • </sup><sup>[5](https://github.com/mlesnoff/Jchemo.jl/blob/64e5ff57faba7cd17819369f7884fb315af4ea43/src/vip.jl)</sup><sup> • </sup><sup>[8](https://kgdunn.github.io/process-improve/user_guide/pls.html)</sup>

\[ \mathrm{VIP}_j = \sqrt{ p \cdot \frac{ \sum_{h=1}^{A} R^{2}(y, t_{h}) \, w_{hj}^{2} }{ \sum_{h=1}^{A} R^{2}(y, t_{h}) } } \]

其中 \( A \) 是潜变量的个数，\( R^{2}(y, t_{h}) \) 是得分 \( t_{h} \) 所解释的中心化 Y 方差的比例。正是这种缩放使阈值具有可解释性：VIP 值经过缩放，使得所有变量上其平方值的平均值等于 1。<sup>[1](https://doi.org/10.1016/j.chemolab.2023.104986)</sup><sup> • </sup><sup>[4](https://iris.unimore.it/bitstream/11380/1000118/1/VIPCHEMOM13postprint.pdf)</sup> 因此，VIP 大于 1 的变量对模型的影响高于平均水平。VIP > 1 规则明明白白只是经验法则；在某些数据结构的应用中已显示出缺陷，而约 0.5 的较低参考值可标记出贡献极小、或许可以剔除的变量。<sup>[1](https://doi.org/10.1016/j.chemolab.2023.104986)</sup><sup> • </sup><sup>[4](https://iris.unimore.it/bitstream/11380/1000118/1/VIPCHEMOM13postprint.pdf)</sup><sup> • </sup><sup>[8](https://kgdunn.github.io/process-improve/user_guide/pls.html)</sup>

## 计算步骤

在实践中，VIP 是在通过交叉验证选定成分数目之后，从已拟合的 PLS 模型计算得到的：

1. 在标准化后的预测变量上拟合 PLS 模型，记录权重矩阵 \( W \) 及各成分解释的 Y 方差。
2. 对每个成分计算 \( R^{2}(y, t_{h}) = \| \hat{Yc} \|^{2} / \| Yc \|^{2} \)，即该得分所解释的中心化 Y 方差的比例。<sup>[5](https://github.com/mlesnoff/Jchemo.jl/blob/64e5ff57faba7cd17819369f7884fb315af4ea43/src/vip.jl)</sup>
3. 应用上述公式，为每个预测变量得到一个评分。部分实现会返回一个 \( n_{\mathrm{comp}} \times n_{\mathrm{vars}} \) 矩阵，给出对应每个成分数的累积 VIP。<sup>[9](https://github.com/philipp-baumann/simplerspec/blob/master/R/pls-vip.R)</sup>
4. 将变量按所选阈值排序或筛选。

软件实现包括 R 包 plsVarSel（它还提供 sMC、选择性比率、载荷权重和回归系数作为筛选指标）<sup>[10](https://rdrr.io/cran/plsVarSel/src/R/filters.R)</sup>、simplerspec（仅适用于正交得分 NIPALS 算法和单响应模型）<sup>[9](https://github.com/philipp-baumann/simplerspec/blob/master/R/pls-vip.R)</sup>、ropls<sup>[2](http://bioconductor.statistik.uni-dortmund.de/packages/3.9/bioc/vignettes/ropls/inst/doc/ropls-vignette.html)</sup> 和 mdatools<sup>[11](https://rdrr.io/cran/mdatools/man/vipscores.html)</sup>，Julia 包 Jchemo.jl<sup>[5](https://github.com/mlesnoff/Jchemo.jl/blob/64e5ff57faba7cd17819369f7884fb315af4ea43/src/vip.jl)</sup>、PLS_Toolbox<sup>[3](https://www.software.eigenvector.com/docarchive/v42/vip.html)</sup> 以及 JMP。对于多变量 \( Y \)，mdatools 区分两种 VIP：一种是“组合”VIP，将所有响应上解释的 Y 方差汇总为每个预测变量的单一评分；另一种是按各响应解释方差加权的分响应 VIP。<sup>[11](https://rdrr.io/cran/mdatools/man/vipscores.html)</sup> 当直接使用响应矩阵 \( Y \) 本身时，Jchemo.jl 的实现用冗余度 \( R_{d}(Yc, t_{a}) \) 取代 \( R^{2}(Yc, t_{a}) \)。<sup>[5](https://github.com/mlesnoff/Jchemo.jl/blob/64e5ff57faba7cd17819369f7884fb315af4ea43/src/vip.jl)</sup>

## 起源

VIP 属于沃尔德（Wold）时代的 PLS 传统，但已发表的归属说法相互矛盾，确切的提出论文和年份在已发表文献中仍无定论。<sup>[1](https://doi.org/10.1016/j.chemolab.2023.104986)</sup><sup> • </sup><sup>[12](https://community.jmp.com/t5/Discussions/partial-least-square-and-VIP-coefficient/m-p/383582)</sup><sup> • </sup><sup>[2](http://bioconductor.statistik.uni-dortmund.de/packages/3.9/bioc/vignettes/ropls/inst/doc/ropls-vignette.html)</sup> 后来的两项扩展则有明确记载：Afanador、Tran 和 Buydens 于 2013 年在《Analytica Chimica Acta》上发表了自助法和置换方法，以获得更稳健的 VIP 指标<sup>[13](https://doi.org/10.1016/j.aca.2013.01.004)</sup>；Favilla 及其同事于 2013 年在《Chemometrics and Intelligent Laboratory Systems》上把 VIP 扩展到了 N 向（NPLS）模型<sup>[14](https://doi.org/10.1016/j.chemolab.2013.05.013)</sup><sup> • </sup><sup>[4](https://iris.unimore.it/bitstream/11380/1000118/1/VIPCHEMOM13postprint.pdf)</sup>。

## 变体

固定阈值是该方法最薄弱之处。Favilla 及其同事称阈值的选择是一个关键问题：讨论变量的重要性时，原先取 1 是可以接受的，但对于标记物识别和变量选择，采用自助法等重采样方法来评估显著性更为合适。<sup>[4](https://iris.unimore.it/bitstream/11380/1000118/1/VIPCHEMOM13postprint.pdf)</sup> Afanador、Tran 和 Buydens 在 2013 年用自助法和置换方法解决了这一问题，产生了更稳健的 VIP 指标。<sup>[13](https://doi.org/10.1016/j.aca.2013.01.004)</sup> 2023 年发表的一个框架通过置换来推导数据驱动的阈值：随机置换 \( Y \) 的各行而保持 \( X \) 不变，从而打乱变量与响应之间的关联，同时保留 \( X \) 变量之间的协方差结构。检验变量子集而非单个变量，可避免多重检验的陷阱并减少计算量。<sup>[1](https://doi.org/10.1016/j.chemolab.2023.104986)</sup> 一种自助法-VIP 选择工具对 \( B \) 个重采样分别拟合标准化 PLS 模型，仅当其自助 VIP 百分位区间的下界满足 \( Q_{2.5\%} > 1 \) 时才选择该变量，这意味着该变量在几乎所有重采样中都保持在平均贡献阈值之上。<sup>[15](https://metricgate.com/docs/bootstrap-vip-pls-selection/)</sup> 2023 年的方法论文还将 VIP 扩展到了矩阵形式（PLS2）的多变量响应、变量集合而非单个变量，以及主成分分析情境，并结合置换检验实现快速变量选择。<sup>[1](https://doi.org/10.1016/j.chemolab.2023.104986)</sup> Favilla 及其同事将计算扩展到了 N 向 PLS（NPLS）模型。<sup>[4](https://iris.unimore.it/bitstream/11380/1000118/1/VIPCHEMOM13postprint.pdf)</sup><sup> • </sup><sup>[14](https://doi.org/10.1016/j.chemolab.2013.05.013)</sup>

## 应用

凡是要解释 PLS 模型的地方，都会用到基于 VIP 的选择。一篇已发表的比较研究考察了三个数据集：与感官数据相关的理化水质参数、与海面温度相关的化石海沉积物 GC-MS 有机化合物谱，以及与后代产量相关的接受暴露处理的大型溞（Daphnia magna）雌体基因表达。<sup>[6](http://onlinelibrary.wiley.com/doi/10.1002/cem.2736)</sup> 在代谢组学中，VIP 被描述为突出相关变量子集的常用标准，而最近一种将自助重采样与置换结合为稳定性指数和诊断图的稳定性方法，正是针对这一情境。<sup>[7](https://doi.org/10.1016/j.aca.2026.345258)</sup>

## 局限与替代方法

- <b>成分数目。</b> VIP 依赖于已拟合的模型，因此必须先用交叉验证选定潜在成分的数目。PLS 可能严重过拟合，找到虚假的 X-Y 相关性，而当特征数超过观测数时尤其容易过拟合。<sup>[8](https://kgdunn.github.io/process-improve/user_guide/pls.html)</sup><sup> • </sup><sup>[2](http://bioconductor.statistik.uni-dortmund.de/packages/3.9/bioc/vignettes/ropls/inst/doc/ropls-vignette.html)</sup>
- <b>OPLS 不变性。</b> 对于单响应的 OPLS 模型，经典 VIP 没有用处：无论选择多少个正交成分，数值都保持不变，而且它们是单变量的，不提供变量间交互作用的信息。当特征经过标准化时，VIP 与 Pearson 相关性检验的 p 值之间存在数学关系。<sup>[2](http://bioconductor.statistik.uni-dortmund.de/packages/3.9/bioc/vignettes/ropls/inst/doc/ropls-vignette.html)</sup>
- <b>无符号评分与缩放。</b> VIP 评分无符号，且假定预测变量经过合理缩放、近似线性；强非线性关系可能掩盖本应重要的通道。<sup>[15](https://metricgate.com/docs/bootstrap-vip-pls-selection/)</sup> JMP 建议将 VIP 与中心化、标准化数据的系数结合解读，因为单看 VIP 并不反映效应大小。<sup>[12](https://community.jmp.com/t5/Discussions/partial-least-square-and-VIP-coefficient/m-p/383582)</sup>
- <b>多重共线性与替代方法。</b> 一项模拟研究利用混淆矩阵比较了多重共线性下结合 VIP 的 PLS、Lasso 和逐步选择的表现，并讨论了合适的 VIP 截断值以改进性能。<sup>[16](https://www.sciencedirect.com/science/article/abs/pii/S0169743905000031)</sup> 在与 SR 的对比中，已发表的三数据集比较发现 SR 对感官水质数据更准确。<sup>[6](http://onlinelibrary.wiley.com/doi/10.1002/cem.2736)</sup>

相关的重要性度量包括选择性比率（selectivity ratio，SR）、与之相关的显著性多变量相关性（significance multivariate correlation，sMC），以及若干适配正交 PLS 的 VIP 修正版。<sup>[17](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3211)</sup>

## References

1. [Extension and significance testing of Variable Importance in Projection (VIP) indices in Partial Least Squares regression and Principal Components Analysis](https://doi.org/10.1016/j.chemolab.2023.104986)
2. [ropls: PCA, PLS(-DA) and OPLS(-DA) for multivariate analysis and feature selection of omics data (Bioconductor vignette)](http://bioconductor.statistik.uni-dortmund.de/packages/3.9/bioc/vignettes/ropls/inst/doc/ropls-vignette.html)
3. [vip Documentation (Eigenvector Research PLS_Toolbox)](https://www.software.eigenvector.com/docarchive/v42/vip.html)
4. [Assessing feature relevance in NPLS models by VIP (Favilla, Durante, Li Vigni, Cocchi, 2013)](https://iris.unimore.it/bitstream/11380/1000118/1/VIPCHEMOM13postprint.pdf)
5. [src/vip.jl (Jchemo.jl)](https://github.com/mlesnoff/Jchemo.jl/blob/64e5ff57faba7cd17819369f7884fb315af4ea43/src/vip.jl)
6. [Comparison of the variable importance in projection (VIP) and of the selectivity ratio (SR) methods for variable selection and interpretation (Farrés et al., 2015)](http://onlinelibrary.wiley.com/doi/10.1002/cem.2736)
7. [Assessing variable importance stability using resampling strategies to enhance model interpretability and reliability in metabolomics](https://doi.org/10.1016/j.aca.2026.345258)
8. [Projection to Latent Structures (PLS), process-improve 1.95.1 documentation](https://kgdunn.github.io/process-improve/user_guide/pls.html)
9. [R/pls-vip.R, simplerspec source code](https://github.com/philipp-baumann/simplerspec/blob/master/R/pls-vip.R)
10. [plsVarSel source: R/filters.R](https://rdrr.io/cran/plsVarSel/src/R/filters.R)
11. [vipscores: VIP scores for PLS model in mdatools](https://rdrr.io/cran/mdatools/man/vipscores.html)
12. [Re: partial least square and VIP coefficient (JMP User Community)](https://community.jmp.com/t5/Discussions/partial-least-square-and-VIP-coefficient/m-p/383582)
13. [N.L. Afanador, T.N. Tran, L.M.C. Buydens (2013). Use of the bootstrap and permutation methods for a more robust variable importance in the projection metric for partial least squares regression. Analytica Chimica Acta.](https://doi.org/10.1016/j.aca.2013.01.004)
14. [Stefania Favilla and colleagues (2013). Assessing feature relevance in NPLS models by VIP. Chemometrics and Intelligent Laboratory Systems.](https://doi.org/10.1016/j.chemolab.2013.05.013)
15. [Bootstrap-VIP PLS Variable Selection Calculator | MetricGate](https://metricgate.com/docs/bootstrap-vip-pls-selection/)
16. [Performance of some variable selection methods when multicollinearity is present](https://www.sciencedirect.com/science/article/abs/pii/S0169743905000031)
17. [Variable importance: Comparison of selectivity ratio and significance multivariate correlation for interpretation of latent-variable regression models](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3211)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Multivariate association and dimension reduction › Titles Mo to W

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/variable-importance-in-projection

English original: https://www.edgepedia.org/variable-importance-in-projection
