# 选择性比率

选择性比率（selectivity ratio，SR）是偏最小二乘法（partial least squares，PLS）回归中的一种变量重要性度量，它通过在目标投影成分上计算每个预测变量的可解释预测方差与其残差方差之比，对每个预测变量进行评分。该指标用于寻找与所建模响应关系最强的变量——通常是光谱波长或质荷通道——在校准问题和判别问题中均可使用。<sup>[1](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3211)</sup> 选择性比率越大，意味着该变量对预测越有用；比率较低的变量通常可以在不降低模型性能的情况下被剔除。<sup>[2](https://www.eigenvectordocs.com/index.php?title=Sratio)</sup> 该度量是一种目标投影诊断工具：它通过从PLS回归向量导出的单一方向，按每个预测变量与所建模响应关系的强弱对其进行排序。<sup>[3](https://metricgate.com/docs/selectivity-ratio-pls/)</sup>

| 关键事实 | 说明 | 来源 |
|---|---|---|
| 定义 | \( \mathrm{SR}_{i} = v_{\mathrm{expl},i} / v_{\mathrm{res},i} \)，即目标投影后每个变量的可解释方差与残差方差之比 | <sup>[1](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3211)</sup> |
| 解读 | SR越高，变量对预测越有用 | <sup>[2](https://www.eigenvectordocs.com/index.php?title=Sratio)</sup> |
| 校准阈值 | F检验：若 \( r_{j} > F_{\alpha, n-2, n-3} \)，则拒绝可解释方差与残差方差相等的原假设 | <sup>[4](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3226)</sup> |
| 分类阈值 | DIVA检验将SR区间与平均正确分类率（MCCR）关联 | <sup>[5](https://doi.org/10.1021/ac802514y)</sup> |
| 软件默认值 | F截断概率点0.95（PLS_Toolbox）；选择阈值1.0（chemotools） | <sup>[2](https://www.eigenvectordocs.com/index.php?title=Sratio)</sup>, <sup>[6](https://chemotools.org/_modules/chemotools/feature_selection/_sr_selector.html)</sup> |
| 主要注意事项 | SR依赖于PLS成分数，可能低估仅在高阶成分中起作用的变量 | <sup>[3](https://metricgate.com/docs/selectivity-ratio-pls/)</sup> |

## 工作原理

选择性比率建立在目标投影（target projection，TP）之上，后者是沿预测响应的方向对预测变量矩阵进行的分解。归一化的PLS回归系数作为TP权重，\( w_{\mathrm{TP}} = b_{\mathrm{LVR}} / \| b_{\mathrm{LVR}} \| \)；TP得分向量为 \( t_{\mathrm{TP}} = X \cdot w_{\mathrm{TP}} \)，它与预测响应值向量成比例；预测变量矩阵被分解为 \( X = t_{\mathrm{TP}} \cdot p_{\mathrm{TP}}^{T} + E_{\mathrm{TP}} \)，即预测部分与残差部分。<sup>[1](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3211)</sup> 同一分解的等价表述写作 \( X = X_{\mathrm{TP}} + E_{\mathrm{TP}} \)，其中 \( p_{\mathrm{TP}} = X' \cdot t_{\mathrm{TP}} / (t_{\mathrm{TP}}' \cdot t_{\mathrm{TP}}) \)。<sup>[4](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3226)</sup>

对于每个变量 \( i \)，选择性比率比较预测部分所携带的方差与残差中剩余的方差：

\[ \mathrm{SR}_{i} = \frac{v_{\mathrm{expl},i}}{v_{\mathrm{res},i}} = \frac{\left| t_{\mathrm{TP}} \cdot p_{\mathrm{TP},i}^{T} \right|^{2}}{\left| E_{\mathrm{TP},i} \right|^{2}} \]

由于TP载荷与预测响应值和x变量之间的协方差成比例，SR指向与响应正相关或负相关性最高的变量。<sup>[1](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3211)</sup>

## 计算方法

从拟合的PLS模型出发，实际计算步骤如下。第一步，归一化PLS回归向量以形成TP权重。第二步，投影数据：\( t_{\mathrm{TP}} = X \cdot w_{\mathrm{TP}} \)。第三步，计算TP载荷并重建预测部分 \( \hat{X} = t_{\mathrm{TP}} \cdot p_{\mathrm{TP}}^{T} \)。第四步，对每个变量取可解释平方和与残差平方和之比，\( \mathrm{SR} = \text{可解释平方和} / \text{残差平方和} \)。<sup>[1](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3211)</sup> plsVarSel R包正是按此顺序实现的，其中 \( W_{\mathrm{tp}} = R \cdot C / \sqrt{\mathrm{crossprod}(R \cdot C)} \)，\( T_{\mathrm{tp}} = X \cdot W_{\mathrm{tp}} \)，且 \( \mathrm{SR} = \mathrm{colSums}(X_{\mathrm{tp}} \cdot X_{\mathrm{tp}}) / \mathrm{colSums}(X_{r} \cdot X_{r}) \)，其中 \( X_{r} = X - X_{\mathrm{tp}} \)。<sup>[7](https://cran.r-project.org/web/packages/plsVarSel/refman/plsVarSel.html)</sup> chemotools Python的SRSelector遵循相同步骤，并在分母中加入 \( \epsilon = 1 \times 10^{-12} \) 以保证数值稳定性，<sup>[6](https://chemotools.org/_modules/chemotools/feature_selection/_sr_selector.html)</sup> mdatools则为PLS模型提供了选择性比率函数，引用了同一篇2009年论文。<sup>[8](https://rdrr.io/cran/mdatools/man/getSelectivityRatio.pls.html)</sup>

若需要概率性截断值，可在可解释方差与残差方差相等的原假设下进行F检验，当 \( r_{j} > F_{\alpha, n-2, n-3} \) 时拒绝变量 \( j \) 的原假设。<sup>[4](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3226)</sup> Eigenvector的sratio函数默认使用该F统计量的0.95概率点，并在分母中加入x标准差的一定比例（默认0.001倍），以稳定“完美”拟合变量的结果；取值为零时可复现原始发表结果。<sup>[2](https://www.eigenvectordocs.com/index.php?title=Sratio)</sup> 对于连续响应，阈值取决于应用和数据，必须由用户选择，例如按SR从高到低对变量排序，然后采用后向或前向选择。<sup>[1](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3211)</sup>

## 起源

选择性比率图由塔里娅·拉亚拉赫蒂及其同事于2008年在《化学计量学与智能实验室系统》上提出，作为质谱谱图中生物标志物发现的工具。<sup>[9](https://doi.org/10.1016/j.chemolab.2008.08.004)</sup> 2009年发表在《分析化学》上的一篇论文，由塔里娅·拉亚拉赫蒂及其同事撰写，提出了SR图与判别变量（discriminating variable，DIVA）检验，作为揭示光谱或色谱谱图中最能区分两组样本的变量的定量工具。<sup>[5](https://doi.org/10.1021/ac802514y)</sup> 综述文献将SR归功于拉亚拉赫蒂等人2009年的工作，<sup>[10](https://www.frontiersin.org/journals/analytical-science/articles/10.3389/frans.2022.867938/full)</sup> 而该比率的F检验显著性阈值则由克瓦尔海姆等人在后来一篇变量选择方法比较中提出。<sup>[4](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3226)</sup>

## 变体

将 \( \mathrm{SR}_{i} \) 乘以目标投影载荷的符号，可得到带符号的SR图，显示每个变量与预测y变量关联的方向。<sup>[1](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3211)</sup> 在分类场景中，DIVA检验计算同一SR区间内所有变量的平均正确分类率（MCCR），从而可以根据判别能力而非分布假设来定义用于生物标志物选择的SR阈值。<sup>[5](https://doi.org/10.1021/ac802514y)</sup>

## 应用

SR图和DIVA检验在未经处理的脑脊液以及加入多组分肽标准的样本的基质辅助激光解吸电离（matrix-assisted laser desorption ionization，MALDI）质谱谱图上得到了验证，其中最具判别力的m/z区域通过目标投影成分上可解释方差与未解释方差之比得以揭示。<sup>[5](https://doi.org/10.1021/ac802514y)</sup> 此后，SR被应用于多项判别类研究，部分原因是它易于整合到PLS-DA框架中；F比值、选择性比率和VIP得分是化学计量学中判别问题最常遇到的变量排序指标之一。<sup>[10](https://www.frontiersin.org/journals/analytical-science/articles/10.3389/frans.2022.867938/full)</sup> 在光谱校准中，目标投影（也称目标旋转），即光谱数据对响应的投影后处理，已以ILS的抗菌活性作为响应变量得到演示。<sup>[11](https://www.nature.com/articles/s41598-021-96389-2.pdf)</sup>

## 局限与替代方法

SR依赖于所选的PLS成分数，因此若最优成分数发生变化，模型应重新拟合。F检验将SR视为严格服从F分布，这是一种近似。高度共线的预测变量可能将相关性分散到多个变量上，自动缩放的选择也会影响比率。由于单一目标投影方向概括了多成分模型，SR可能低估仅在高阶PLS成分中起作用的变量。<sup>[3](https://metricgate.com/docs/selectivity-ratio-pls/)</sup> 作为一种基于协方差的度量，SR旨在寻找与预测响应协方差较大的变量，它往往无法单独产生一个缩减模型，使其性能优于包含所有原始解释变量的模型，因为它可能遗漏对预测重要的正交变异。<sup>[1](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3211)</sup> 在判别场景中，SR和VIP得分通过PLS-DA参数趋于过拟合是一种公认的失效模式。<sup>[10](https://www.frontiersin.org/journals/analytical-science/articles/10.3389/frans.2022.867938/full)</sup>

在多重共线数据中，回归系数对解释和变量选择不太有用，因为它们混合了预测方差与正交方差；2020年比较研究的作者主张在进行手动变量选择时同时使用SR轮廓和回归系数轮廓。<sup>[1](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3211)</sup> 显著性多元相关（significance multivariate correlation，sMC）与SR同样基于已验证PLS模型的目标投影，但使用归一化回归向量而非TP载荷矩阵，混合了预测变异与正交变异，且不显示关联的方向；在三个数据集（液相色谱、红外光谱和质子NMR）上，SR在解释和生物标志物选择方面均优于sMC。<sup>[1](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3211)</sup>

VIP得分由庄和俊于2005年推广，通常以大于1为显著阈值。<sup>[10](https://www.frontiersin.org/journals/analytical-science/articles/10.3389/frans.2022.867938/full)</sup> 选择性比率和VIP得分都可能趋于过拟合，因为它们依赖PLS-DA返回的参数，而PLS-DA存在维数问题以及将回归模型应用于判别问题的问题；然而，与F比值不同，两者都考虑了共线性，而F比值对于判别类问题仍是统计信息更丰富的准则。<sup>[10](https://www.frontiersin.org/journals/analytical-science/articles/10.3389/frans.2022.867938/full)</sup>

## References

1. [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)
2. [Sratio - Eigenvector Research Documentation Wiki (PLS_Toolbox)](https://www.eigenvectordocs.com/index.php?title=Sratio)
3. [Selectivity Ratio (PLS) Calculator | MetricGate](https://metricgate.com/docs/selectivity-ratio-pls/)
4. [Comparison of variable selection methods in partial least squares regression](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/cem.3226)
5. [Tarja Rajalahti and colleagues (2009). Discriminating Variable Test and Selectivity Ratio Plot: Quantitative Tools for Interpretation and Variable (Biomarker) Selection in Complex Spectral or Chromatographic Profiles. Analytical Chemistry.](https://doi.org/10.1021/ac802514y)
6. [chemotools.feature_selection._sr_selector, SRSelector (Python)](https://chemotools.org/_modules/chemotools/feature_selection/_sr_selector.html)
7. [Help for package plsVarSel (R CRAN)](https://cran.r-project.org/web/packages/plsVarSel/refman/plsVarSel.html)
8. [getSelectivityRatio.pls: Selectivity ratio for PLS model in mdatools (R)](https://rdrr.io/cran/mdatools/man/getSelectivityRatio.pls.html)
9. [Tarja Rajalahti and colleagues (2008). Biomarker discovery in mass spectral profiles by means of selectivity ratio plot. Chemometrics and Intelligent Laboratory Systems.](https://doi.org/10.1016/j.chemolab.2008.08.004)
10. [Review of Variable Selection Methods for Discriminant-Type Problems in Chemometrics](https://www.frontiersin.org/journals/analytical-science/articles/10.3389/frans.2022.867938/full)
11. [Majority scoring with backward elimination in PLS for high dimensional spectrum data (Scientific Reports)](https://www.nature.com/articles/s41598-021-96389-2.pdf)

---
*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/selectivity-ratio

English original: https://www.edgepedia.org/selectivity-ratio
