# 独立同分布随机变量

**独立同分布（i.i.d. 或 IID）随机变量**是一组相互独立的随机变量——即任何一个变量的结果都不携带关于其他变量的任何信息——并且具有相同的概率分布——即它们都服从同一概率分布。该缩写在概率论与统计学中是标准用语，其中独立同分布变量序列充当对同一随机过程进行重复、互不相关的观测的数学模型，例如反复掷一枚骰子。<sup>[1](https://www.stat.berkeley.edu/~stark/SticiGui/Text/gloss.htm?source=post_page---------------------------)</sup><sup> • </sup><sup>[2](https://www.stat.berkeley.edu/~aldous/Real-World/book_april_2015.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 一组变量 \( X_1, X_2, \ldots \) 是独立同分布的，如果这些变量具有相同的概率分布并且相互独立。<sup>[1](https://www.stat.berkeley.edu/~stark/SticiGui/Text/gloss.htm?source=post_page---------------------------)</sup> |
| 独立性条件 | 对所有取值，\( \Pr\{X = a_i \land Y = b_j\} = \Pr\{X = a_i\} \cdot \Pr\{Y = b_j\} \)；等价地，联合分布等于边缘分布之积。<sup>[3](https://assets.press.princeton.edu/chapters/s10286.pdf)</sup> |
| 期望的可分解性 | 若 \( X_1, \ldots, X_n \) 独立，则对有界可测函数 \( f_j \)，有 \( E[f_1(X_1) \cdots f_n(X_n)] = \prod_{j=1}^{n} E[f_j(X_j)] \)。<sup>[4](https://sites.math.rutgers.edu/~it200/courses/NYU/LimitThms1.pdf)</sup> |
| 特征函数 | 对独立变量，和 \( X_1 + \cdots + X_n \) 的特征函数等于各个特征函数之积。<sup>[4](https://sites.math.rutgers.edu/~it200/courses/NYU/LimitThms1.pdf)</sup> |
| 极限定理 | 对具有有限均值的独立同分布序列，样本均值收敛到均值（大数定律）；在有限方差下，\( \sqrt{n}(\bar{X}_n - \mu)/\sigma \) 依分布收敛到 \( N(0,1) \)（中心极限定理）。<sup>[5](https://faculty.washington.edu/yenchic/25A_stat535/Lec1_review.html)</sup> |
| 统计学角色 | 独立同分布模型是初等数理统计学中的通用模型，将数据视为来自同一随机过程的独立实现。<sup>[2](https://www.stat.berkeley.edu/~aldous/Real-World/book_april_2015.pdf)</sup> |
| 依赖性的代价 | 当数据存在序列相依时，常用的独立同分布自助法产生的错误拒绝率过高。<sup>[6](https://doi.org/10.1175/jtech-d-20-0069.1)</sup> |

## 定义

独立同分布集合由两个要求来定义。独立性意味着，对任意两个取值分别为 \( a_i \) 和 \( b_j \) 的变量 \( X \) 和 \( Y \)，联合概率可分解为 \( \Pr\{X = a_i \land Y = b_j\} = \Pr\{X = a_i\} \cdot \Pr\{Y = b_j\} \)。等价地，联合分布 \( \varphi \) 等于两个边缘分布的乘积分布 \( \varphi_X \times \varphi_Y \)。<sup>[3](https://assets.press.princeton.edu/chapters/s10286.pdf)</sup> 同分布意味着序列中的每个变量具有相同的累积分布函数，因此每次观测都取自同一分布律。<sup>[7](https://riskhub.org/frm-i/course-content/quantitative-analysis/multivariate-random-variables/independent-and-identically-distributed-iid-sequence-of-random-variables-135)</sup>

该定义可推广到任意有限个变量。对 \( n \) 个变量，独立性要求整个向量的联合分布是各个变量分布的乘积测度。<sup>[4](https://sites.math.rutgers.edu/~it200/courses/NYU/LimitThms1.pdf)</sup> 在离散情形下，联合概率质量函数分解为边缘质量函数之积；在连续情形下，联合密度关于勒贝格测度在几乎所有点处分解为边缘密度之积。<sup>[8](https://stats.libretexts.org/Courses/Saint_Mary%27s_College_Notre_Dame/DSCI_500B_Essential_Probability_Theory_for_Data_Science_%28Kuter%29/05%3A_Multivariate_Random_Variables/5.01%3A_Joint_Distributions_of_Discrete_Random_Variables)</sup><sup> • </sup><sup>[9](https://encyclopediaofmath.org/wiki/Independence)</sup>

独立性可通过若干等价方式来检验。对 \( X_1, \ldots, X_n \)，以下每个条件都是充分必要的：联合分布函数可分解，即 \( F_{X_1 \cdots X_n}(a_1, \ldots, a_n) = F_{X_1}(a_1) \cdots F_{X_n}(a_n) \)；联合密度（当存在时）分解为各个密度之积；或者联合特征函数 \( E e^{i u_1 X_1 + \cdots + i u_n X_n} \) 对所有实数 \( u_1, \ldots, u_n \) 等于各个特征函数之积 \( f_{X_1}(u_1) \cdots f_{X_n}(u_n) \)。<sup>[9](https://encyclopediaofmath.org/wiki/Independence)</sup>

## 独立性与同分布的推论

**期望可分解。** 若 \( X_1, \ldots, X_n \) 独立且 \( f_1, \ldots, f_n \) 为有界可测函数，则 \( E[f_1(X_1) \cdots f_n(X_n)] = \prod_{j=1}^{n} E[f_j(X_j)] \)，其证明结合了乘积测度刻画与富比尼定理。<sup>[4](https://sites.math.rutgers.edu/~it200/courses/NYU/LimitThms1.pdf)</sup> 特别地，对独立的 \( X \) 和 \( Y \)，有 \( E[XY] = E[X]E[Y] \)；独立变量之和的方差等于方差之和，因为协方差项 \( \mathrm{Cov}(f,g) = \langle f g \rangle - \langle f \rangle \langle g \rangle \) 为零。<sup>[10](https://math.mit.edu/~djk/18.310/Lecture-Notes/some_probability_theory_2007.html)</sup>

**和具有可计算的分布。** 对独立的 \( X \) 和 \( Y \)，\( Z = X + Y \) 的分布是两个分布律的卷积 \( \mu_X * \mu_Y \)；当密度存在时，\( f_Z(z) = \int_{-\infty}^{\infty} f_X(z-y) f_Y(y) \, dy \)。<sup>[4](https://sites.math.rutgers.edu/~it200/courses/NYU/LimitThms1.pdf)</sup> 特征函数途径通常更为简便：\( \varphi_{X_1 + \cdots + X_n}(t) = \prod_{j=1}^{n} \varphi_{X_j}(t) \)。<sup>[4](https://sites.math.rutgers.edu/~it200/courses/NYU/LimitThms1.pdf)</sup>

**独立性强于零相关。** 若两个变量独立，则其相关系数为零，但反之不成立；普林斯顿教材以一道反例习题明确指出了这一点。<sup>[3](https://assets.press.princeton.edu/chapters/s10286.pdf)</sup>

**同分布增添了对称性。** 仅有同分布不能推出独立，仅有独立也不能推出同分布；独立同分布要求两者兼备。当变量独立同分布且服从正态分布时，一个经典刻画定理适用：样本均值 \( \bar{X} = (X_1 + \cdots + X_n)/n \) 与样本方差 \( (1/n) \sum_{j=1}^{n} (X_j - \bar{X})^2 \) 相互独立；反之，若独立同分布变量的样本均值与样本方差相互独立，则这些变量服从正态分布。<sup>[9](https://encyclopediaofmath.org/wiki/Independence)</sup>

## 存在性与构造

具有指定分布的独立变量总可以在足够丰富的概率空间上构造出来。在带有勒贝格测度的区间 \( [0,1] \) 上，给定任意分布函数序列 \( F_1(x), F_2(x), \ldots \)，可以定义可测函数 \( X_k(\omega) \)，它们相互独立且恰好具有这些分布；最简单的例子利用 \( \omega \) 的二进制分解的符号，即拉德马赫函数 \( r_k(\omega) = \operatorname{sign} \sin(2\pi \cdot 2^{k-1} \omega) \)。<sup>[9](https://encyclopediaofmath.org/wiki/Independence)</sup> 存在某个概率空间承载具有给定分布的独立变量，这可由柯尔莫哥洛夫关于无穷维空间中概率的定理推出。<sup>[9](https://encyclopediaofmath.org/wiki/Independence)</sup>

## 在极限定理中的作用

概率论的经典极限定理都是针对独立同分布序列陈述的，而独立同分布正是其标准证明得以展开的假设条件。<sup>[9](https://encyclopediaofmath.org/wiki/Independence)</sup>

**大数定律。** 设 \( X_1, X_2, \ldots \) 独立同分布，\( E[X_i] = \mu \)，方差有限为 \( \sigma^2 \)。样本均值 \( S_n = (X_1 + \cdots + X_n)/n \) 依概率收敛到 \( \mu \)，因为 \( E[S_n] = \mu \) 且 \( \mathrm{Var}[S_n] = \sigma^2/n \)，于是切比雪夫不等式给出 \( P(|S_n - \mu| > \epsilon) \le \sigma^2/(n \epsilon^2) \to 0 \)。第一个证明由雅各布·伯努利（Jacob Bernoulli，1713）针对二项变量的特殊情形给出。<sup>[11](https://ma.huji.ac.il/~razk/Teaching/LectureNotes/LectureNotesProbability.pdf)</sup> 在较弱的假设 \( E|X_1| < \infty \) 下，柯尔莫哥洛夫强大数定律给出样本均值几乎必然收敛到 \( \mu \) 这一更强的结论。<sup>[5](https://faculty.washington.edu/yenchic/25A_stat535/Lec1_review.html)</sup>

**中心极限定理。** 对 \( E[X_i] = 0 \)、\( \mathrm{Var}[X_i] = 1 \) 的独立同分布序列，标准化和 \( (X_1 + \cdots + X_n)/\sqrt{n} \) 依分布收敛到标准正态变量 \( N(0,1) \)；对一般均值 \( \mu \) 和方差 \( \sigma^2 \)，\( (X_1 + \cdots + X_n - n\mu)/(\sigma\sqrt{n}) \) 亦有相同结论。<sup>[11](https://ma.huji.ac.il/~razk/Teaching/LectureNotes/LectureNotesProbability.pdf)</sup> 证明策略是将和的特征函数分解为各个特征函数之积，而这正是独立性发挥作用之处。<sup>[4](https://sites.math.rutgers.edu/~it200/courses/NYU/LimitThms1.pdf)</sup> 通过三角阵列思想，存在允许相依变量或无穷方差的推广，即林德伯格-费勒定理。<sup>[5](https://faculty.washington.edu/yenchic/25A_stat535/Lec1_review.html)</sup>

**其他情形。** 独立同分布序列还构成以下理论的基础：关于和的大偏差结果；更新理论，其中 \( X_1, X_2, \ldots \) 为非负独立同分布的更新间隔时间，\( S_n = \sum_{i=1}^{n} X_i \)；以及次序统计量，其研究最充分的情形假设分量 \( X_1, \ldots, X_n \) 独立且同分布。<sup>[12](https://math.mit.edu/~nsun/f17s205a.html)</sup><sup> • </sup><sup>[13](https://encyclopediaofmath.org/wiki/Blackwell_renewal_theorem)</sup><sup> • </sup><sup>[14](https://encyclopediaofmath.org/wiki/Order_statistic)</sup>

## 统计学中的独立同分布模型

在数理统计学中，独立同分布模型将已观测的过去数据或未观测的未来变量视为来自同一随机过程的独立实现，类似于掷骰子。在某些教科书语境中，例如随机抽样和随机对照试验，该假设因统计学家提供了随机性而人为成立。加州大学伯克利分校统计学教授戴维·奥尔杜斯（David Aldous）指出，二十世纪的历代教科书给人留下这样的印象：任何一组数据都可以建模为独立同分布，以至于许多人运行显著性检验和置信区间等程序——这些程序只有在独立同分布模型或某种更复杂的显式模型下才有意义——却不追问该假设是否合理或有数据支持。<sup>[2](https://www.stat.berkeley.edu/~aldous/Real-World/book_april_2015.pdf)</sup>

该假设在实践中至关重要。美国国家标准与技术研究院（NIST）《工程统计手册》将随机性列为简单测量模型四个基本假设之一，称其为最关键却最少被检验的假设，并指出若随机性不成立，所有常用的统计检验都将失效，计算出的不确定度变得毫无意义，参数估计也变得可疑。<sup>[15](https://www.itl.nist.gov/div898/handbook/eda/section2/eda251.htm)</sup> 一种常见的具体违反是自相关，即时间序列数据中 \( Y_t \) 与 \( Y_{t-k} \) 之间的相关性，可通过自相关图和滞后图来检测。<sup>[16](https://itl.nist.gov/div898/handbook/eda/section3/eda35c.htm)</sup>

**自助法说明了依赖性的代价。** 自助法由布拉德利·埃夫隆（Bradley Efron）于1979年提出，通过对数据重采样来近似统计量的分布。最常用的变体——独立同分布自助法——在存在相依性时无法给出准确结果；当数据序列相依时，错误拒绝率过高。<sup>[6](https://doi.org/10.1175/jtech-d-20-0069.1)</sup> 对时间序列，自助法最初是针对独立随机变量引入的，后来通过分块、马尔可夫、残差和频域重采样程序推广到相依情形。<sup>[17](https://www.sciencedirect.com/science/article/pii/B9780444538581000016)</sup> 对相依数据，独立同分布自助法会低估测量不确定度。<sup>[18](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=911725)</sup>

## 相关概念

**可交换性与德菲内蒂定理。** 若一个序列的有限维联合分布律在排列下不变，则称该序列是可交换的。德菲内蒂定理指出，任何无限可交换随机变量序列都是条件独立同分布的：给定一个随机分布 \( F \)，这些变量按照 \( F \) 独立同分布。<sup>[19](https://projecteuclid.org/journals/electronic-journal-of-probability/volume-14/issue-none/De-Finettis-type-results-for-some-families-of-non-identically/10.1214/EJP.v14-602.pdf)</sup><sup> • </sup><sup>[20](https://www.stat.berkeley.edu/~pitman/blmq.pdf)</sup> 因此可交换性弱于独立同分布；参数 \( \theta \) 恒定的独立伯努利试验构成可交换序列，但并非所有可交换序列都独立。<sup>[21](https://projecteuclid.org/journals/statistical-science/volume-31/issue-4/Filtering-and-Tracking-Survival-Propensity-Reconsidering-the-Foundations-of-Reliability/10.1214/16-STS565.pdf)</sup>

**弱相依。** 许多为独立序列建立的渐近律可推广到弱相依序列，即序列中相距较远的部分之间的相依性适当小。最简单的例子是 \( m \)-相依序列，其中当 \( |k - l| > m \) 时 \( X_k \) 与 \( X_l \) 独立；以及构成遍历马尔可夫链的序列；一种主要的证明技巧是化归到独立的情形。<sup>[9](https://encyclopediaofmath.org/wiki/Independence)</sup>

**条件独立。** 若对所有取值有 \( \Pr\{X = a_i \land Y = b_j \mid Z = c_k\} = \Pr\{X = a_i \mid Z = c_k\} \cdot \Pr\{Y = b_j \mid Z = c_k\} \)，则称两个变量 \( X \) 和 \( Y \) 在给定 \( Z \) 下条件独立。独立联合分布的凸组合未必本身可分解，因此条件独立并不蕴含无条件独立。<sup>[3](https://assets.press.princeton.edu/chapters/s10286.pdf)</sup>

## References

1. [Independent and identically distributed (iid), SticiGui Glossary, Philip B. Stark, UC Berkeley](https://www.stat.berkeley.edu/~stark/SticiGui/Text/gloss.htm?source=post_page---------------------------)
2. [David Aldous, Real World Probability (lecture book), Section 2.2](https://www.stat.berkeley.edu/~aldous/Real-World/book_april_2015.pdf)
3. [Introduction to Probability and Random Variables, Princeton University Press (sample chapter)](https://assets.press.princeton.edu/chapters/s10286.pdf)
4. [Probability: Limit Theorems I, lecture notes (NYU/Rutgers)](https://sites.math.rutgers.edu/~it200/courses/NYU/LimitThms1.pdf)
5. [UW STAT 535 Lecture 1: Review on Probability and Statistics](https://faculty.washington.edu/yenchic/25A_stat535/Lec1_review.html)
6. [Bootstrap Methods for Statistical Inference, Part I, Journal of Atmospheric and Oceanic Technology](https://doi.org/10.1175/jtech-d-20-0069.1)
7. [Independent and Identically Distributed (IID) Sequence of Random Variables, Risk Hub](https://riskhub.org/frm-i/course-content/quantitative-analysis/multivariate-random-variables/independent-and-identically-distributed-iid-sequence-of-random-variables-135)
8. [Joint Distributions of Discrete Random Variables, Statistics LibreTexts](https://stats.libretexts.org/Courses/Saint_Mary%27s_College_Notre_Dame/DSCI_500B_Essential_Probability_Theory_for_Data_Science_%28Kuter%29/05%3A_Multivariate_Random_Variables/5.01%3A_Joint_Distributions_of_Discrete_Random_Variables)
9. [Independence, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Independence)
10. [The Theory of Probability, MIT 18.310 lecture notes](https://math.mit.edu/~djk/18.310/Lecture-Notes/some_probability_theory_2007.html)
11. [Lecture Notes in Probability (Raz Kupferman, Hebrew University)](https://ma.huji.ac.il/~razk/Teaching/LectureNotes/LectureNotesProbability.pdf)
12. [MIT STAT-205A course schedule (Fall 2017)](https://math.mit.edu/~nsun/f17s205a.html)
13. [Blackwell renewal theorem, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Blackwell_renewal_theorem)
14. [Order statistic, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Order_statistic)
15. [Consequences of Non-Randomness, NIST/SEMATECH Engineering Statistics Handbook](https://www.itl.nist.gov/div898/handbook/eda/section2/eda251.htm)
16. [Autocorrelation, NIST/SEMATECH Engineering Statistics Handbook](https://itl.nist.gov/div898/handbook/eda/section3/eda35c.htm)
17. [Kreiss & Lahiri, Bootstrap Methods for Time Series, Handbook of Statistics Vol. 30](https://www.sciencedirect.com/science/article/pii/B9780444538581000016)
18. [NIST publication on bootstrap uncertainty with dependent datasets](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=911725)
19. [De Finetti's type results for some families of non-identically distributed random variables, Electronic Journal of Probability](https://projecteuclid.org/journals/electronic-journal-of-probability/volume-14/issue-none/De-Finettis-type-results-for-some-families-of-non-identically/10.1214/EJP.v14-602.pdf)
20. [Jim Pitman, notes on random distributions and the Dirichlet process, UC Berkeley](https://www.stat.berkeley.edu/~pitman/blmq.pdf)
21. [Filtering and Tracking Survival Propensity, Statistical Science](https://projecteuclid.org/journals/statistical-science/volume-31/issue-4/Filtering-and-Tracking-Survival-Propensity-Reconsidering-the-Foundations-of-Reliability/10.1214/16-STS565.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Probability theory › Random variables › Exchangeability, independence, and Gaussian structure › Independent and identically distributed sequences

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/independent-and-identically-distributed-random-variables

English original: https://www.edgepedia.org/independent-and-identically-distributed-random-variables
