# 控制变量

控制变量是蒙特卡洛模拟中的一种方差缩减技术：利用一个期望已知、且与模拟输出强相关的辅助随机变量来修正样本均值，从而在不引入偏差的前提下降低估计量方差。其核心思想是把目标期望拆成两部分——由控制变量承载的已知部分，以及蒙特卡洛可以低成本估计的小残差。<sup>[1](https://mpaldridge.github.io/math5835/lectures/L05-cv.html)</sup>

| 事实 | 值 |
|---|---|
| 估计量 | \( \bar{Y}(b) = \bar{Y} - b(\bar{X} - \mathbb{E}[X]) \)<sup>[2](https://beckassets.blob.core.windows.net/product/readingsample/713991/9780387004518_excerpt_002.pdf)</sup> |
| 最优系数 | \( b^{*} = \mathrm{Cov}[X,Y]/\mathrm{Var}[X] = \sigma_{Y}\rho_{XY}/\sigma_{X} \)<sup>[2](https://beckassets.blob.core.windows.net/product/readingsample/713991/9780387004518_excerpt_002.pdf)</sup> |
| \( b^{*} \) 处的方差比 | \( \mathrm{Var}[\bar{Y} - b^{*}(\bar{X} - \mathbb{E}[X])]/\mathrm{Var}[\bar{Y}] = 1 - \rho_{XY}^{2} \)<sup>[2](https://beckassets.blob.core.windows.net/product/readingsample/713991/9780387004518_excerpt_002.pdf)</sup> |
| 加速比对相关性的敏感度 | \( \rho = 0.95 \) 时加速十倍，\( 0.90 \) 时五倍，\( |\rho_{XY}| = 0.70 \) 时约两倍<sup>[2](https://beckassets.blob.core.windows.net/product/readingsample/713991/9780387004518_excerpt_002.pdf)</sup> |
| 估计系数的代价 | 有 \( d \) 个控制变量时损失因子为 \( (n-2)/(n-d-2) > 1 \)；渐近为 \( 1 + d/n \)<sup>[3](https://informs-sim.org/wsc03papers/017.pdf)</sup> |
| 对控制变量的要求 | 期望已知或易于获得、与输出相关、易于模拟<sup>[4](https://web.maths.unsw.edu.au/~zdravkobotev/variancereductionCorrection.pdf)</sup> |
| 首个严格论述 | Lavenberg 与 Welch（1981）<sup>[3](https://informs-sim.org/wsc03papers/017.pdf)</sup> |

## 工作原理

设 \( Y \) 为均值未知的模拟输出，\( X \) 为均值 \( \mathbb{E}[X] \) 已知的控制变量，二者联合模拟。受控估计量为

\[ \bar{Y}(b) = \bar{Y} - b(\bar{X} - \mathbb{E}[X]) = \frac{1}{n}\sum_{i=1}^{n}\bigl(Y_{i} - b(X_{i} - \mathbb{E}[X])\bigr). \]

由于 \( \mathbb{E}[\bar{X} - \mathbb{E}[X]] = 0 \)，该估计量对任意 \( b \) 都是无偏的；系数只改变方差。<sup>[5](https://webhomes.maths.ed.ac.uk/~dsiska/MonteCarloMethods.pdf)</sup> 单个调整后重复样本的方差为 \( \mathrm{Var}[Y - b(X - \mathbb{E}[X])] = \mathrm{Var}[Y] - 2b\,\mathrm{Cov}[X,Y] + b^{2}\mathrm{Var}[X] \)，这是关于 \( b \) 的抛物线，在 \( b = \mathrm{Cov}[X,Y]/\mathrm{Var}[X] \) 处取最小。<sup>[6](https://people.maths.ox.ac.uk/gilesm/infomm/lec2-2x2.pdf)</sup> 完全相关 \( \rho = \pm 1 \) 会得到零方差估计量。<sup>[7](https://math.nyu.edu/~goodman/teaching/MonteCarlo20/week12/Week12.pdf)</sup> 等价地，目标均值可写成 \( \mathbb{E}[\phi(X) - \psi(X)] + \mathbb{E}[\psi(X)] \)，只用蒙特卡洛估计低方差的差值，因此控制变量应在高概率区域上与目标相似。<sup>[1](https://mpaldridge.github.io/math5835/lectures/L05-cv.html)</sup>

## 具体做法

可用的控制变量必须期望已知或易于获得、与输出相关、且易于模拟。<sup>[4](https://web.maths.unsw.edu.au/~zdravkobotev/variancereductionCorrection.pdf)</sup> 协方差乃至最优系数通常未知，需用同一批样本通过最小二乘估计。这一估计几乎不花代价：额外误差项为 \( n^{-1} \) 阶，小于 \( n^{-1/2} \) 的统计误差；且由于方差导数在最优值处为零，最优值附近的性能对系数不敏感。<sup>[8](https://math.nyu.edu/~goodman/teaching/MonteCarlo07/notes/VarianceReduction.pdf)</sup> 若联合估计 \( d \) 个控制变量，方差比会多出一个损失因子 \( (n-2)/(n-d-2) \)，且受控输出变得相依，估计量因而有偏；把输出分成批次（批均值法）可恢复渐近有效的置信区间，当 \( (Y,C) \) 为多元正态时则是精确的。<sup>[3](https://informs-sim.org/wsc03papers/017.pdf)</sup>

## 起源

最早见于印刷文献的出处是 H. Kahn 与 A. W. Marshall 的论文《蒙特卡洛计算中缩减样本量的方法》，载于《美国运筹学会会刊》，1953 年。<sup>[9](https://doi.org/10.1287/opre.1.5.263)</sup><sup> • </sup><sup>[10](https://onlinelibrary.wiley.com/doi/10.1002/9781118014967.ch9)</sup> Szechtman 推荐 S. S. Lavenberg 与 P. D. Welch（1981）的论文，认为它首次对控制变量给出了完整而严格的论述。<sup>[3](https://informs-sim.org/wsc03papers/017.pdf)</sup><sup> • </sup><sup>[11](https://doi.org/10.1287/mnsc.27.3.322)</sup> 后来的方法学工作包括 Reuven Y. Rubinstein 与 Ruth Marcus 对多变量控制变量的推广（《运筹学》，1985）<sup>[12](https://doi.org/10.1287/opre.33.3.661)</sup>、Barry L. Nelson 的《控制变量补救措施》（《运筹学》，1990），讨论针对系数估计偏差的批均值补救<sup>[13](https://doi.org/10.1287/opre.38.6.974)</sup>、Kenneth W. Bauer 与 James R. Wilson 的选择准则（《海军研究后勤》，1992）<sup>[14](https://doi.org/10.1002/nav.3220390303)</sup>，以及 Peter W. Glynn 与 Roberto Szechtman 在 2002 年对该方法与相关技术所做的统一。<sup>[15](https://doi.org/10.1007/978-3-642-56046-0_3)</sup>

## 变体

**多重控制变量。** 设有控制变量 \( W_{1},\ldots,W_{m} \)，最优系数满足线性方程组 \( \mathrm{Cov}(Y,W_{l}) = \sum_{j=1}^{m}\mathrm{Cov}(W_{l},W_{j})\alpha_{j} \)，前提是控制变量协方差矩阵非奇异；统计学家认出这正是线性回归系数。<sup>[8](https://math.nyu.edu/~goodman/teaching/MonteCarlo07/notes/VarianceReduction.pdf)</sup>

**其他技术作为特例。** Glynn 与 Szechtman 指出，对偶变量对应于一种普遍最优的控制系数选择，而条件蒙特卡洛对应于 \( C = X - \mathbb{E}(X \mid H) \)，其最优系数恰为 \( b^{*} = 1 \)。<sup>[15](https://doi.org/10.1007/978-3-642-56046-0_3)</sup>

**鞅控制变量与多层控制变量。** 鞅控制变量构造（局部）鞅作为控制变量。<sup>[16](https://numdam.org/item/10.1051/ps:2007005.pdf)</sup> 两层（多层）估计量放松了均值已知的条件，用来自便宜 \( m \) 倍的样本的无偏估计替代控制均值；当 \( \rho^{2} m > 1-\rho^{2} \) 时，按计算量归一化的方差比在 \( r^{*} = \sqrt{\rho^{2} \cdot m/(1-\rho^{2}) - 1} \) 处最小，最小值为 \( (|\rho| + \sqrt{m \cdot (1-\rho^{2})})^{2}/m \)，对高度相关的控制变量为 \( 1/m \) 阶；否则最小值落在分配范围的边界上，相当于不使用辅助层。<sup>[4](https://web.maths.unsw.edu.au/~zdravkobotev/variancereductionCorrection.pdf)</sup>

**均值未知、Stein 控制变量与机器学习控制变量。** 拟控制变量和均值估计的控制变量用估计均值替代先验已知均值。<sup>[17](https://arxiv.org/html/2412.11257v2)</sup> 对 MCMC，形如 \( \alpha + h - Ph \) 的 Stein 算子控制变量是有效的，其中 \( P \) 是 \( \pi \)-不变链的一步条件期望算子，因为 \( \mathbb{E}_{\pi}[h(x) - Ph(x)] = 0 \)；不同变体的区别在于函数类，或用多项式、或用再生核希尔伯特空间、或在半精确控制泛函中组合使用。<sup>[18](https://arxiv.org/html/2402.07349)</sup><sup> • </sup><sup>[19](https://doi.org/10.1093/biomet/asab036)</sup> 预测增强蒙特卡洛（PEMC）把预训练的机器学习预测模型整合进任意蒙特卡洛基线，同时保持无偏性，去掉了辅助输出需要闭式均值的经典要求；其最优系数为 \( a^{*} = \mathrm{Cov}(f(Y),g(X))/((n/N+1)\mathrm{Var}(g(X))) \)，与拟控制变量和均值估计方案的区别在于使用预训练而非自适应模型，并提供有限样本保证。<sup>[17](https://arxiv.org/html/2412.11257v2)</sup>

## 应用

**金融工程。** 在 Black-Scholes 定价中，贴现资产 \( e^{-r(T-t)} \cdot S_{T} \) 是自然控制变量，因为由鞅性质 \( \mathbb{E}_{Q}[e^{-r(T-t)} S_{T} \mid \mathcal{F}_{t}] = S_{t} \)，在时刻 0 化简为 \( \mathbb{E}_{Q}[e^{-rT} S_{T}] = S_{0} \)。<sup>[5](https://webhomes.maths.ed.ac.uk/~dsiska/MonteCarloMethods.pdf)</sup> 几何平均期权收益有闭式期望，是给算术平均期权定价时经典而成功的控制变量。<sup>[20](https://www.mdpi.com/2071-1050/11/3/815)</sup>

**贝叶斯计算。** 对 MCMC，估计量 \( \hat{\mu}_{\mathrm{CV}} = (1/n)\sum[f(X^{(i)}) - \theta u(X^{(i)})] + \theta\int u\,d\pi \) 使用一个在 \( \pi \) 下期望已知的函数 \( u \)；在 MAP 附近做高斯（拉普拉斯）近似可提供这样一个解析期望已知的控制变量。<sup>[18](https://arxiv.org/html/2402.07349)</sup><sup> • </sup><sup>[7](https://math.nyu.edu/~goodman/teaching/MonteCarlo20/week12/Week12.pdf)</sup>

**机器学习。** 变分推断的控制变量通过对成对无偏梯度估计量取差得到，包括得分函数（REINFORCE）估计量和重参数化估计量。<sup>[21](https://proceedings.neurips.cc/paper_files/paper/2018/file/dead35fa1512ad67301d09326177c42f-Paper.pdf)</sup> REBAR（G. Tucker 及其同事，2017）为离散潜变量模型提供低方差、无偏的梯度估计。<sup>[22](https://doi.org/10.48550/arxiv.1703.07370)</sup>

**计算机图形学。** T. Müller 及其同事（2020）构造了用于渲染的神经控制变量，把归一化流形状函数与神经网络推断的分量结合起来，后者的积分按构造可得，因此控制变量的均值精确已知。<sup>[23](https://doi.org/10.1145/3414685.3417804)</sup>

## 局限与替代方法

收益由相关性决定：当 \( |\rho_{XY}| = 0.70 \) 时加速仅约两倍；若不用控制变量却要达到受控后的方差，需要 \( n/(1-\rho_{XY}^{2}) \) 次重复。<sup>[2](https://beckassets.blob.core.windows.net/product/readingsample/713991/9780387004518_excerpt_002.pdf)</sup> 用最小二乘估计替代最优系数会引入一些偏差，并使方差缩减小于理想公式所预示的。<sup>[2](https://beckassets.blob.core.windows.net/product/readingsample/713991/9780387004518_excerpt_002.pdf)</sup><sup> • </sup><sup>[4](https://web.maths.unsw.edu.au/~zdravkobotev/variancereductionCorrection.pdf)</sup> 优化不佳的控制变量可能使估计量的方差比朴素估计量更大；基于梯度的（Stein）控制变量对非光滑被积函数表现不佳，例如用于估计概率的指示函数。<sup>[18](https://arxiv.org/html/2402.07349)</sup>

在替代方法中，对偶变量和条件蒙特卡洛是控制变量框架在固定最优系数下的特例。<sup>[15](https://doi.org/10.1007/978-3-642-56046-0_3)</sup> 重要性抽样是稀有事件模拟的主要方法，那里概率可小到 \( 10^{9} \) 分之一；只有当 \( \mathbb{E}[H^{2}(X)L(X)] \le \mathbb{E}[H^{2}(X)] \) 时其方差缩减才成立，而粗心地移动概率质量可能导致严重的低估。<sup>[8](https://math.nyu.edu/~goodman/teaching/MonteCarlo07/notes/VarianceReduction.pdf)</sup><sup> • </sup><sup>[4](https://web.maths.unsw.edu.au/~zdravkobotev/variancereductionCorrection.pdf)</sup> 随机化拟蒙特卡洛对光滑被积函数把标准误从 \( O(n^{-1/2}) \) 改进到 \( O(n^{-1/2-\delta}) \)。<sup>[4](https://web.maths.unsw.edu.au/~zdravkobotev/variancereductionCorrection.pdf)</sup><sup> • </sup><sup>[6](https://people.maths.ox.ac.uk/gilesm/infomm/lec2-2x2.pdf)</sup>

## References

1. [Control variate – MATH5835M Statistical Computing (Paldridge, Leeds)](https://mpaldridge.github.io/math5835/lectures/L05-cv.html)
2. [Monte Carlo Methods in Financial Engineering, Chapter 4: Variance Reduction Techniques (Paul Glasserman, Springer, 2004)](https://beckassets.blob.core.windows.net/product/readingsample/713991/9780387004518_excerpt_002.pdf)
3. [Control Variates Techniques for Monte Carlo Simulation (Winter Simulation Conference 2003, R. Szechtman)](https://informs-sim.org/wsc03papers/017.pdf)
4. [Variance Reduction (Botev & Ridder, Wiley StatsRef survey)](https://web.maths.unsw.edu.au/~zdravkobotev/variancereductionCorrection.pdf)
5. [Monte Carlo Methods lecture notes (Siska, Edinburgh)](https://webhomes.maths.ed.ac.uk/~dsiska/MonteCarloMethods.pdf)
6. [Monte Carlo Methods for Uncertainty Quantification, Lecture 2: Variance Reduction (Mike Giles, Oxford)](https://people.maths.ox.ac.uk/gilesm/infomm/lec2-2x2.pdf)
7. [Control variates and multi-scale control variates (Goodman, NYU, Week 12)](https://math.nyu.edu/~goodman/teaching/MonteCarlo20/week12/Week12.pdf)
8. [Variance Reduction lecture notes (Jonathan Goodman, NYU, Monte Carlo course)](https://math.nyu.edu/~goodman/teaching/MonteCarlo07/notes/VarianceReduction.pdf)
9. [H. Kahn, A. W. Marshall (1953). Methods of Reducing Sample Size in Monte Carlo Computations. Journal of the Operations Research Society of America.](https://doi.org/10.1287/opre.1.5.263)
10. [Handbook of Monte Carlo Methods, Chapter 9: Variance Reduction (Kroese, Taimre, Botev, 2011)](https://onlinelibrary.wiley.com/doi/10.1002/9781118014967.ch9)
11. [S. S. Lavenberg, P. D. Welch (1981). A Perspective on the Use of Control Variables to Increase the Efficiency of Monte Carlo Simulations. Management Science.](https://doi.org/10.1287/mnsc.27.3.322)
12. [Reuven Y. Rubinstein, Ruth Marcus (1985). Efficiency of Multivariate Control Variates in Monte Carlo Simulation. Operations Research.](https://doi.org/10.1287/opre.33.3.661)
13. [Barry L. Nelson (1990). Control Variate Remedies. Operations Research.](https://doi.org/10.1287/opre.38.6.974)
14. [Kenneth W. Bauer, James R. Wilson (1992). Control-variate selection criteria. Naval Research Logistics (NRL).](https://doi.org/10.1002/nav.3220390303)
15. [Peter W. Glynn, Roberto Szechtman (2002). Some New Perspectives on the Method of Control Variates. .](https://doi.org/10.1007/978-3-642-56046-0_3)
16. [A Martingale Control Variate Method for Option Pricing with Stochastic Volatility (Fouque & Han, ESAIM: PS)](https://numdam.org/item/10.1051/ps:2007005.pdf)
17. [Prediction-Enhanced Monte Carlo: A Machine Learning View on Control Variates (arXiv 2412.11257, Dec 2024)](https://arxiv.org/html/2412.11257v2)
18. [Chapter 18: Control Variates for MCMC (ZVCV book chapter, arXiv 2402.07349, 2024)](https://arxiv.org/html/2402.07349)
19. [L F South and colleagues (2021). Semi-exact control functionals from Sard’s method. Biometrika.](https://doi.org/10.1093/biomet/asab036)
20. [Variance and Dimension Reduction Monte Carlo Method for Pricing European Multi-Asset Options with Stochastic Volatilities (Sustainability, 2019)](https://www.mdpi.com/2071-1050/11/3/815)
21. [Using Large Ensembles of Control Variates for Variational Inference (NeurIPS 2018)](https://proceedings.neurips.cc/paper_files/paper/2018/file/dead35fa1512ad67301d09326177c42f-Paper.pdf)
22. [Tucker, George and colleagues (2017). REBAR: Low-variance, unbiased gradient estimates for discrete latent variable models. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1703.07370)
23. [Thomas Müller and colleagues (2020). Neural control variates. ACM Transactions on Graphics.](https://doi.org/10.1145/3414685.3417804)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/control-variates

English original: https://www.edgepedia.org/control-variates
