# 二阶矩方法

二阶矩方法是概率论与组合数学中的一种技术，通过控制非负随机变量的方差——即其偏离均值的“二阶矩”——来证明该随机变量为正，或集中在其均值附近。它依托于切比雪夫不等式，是仅控制期望的一阶矩方法的常用配套方法。在概率方法中，典型用法如下：一阶矩表明某个随机构造平均而言具有所需特征，二阶矩则表明该特征实际上以高概率出现，而非出现在罕见的离群情形中。<sup>[1](https://yufeizhao.com/pm/4.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 核心不等式 | 切比雪夫：对均值 \( \mu \) 与标准差 \( \sigma \)，有 \( \mathbb{P}(|X - \mu| \ge \lambda \sigma) \le \lambda^{-2} \)<sup>[1](https://yufeizhao.com/pm/4.pdf)</sup> |
| 不存在性界 | \( \mathbb{P}(X = 0) \le \mathrm{Var}(X)/(\mathbb{E}X)^2 \)，故 \( \mathrm{Var}(X) = o((\mathbb{E}X)^2) \) 蕴含 \( X > 0 \) 以高概率成立<sup>[2](https://homes.cs.washington.edu/~jrl/teaching/cse525sp19/notes/all-lectures.pdf)</sup> |
| 佩利–齐格蒙德形式 | 对非负 \( X \)，有 \( \mathbb{P}[X > 0] \ge (\mathbb{E}X)^2/\mathbb{E}[X^2] \)<sup>[3](https://people.math.wisc.edu/~roch/grad-prob/gradprob-notes6.pdf)</sup> |
| 主力计算 | 对 \( X = X_1 + \cdots + X_m \) 为指示变量之和，有 \( \mathrm{Var}(X) = \sum_i \mathrm{Var}(X_i) + \sum_{i \ne j} \mathrm{Cov}(X_i, X_j) \)；只有相依对才有贡献<sup>[1](https://yufeizhao.com/pm/4.pdf)</sup> |
| 经典应用 | \( G(n,p) \) 中三角形的阈值为 \( 1/n \)，\( K_4 \) 的阈值为 \( n^{-2/3} \)；其中的 1-命题由二阶矩证明<sup>[1](https://yufeizhao.com/pm/4.pdf)</sup> |
| 约束满足 | 解的数目的二阶矩给出随机超图 2-可着色性与 NAE-\(k\)-SAT 的近乎匹配的阈值下界，位于 \( 2^{k-1} \ln 2 - O(1) \)<sup>[4](https://arxiv.org/abs/cond-mat/0310227)</sup> |
| 标准参考 | 阿隆与斯宾塞的《概率方法》 第 4 章涵盖基础、数论、随机图、团数、互异和以及 Rödl nibble<sup>[5](https://onlinelibrary.wiley.com/doi/10.1002/9780470277331.ch4)</sup> |

## 基本不等式

对均值 \( \mu \)、方差 \( \sigma^2 = \mathbb{E}[(X - \mu)^2] \) 的随机变量 \( X \)，切比雪夫不等式断言：对每个 \( \lambda > 0 \)，

\[ \mathbb{P}(|X - \mu| \ge \lambda \sigma) \le \frac{1}{\lambda^2}. \]

证明只有一行：对非负随机变量 \( (X - \mu)^2 \) 应用马尔可夫不等式。<sup>[1](https://yufeizhao.com/pm/4.pdf)</sup> 该界在偏差上仅以二次速度衰减，这正是该方法被描述为给出多项式强度集中的原因；诸如切尔诺夫界之类更强的工具能给出指数衰减，但要求独立性或可比拟的结构，而组合计数往往缺乏这些。<sup>[1](https://yufeizhao.com/pm/4.pdf)</sup><sup> • </sup><sup>[6](https://jovanaeducation.com/guides/p2-pmt-4)</sup>

存在性证明中最常用的形式是界定 \( X \) 取零的概率。若 \( X = 0 \)，则 \( X \) 偏离其均值整整 \( \mathbb{E}X \)，故

\[ \mathbb{P}(X = 0) \le \mathbb{P}(|X - \mathbb{E}X| \ge \mathbb{E}X) \le \frac{\mathrm{Var}(X)}{(\mathbb{E}X)^2}. \]

因此，对满足 \( \mathbb{E}X_n > 0 \) 且 \( \mathrm{Var}(X_n) = o((\mathbb{E}X_n)^2) \) 的序列 \( (X_n) \)，以概率 \( 1 - o(1) \) 有 \( X_n > 0 \) 且 \( X_n \sim \mathbb{E}X_n \)。<sup>[2](https://homes.cs.washington.edu/~jrl/teaching/cse525sp19/notes/all-lectures.pdf)</sup><sup> • </sup><sup>[1](https://yufeizhao.com/pm/4.pdf)</sup> 比值 \( \mathrm{Var}(X)/(\mathbb{E}X)^2 \) 是变异系数的平方，即计数围绕其平均值集中程度的无量纲度量，也是整个方法所系的关键量。<sup>[7](https://jovanaeducation.com/guides/p2-pmt-2)</sup>

一个精炼版本来自佩利–齐格蒙德不等式，由柯西–施瓦茨证明：对非负 \( X \) 及任意 \( 0 < \theta < 1 \)，

\[ \mathbb{P}[X \ge \theta\, \mathbb{E}X] \ge (1-\theta)^2 \frac{(\mathbb{E}X)^2}{\mathbb{E}[X^2]}. \]

令 \( \theta \downarrow 0 \) 得 \( \mathbb{P}[X > 0] \ge (\mathbb{E}X)^2/\mathbb{E}[X^2] \)，强于由切比雪夫导出的界；塔拉格兰的讲义指出，这一论证本身常被称为二阶矩方法。<sup>[3](https://people.math.wisc.edu/~roch/grad-prob/gradprob-notes6.pdf)</sup><sup> • </sup><sup>[8](https://michel.talagrand.net/challenge/volume1.pdf)</sup>

## 指示变量之和

在组合应用中，\( X \) 通常是计数，写为指示变量之和 \( X = X_1 + \cdots + X_m \)。协方差的双线性给出

\[ \mathrm{Var}(X) = \sum_{i=1}^{m} \mathrm{Var}(X_i) + \sum_{i \ne j} \mathrm{Cov}(X_i, X_j), \]

而由于独立对的 \( \mathrm{Cov}(X_i, X_j) = 0 \)，只需估计相依对。<sup>[1](https://yufeizhao.com/pm/4.pdf)</sup> 一种方便的打包方式：若 \( i \sim j \) 表示事件 \( A_i \) 与 \( A_j \) 不独立，令 \( \mu_m = \sum_i \mathbb{P}[A_i] \)，\( \gamma_m = \sum_{i \sim j} \mathbb{P}[A_i \cap A_j] \)（对有序对求和），则只要 \( \mu_m \to \infty \) 且 \( \gamma_m \le C \mu_m^2 \)，\( \mathbb{P}[A_1 \cup \cdots \cup A_m] \) 就始终有统一的正下界；当 \( \gamma_m = o(\mu_m^2) \) 时趋于 1。<sup>[3](https://people.math.wisc.edu/~roch/grad-prob/gradprob-notes6.pdf)</sup>

## 随机图中的阈值

标志性应用是定位埃尔德什–雷尼随机图 \( G(n,p) \) 中的阈值，其中每条边以概率 \( p \) 独立出现。单调图性质的阈值函数是一个函数 \( r(n) \)，使得当 \( p \ll r(n) \) 时该性质成立的概率趋于 0，当 \( p \gg r(n) \) 时趋于 1。<sup>[3](https://people.math.wisc.edu/~roch/grad-prob/gradprob-notes6.pdf)</sup>

**三角形。** 设 \( X \) 为三角形数目。期望的线性给出 \( \mathbb{E}X = \binom{n}{3} p^3 \asymp n^3 p^3 \)，故若 \( np \to 0 \)，由马尔可夫不等式 \( X = 0 \) 以高概率成立。当 \( np \to \infty \) 时期望发散，但仅此不够：一个类似彩票的变量可能几乎总为零却有很大的均值。二阶矩填补了这一缺口。至多共享一个顶点的两个三角形相互独立；共享一条边的对贡献协方差 \( p^5 - p^6 \)，这样的对有 \( O(n^4) \) 个，当 \( np \to \infty \) 时给出 \( \mathrm{Var}(X) \lesssim n^3 p^3 + n^4 p^5 = o(n^6 p^6) \)。因此三角形以概率 \( 1 - o(1) \) 出现，\( 1/n \) 即为阈值。<sup>[1](https://yufeizhao.com/pm/4.pdf)</sup>

**四团。** 同样的方案给出包含 \( K_4 \) 的阈值 \( n^{-2/3} \)。此处 \( \mathbb{E}X = \binom{n}{4} p^6 \asymp n^4 p^6 \)，方差计算须处理共享两个或三个顶点的团，它们是相依的；所得界 \( \mathrm{Var}(X) = O(n^4) p^6 + O(n^6) p^{11} + O(n^5) p^9 \) 恰在 \( p \gg n^{-2/3} \) 时为 \( o((\mathbb{E}X)^2) \)。<sup>[2](https://homes.cs.washington.edu/~jrl/teaching/cse525sp19/notes/all-lectures.pdf)</sup><sup> • </sup><sup>[1](https://yufeizhao.com/pm/4.pdf)</sup> 对任意固定图 \( H \)，阈值由其子图的最大密度决定，平衡图与非平衡图表现不同。<sup>[9](https://math.iit.edu/~kaul/TeachingSpr23/Math554.html)</sup>

## 数论及其他应用

**互异素因子。** 对不超过 \( n \) 的随机整数，其互异素因子个数 \( \nu(x) \) 的哈代–拉马努金图景，通过将 \( \nu(x) \) 写成对素数的指示变量之和来分析。方差计算给出 \( \mathrm{Var}(X) \sim \log \log n \)，与均值匹配，切比雪夫不等式随即表明 \( \nu(x) \) 集中在 \( \log \log n \) 附近。将更高阶矩与理想化的独立模型比较，可得关于渐近正态性的埃尔德什–卡茨定理（1940）。<sup>[10](https://ocw.mit.edu/courses/18-226-probabilistic-methods-in-combinatorics-fall-2022/mit18_226_f22_lec06-07.pdf)</sup> 图兰（1934）给出的这类概率证明，在数论中概率方法的发展里起了关键作用。<sup>[11](https://notes.edubirdie.com/docs/massachusetts-institute-of-technology/18-226-probabilistic-method-in-combina/88698-second-moment-method)</sup>

**约束满足。** 对随机 \(k\)-SAT 及相关问题，解的数目的一阶矩给出可满足性阈值的上界，二阶矩给出匹配的下界。阿赫利奥普塔斯与摩尔证明，对随机超图 2-可着色性（性质 B）与随机非全相等 \(k\)-SAT，阈值为 \( 2^{k-1} \ln 2 - O(1) \)，并作为推论得出随机 \(k\)-SAT 阈值是 \( \Theta(2^k) \) 阶的。<sup>[4](https://arxiv.org/abs/cond-mat/0310227)</sup> 阿赫利奥普塔斯与佩雷斯（2004）将该方法用于 \(k\)-SAT 本身，确立了 3-SAT 的 2.68 下界，以及 \(k\)-SAT 的渐近紧的 \( 2^k \ln 2 - O(k) \)；原始解计数的朴素二阶矩在那里失效，成功的版本则选取方差低的解子集或对解重新加权。<sup>[12](https://www.researchgate.net/publication/46587897_Second_Moment_Method_on_k-SAT_a_General_Framework)</sup> 一种加权变体——按独立集各顶点总度数为每个独立集赋权——给出了给定平均度的随机图中最大独立集可能规模的新下界。<sup>[13](https://arxiv.org/abs/1011.0180)</sup>

**超图。** 皮彭格与斯宾塞关于一致几乎正则超图中覆盖的定理，在巴拉钱德兰的讲义中被描述为二阶矩方法最令人印象深刻的应用之一。<sup>[14](https://www.math.iitb.ac.in/~niranj/The_Probabilistic_method_Combinatorics.pdf)</sup>

## 在集中工具中的地位

该方法通常是执行起来最容易、所需假设最少的集中工具，代价是界相对较弱。<sup>[1](https://yufeizhao.com/pm/4.pdf)</sup> 当需要更多时，同样的方差计算可用于更强的工具：Janson 不等式将二阶矩式的相依性核算转化为子图计数的指数下尾界，而阿祖马不等式与 McDiarmid 不等式等鞅方法则处理色数之类并非局部指示变量之和的量。<sup>[6](https://jovanaeducation.com/guides/p2-pmt-4)</sup> 从历史上看，其基本思想可追溯至帕夫努季·切比雪夫，他提出了矩方法，并于 1887 年用它证明了对独立但不同分布的被加项之和的中心极限定理的第一个版本。<sup>[15](https://encyclopediaofmath.org/wiki/Chebyshev,_Pafnutii_Lvovich)</sup>

## References

1. [Yufei Zhao, Probabilistic Methods in Combinatorics, Chapter 4: Second Moment (MIT 18.226 lecture notes)](https://yufeizhao.com/pm/4.pdf)
2. [Second moments, CSE 525 lecture notes, University of Washington](https://homes.cs.washington.edu/~jrl/teaching/cse525sp19/notes/all-lectures.pdf)
3. [Sébastien Roch, Lecture 6: First and second moment methods, graduate probability notes, University of Wisconsin–Madison](https://people.math.wisc.edu/~roch/grad-prob/gradprob-notes6.pdf)
4. [Dimitris Achlioptas and Cristopher Moore, Random k-SAT: Two Moments Suffice to Cross a Sharp Threshold, arXiv:cond-mat/0310227](https://arxiv.org/abs/cond-mat/0310227)
5. [Noga Alon and Joel H. Spencer, The Second Moment, Chapter 4 of The Probabilistic Method, Wiley](https://onlinelibrary.wiley.com/doi/10.1002/9780470277331.ch4)
6. [Concentration in Combinatorics: Azuma and Janson, JOVANA Education](https://jovanaeducation.com/guides/p2-pmt-4)
7. [The First and Second Moment Methods, JOVANA Education](https://jovanaeducation.com/guides/p2-pmt-2)
8. [Michel Talagrand, The Challenge of the Upper Tail, Appendix A.12: The Paley–Zygmund Inequality](https://michel.talagrand.net/challenge/volume1.pdf)
9. [Math 554 course topics, Illinois Institute of Technology](https://math.iit.edu/~kaul/TeachingSpr23/Math554.html)
10. [MIT OpenCourseWare 18.226, Lectures 06–07: Second Moment](https://ocw.mit.edu/courses/18-226-probabilistic-methods-in-combinatorics-fall-2022/mit18_226_f22_lec06-07.pdf)
11. [Second Moment Method lecture notes, MIT 18.226 (Edubirdie mirror)](https://notes.edubirdie.com/docs/massachusetts-institute-of-technology/18-226-probabilistic-method-in-combina/88698-second-moment-method)
12. [Second Moment Method on k-SAT: a General Framework (ResearchGate preprint page)](https://www.researchgate.net/publication/46587897_Second_Moment_Method_on_k-SAT_a_General_Framework)
13. [Varsha Dani and Cristopher Moore, Independent sets in random graphs from the weighted second moment method, arXiv:1011.0180](https://arxiv.org/abs/1011.0180)
14. [Niranjan Balachandran, The Probabilistic Method in Combinatorics, lecture notes, IIT Bombay](https://www.math.iitb.ac.in/~niranj/The_Probabilistic_method_Combinatorics.pdf)
15. [Chebyshev, Pafnutii Lvovich, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Chebyshev,_Pafnutii_Lvovich)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Combinatorics

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/second-moment-method

English original: https://www.edgepedia.org/second-moment-method
