# Sobol敏感性分析

Sobol敏感性分析是一种基于方差的全局敏感性分析方法，它量化数学模型各输入变量的不确定性对模型输出方差的贡献。对每个输入变量，该方法给出一个一阶指数——仅由该输入单独引起的输出方差占比——以及一个总阶指数——由该输入及其与其他输入的所有交互作用共同引起的输出方差占比。<sup>[1](https://ar5iv.labs.arxiv.org/html/2006.08232)</sup> 这些指数对非线性、非单调的输入-输出关系具有稳健性，因此适用于一系列科学应用场景。<sup>[2](https://arxiv.org/html/2509.09078)</sup> 在实践中，它们至今仍是最受欢迎的基于方差的敏感性指数，尤其适合标量输出，并可推广至向量值或函数型输出。<sup>[3](https://arxiv.org/html/2507.05958v3)</sup>

| 关键事实 | 详情 |
|---|---|
| 一阶指数 | \( S_{i} = \mathbb{V}_{i}(Y)/\mathbb{V}[Y] \)，仅由输入 \( i \) 单独引起的输出方差占比<sup>[4](https://scipy.github.io/devdocs/reference/generated/scipy.stats.sobol_indices.html)</sup> |
| 总阶指数 | \( S_{T_i} = 1 - \mathbb{V}[\mathbb{E}(Y \mid x_{\sim i})]/\mathbb{V}[Y] \)，包含 \( i \) 的所有交互作用<sup>[4](https://scipy.github.io/devdocs/reference/generated/scipy.stats.sobol_indices.html)</sup> |
| 求和规则 | 一阶指数之和至多为1；总阶指数之和至少为1；对可加模型二者均等于1<sup>[4](https://scipy.github.io/devdocs/reference/generated/scipy.stats.sobol_indices.html)</sup> |
| 标准设计 | Saltelli的挑选-冻结方案，使用三个样本 \( (y^{A}, y^{B}, y^{A_{u}}) \)<sup>[1](https://ar5iv.labs.arxiv.org/html/2006.08232)</sup> |
| 计算成本 | 用 \( N \) 个样本、\( d \) 个输入计算全部一阶和总阶指数需 \( N(d+2) \) 次模型调用<sup>[1](https://ar5iv.labs.arxiv.org/html/2006.08232)</sup> |
| 样本量 | 通常需要 \( 10^{4} \) 个独立样本才能收敛<sup>[2](https://arxiv.org/html/2509.09078)</sup> |
| 起源 | I. M. Sobol'，载《数学建模》2:1 (1990)，第112–118页，1993年翻译发表<sup>[5](https://www.mathnet.ru/php/archive.phtml?jrnid=mm&option_lang=eng&paperid=2320&wshow=paper)</sup> |

## 工作原理

该方法基于对平方可积函数 \( f(x) \) 的方差分析式分解，其中 \( x = (x_{1}, \ldots, x_{n}) \) 定义在单位超立方体上，每个变量的积分区间为0到1。<sup>[6](http://www.andreasaltelli.eu/file/repository/Sobol_2001.pdf)</sup> 该展开将模型写为 \( f = f_{0} + \sum_{i} f_{i} + \sum_{i} \sum_{j>i} f_{ij} + \cdots + f_{12 \ldots k} \)，总效应指数为 \( S_{T_i} = \mathbb{E}_{X_{\sim i}}(\mathbb{V}_{X_{i}}(Y \mid X_{\sim i}))/\mathbb{V}(Y) \)。<sup>[7](https://community.jmp.com/kvoqx44227/attachments/kvoqx44227/discussions/12422/1/saltelli-et-al-2010.pdf)</sup> 这一分解被称为Sobol分解或Sobol-Hoeffding分解，用于计算敏感性指数。<sup>[8](https://ar5iv.labs.arxiv.org/html/2409.06271)</sup> 由构造方式可知，右端全部 \( 2^{d-1} \) 项两两正交，这正是方差份额得以良定义的原因。<sup>[8](https://ar5iv.labs.arxiv.org/html/2409.06271)</sup> 关于将可积函数分解为不同维数求和项的定理已被证明，并提出了针对任意变量组的敏感性估计的蒙特卡洛算法。<sup>[5](https://www.mathnet.ru/php/archive.phtml?jrnid=mm&option_lang=eng&paperid=2320&wshow=paper)</sup>

这些指数有直接的解读：\( S_{u} \) 表示若将 \( u \) 中的变量固定为其真实值，\( \mathbb{V}[y] \) 的期望缩减百分比。<sup>[1](https://ar5iv.labs.arxiv.org/html/2006.08232)</sup> 由于一阶指数不计入交互作用，\( S_{i} \) 之和至多为1；总阶指数满足 \( S_{T_i} \geq S_{i} \)，\( S_{T_i} \) 之和至少为1，而 \( S_{T_i} = S_{i} \) 意味着不存在涉及 \( X_{i} \) 的交互作用。<sup>[2](https://arxiv.org/html/2509.09078)</sup> 因此，差值 \( S_{T_i} - S_{i} \) 衡量输入 \( i \) 通过交互作用发挥作用的程度。<sup>[2](https://arxiv.org/html/2509.09078)</sup>

## 实现方法

估计采用挑选-冻结方法：依赖随机向量两个独立实现的数值方法，称为挑选-冻结估计量。<sup>[9](https://openturns.github.io/openturns/1.24/theory/reliability_sensitivity/sensitivity_sobol.html)</sup> 同时计算一阶和总阶指数最常用的抽样设计需要三个样本，即 \( (y^{A}, y^{B}, y^{A_{u}}) \)。<sup>[1](https://ar5iv.labs.arxiv.org/html/2006.08232)</sup> 由此，Saltelli一阶估计量为

\[ \hat{S}^{SS}_{u} = \frac{2\sum_{k=1}^{N} y^{A}_{k}\left(y^{A_{u}}_{k} - y^{B}_{k}\right)}{\sum_{k=1}^{N}\left(y^{A}_{k} - y^{B}_{k}\right)^{2}} \]

Sobol-Jansen总阶估计量为

\[ \hat{S}_{T,u}^{SJ} = \frac{\frac{1}{N}\sum_{k=1}^{N}\left(y^{A_{u}}_{k} - y^{B}_{k}\right)^{2}}{\frac{1}{N}\sum_{k=1}^{N}\left(y^{A}_{k} - y^{B}_{k}\right)^{2}} \]<sup>[1](https://ar5iv.labs.arxiv.org/html/2006.08232)</sup>

抽样可使用拟蒙特卡洛点：Sobol的算法每次试验使用 \( 2n \) 个标准随机数，将其替换为 \( I^{2n} \) 中低差异序列的点，收敛速度快于普通蒙特卡洛，常用LPτ序列，也称基2的(t, s)序列或Sobol序列。<sup>[6](http://www.andreasaltelli.eu/file/repository/Sobol_2001.pdf)</sup> 在A、A(i)、B设定下使用拟随机数被推荐为总阶估计的最佳实践。<sup>[7](https://community.jmp.com/kvoqx44227/attachments/kvoqx44227/discussions/12422/1/saltelli-et-al-2010.pdf)</sup> 软件实现包括OpenTURNS，提供SaltelliSensitivityAlgorithm、JansenSensitivityAlgorithm、MauntzKucherenkoSensitivityAlgorithm和MartinezSensitivityAlgorithm；<sup>[9](https://openturns.github.io/openturns/1.24/theory/reliability_sensitivity/sensitivity_sobol.html)</sup> SciPy的sobol_indices；<sup>[4](https://scipy.github.io/devdocs/reference/generated/scipy.stats.sobol_indices.html)</sup> 以及UQpy，其默认参数为n_samples=1000、confidence_level=0.95、first_order_scheme='Janon2014'、total_order_scheme='Homma1996'、second_order_scheme='Saltelli2002'，并使用自助法计算置信区间。<sup>[10](https://uqpyproject.readthedocs.io/en/latest/sensitivity/sobol.html)</sup>

## 起源

其前身是20世纪70年代基于方差的思想：傅里叶振幅敏感性检验（FAST）优于此前使用的局部敏感性方法，因为它能将输出方差分配到输入方差，并将无影响参数固定在标称值上。<sup>[11](https://www.andreasaltelli.eu/file/repository/Bolado.pdf)</sup> Sobol'的指数基于他早期关于傅里叶Haar级数的工作（Sobol'，1969），他认为自己的方法是基于傅里叶的FAST方法的自然推广，并将其定义为比FAST更一般的方法，因为主效应、成对交互项和高阶项都可以通过直接的蒙特卡洛积分计算。<sup>[11](https://www.andreasaltelli.eu/file/repository/Bolado.pdf)</sup> 总敏感性指数 \( S_{T}(i) \) 是所有敏感性指数之和，包含涉及参数 \( i \) 的所有交互效应。<sup>[12](https://informs-sim.org/wsc97papers/0261.PDF)</sup> 分解离散度的基本思想更为古老：相关比——将组内离散度与总体离散度联系起来——是作为方差分析的一部分被引入的。<sup>[13](https://perso.math.univ-toulouse.fr/lagnoux/files/2023/01/lecture_GSA_CC.pdf)</sup>

## 变体

若干命名的估计量为相同的指数展开竞争。对于总阶效应，“Jansen 1999”估计量已被证明比“Sobol 2007”估计量更高效（通过比较二者方差的定理），并被推荐为 \( S_{T_i} \) 的最佳实践。<sup>[7](https://community.jmp.com/kvoqx44227/attachments/kvoqx44227/discussions/12422/1/saltelli-et-al-2010.pdf)</sup> 用于总效应的同一批模拟也可通过Jansen估计量的推广来估计 \( k(k-1)/2 \) 个成对总效应。<sup>[7](https://community.jmp.com/kvoqx44227/attachments/kvoqx44227/discussions/12422/1/saltelli-et-al-2010.pdf)</sup> 后续工作在现有估计量基础上，为特定方差分量和均值提出了新的估计量。<sup>[14](https://epubs.siam.org/doi/10.1137/120876782)</sup>

估计策略分为四大类：蒙特卡洛与拟蒙特卡洛方法；谱与展开技术，如FAST、随机平衡设计（RBD）、敏感性指数有效算法（EASI）和多项式混沌展开；挑选-冻结方法；以及非参数估计量，包括最近邻和核方法，以及基于Chatterjee相关系数的秩估计量。<sup>[3](https://arxiv.org/html/2507.05958v3)</sup> 近期工作针对成本随 \( k \) 线性增长的问题：给定数据方法从固定的输入-输出样本出发，消除了成本随输入数量的线性增长，代价是只能计算一阶指数；<sup>[2](https://arxiv.org/html/2509.09078)</sup> 此外还发展了Sobol'指数估计的重要性抽样方法。<sup>[3](https://arxiv.org/html/2507.05958v3)</sup> 基于正交阵列的方法被提出，因为用Sobol原始方法估计较低的Sobol'指数通常需要 \( 2^{n} \) 次模型评估。<sup>[15](https://hal.science/hal-00743964/document)</sup>

## 应用

Sobol分析用于计算机模型具有许多不确定输入的一系列科学应用。<sup>[2](https://arxiv.org/html/2509.09078)</sup> 在Sobol本人的应用示例中，一个依赖35个变量的模型由计算机代码定义，其设计者假定其中12个变量不必要，全局敏感性方法对变量 \( z \) 给出了总敏感性结果 \( S_{t}(z) = 0.02 \)，支持了因子固定。<sup>[6](http://www.andreasaltelli.eu/file/repository/Sobol_2001.pdf)</sup> 在环境建模中，该方法被用于识别Nossent等（2011）、Vezzaro和Mikkelsen（2012）、Confalonieri等（2010）以及Estrada和Diaz（2010）研究中有影响的参数和主要不确定性来源，并被用作多准则分析的基础（Annoni等，2011）。<sup>[16](https://www.sciencedirect.com/science/article/abs/pii/S1364815212001065)</sup> 在药理学中，Open Systems Pharmacology软件包实现了Homma & Saltelli的Sobol方法和EFAST，用于药代动力学模型的基于方差的分析。<sup>[17](https://open-systems-pharmacology.r-universe.dev/ospsuite.globalsensitivity/doc/variance-based-methods.html)</sup>

## 局限与替代方案

成本是主要局限：挑选-冻结设计所需的模型评估次数随输入变量数 \( k \) 线性增长，这往往使其难以承受。<sup>[3](https://arxiv.org/html/2507.05958v3)</sup> Saltelli/Jansen估计量需要 \( N(d+2) \) 次模型调用才能估计完整的一阶和总阶指数集，而2020年提出的对称估计量需要 \( 2N(d+1) \) 次调用。<sup>[1](https://ar5iv.labs.arxiv.org/html/2006.08232)</sup> 收敛性是实际瓶颈：指数通常需要 \( 10^{4} \) 个独立样本，因此对于具有数百个或更多参数的模型，挑选-冻结方法很快在计算上变得不可行。<sup>[2](https://arxiv.org/html/2509.09078)</sup> 当均值 \( f_{0} \) 较大时精度可能下降，此时减去粗略近似 \( c_{0} \approx f_{0} \) 以构造新函数 \( f(x) - c_{0} \) 会有所帮助；<sup>[6](http://www.andreasaltelli.eu/file/repository/Sobol_2001.pdf)</sup> 二阶指数由 \( S_{(ij)} = S_{i} + S_{j} + S_{ij} \) 得出，高阶指数的估计可能损失精度，不过最大的指数受影响最小。<sup>[6](http://www.andreasaltelli.eu/file/repository/Sobol_2001.pdf)</sup>

相关输入是第二个局限，因为标准分解假设输入独立；源自博弈论的Shapley效应允许在全局敏感性分析中纳入依赖输入变量，在引用的一项比较中，对于所讨论的问题，它被发现比广义Sobol指数更高效。<sup>[18](https://www.sciencedirect.com/science/article/abs/pii/S0951832023000923)</sup> 与FAST相比，Sobol指数成本更高，但能估计任意阶的交互作用，且没有FAST表现出的偏差，也不受FAST限于准可加模型的限制。<sup>[11](https://www.andreasaltelli.eu/file/repository/Bolado.pdf)</sup>

## References

1. [Monte Carlo estimators of first- and total-orders Sobol' indices (arXiv:2006.08232)](https://ar5iv.labs.arxiv.org/html/2006.08232)
2. [Scalable extensions to given-data Sobol' index estimators (arXiv, 2025)](https://arxiv.org/html/2509.09078)
3. [Importance sampling for Sobol' indices estimation (arXiv, 2025)](https://arxiv.org/html/2507.05958v3)
4. [scipy.stats.sobol_indices, SciPy v1.19.0.dev Manual](https://scipy.github.io/devdocs/reference/generated/scipy.stats.sobol_indices.html)
5. [I. M. Sobol', 'On sensitivity estimation for nonlinear mathematical models', Mat. Model., 2:1 (1990), 112–118](https://www.mathnet.ru/php/archive.phtml?jrnid=mm&option_lang=eng&paperid=2320&wshow=paper)
6. [I. M. Sobol', 'Global sensitivity indices for nonlinear mathematical models' (Mathematics and Computers in Simulation, 2001)](http://www.andreasaltelli.eu/file/repository/Sobol_2001.pdf)
7. [Saltelli et al. 2010, 'Variance based sensitivity analysis of model output. The estimator is all you need' (Computer Physics Communications)](https://community.jmp.com/kvoqx44227/attachments/kvoqx44227/discussions/12422/1/saltelli-et-al-2010.pdf)
8. [A new paradigm for global sensitivity analysis (arXiv:2409.06271, September 2024)](https://ar5iv.labs.arxiv.org/html/2409.06271)
9. [Sensitivity analysis using Sobol' indices, OpenTURNS 1.24 documentation](https://openturns.github.io/openturns/1.24/theory/reliability_sensitivity/sensitivity_sobol.html)
10. [Sobol indices, UQpy documentation](https://uqpyproject.readthedocs.io/en/latest/sensitivity/sobol.html)
11. [A. Saltelli, R. Bolado, 'Computational Statistics & Data Analysis 26 (1998) 445–460', FAST vs Sobol' comparison](https://www.andreasaltelli.eu/file/repository/Bolado.pdf)
12. [Sensitivity Analysis of Model Output: Variance-Based Methods Make the Difference (Winter Simulation Conference 1997)](https://informs-sim.org/wsc97papers/0261.PDF)
13. [Lecture notes, 'Part I Variance-based sensitivity analysis and beyond' (Université Toulouse)](https://perso.math.univ-toulouse.fr/lagnoux/files/2023/01/lecture_GSA_CC.pdf)
14. [Variance Components and Generalized Sobol' Indices (SIAM)](https://epubs.siam.org/doi/10.1137/120876782)
15. [A randomized Orthogonal Array-based procedure for the estimation of first- and second-order Sobol' indices](https://hal.science/hal-00743964/document)
16. [Estimating Sobol sensitivity indices using correlations (Environmental Modelling & Software)](https://www.sciencedirect.com/science/article/abs/pii/S1364815212001065)
17. [Mathematical overview of variance-based methods (OSP Global Sensitivity package)](https://open-systems-pharmacology.r-universe.dev/ospsuite.globalsensitivity/doc/variance-based-methods.html)
18. [A comparison between Sobol's indices and Shapley's effect for global sensitivity analysis of systems with independent input variables (Reliability Engineering & System Safety)](https://www.sciencedirect.com/science/article/abs/pii/S0951832023000923)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/sobol-sensitivity-analysis

English original: https://www.edgepedia.org/sobol-sensitivity-analysis
