# 条件概率分布

条件概率分布是指当某些其他信息被视为已知时，一个随机变量或随机元素的概率分布，例如记作在给定 \( Y = y \) 的条件下 \( X \) 的分布，或在给定底层概率空间的子 \( \sigma \)-代数 \( \mathcal{G} \) 的条件下 \( X \) 的分布。在初等情形中，它由联合分布除以边缘分布计算得到；在完整的测度论概率论中，它被形式化为正则条件分布，即一个概率核，为每个条件结果赋予一个完整的概率测度。<sup>[1](https://www.statlect.com/fundamentals-of-probability/conditional-probability-distributions)</sup><sup> • </sup><sup>[2](https://encyclopediaofmath.org/wiki/Conditional_density)</sup>

| 关键事实 | 细节 |
|---|---|
| 离散情形 | 在给定 \( Y = y \) 的条件下 \( X \) 的条件概率质量函数是联合概率质量函数除以 \( Y \) 的边缘概率质量函数，即通常的条件概率公式逐点应用<sup>[1](https://www.statlect.com/fundamentals-of-probability/conditional-probability-distributions)</sup> |
| 连续情形 | 条件密度为 \( f_{X}(x \mid Y = y) = f_{X,Y}(x,y) / f_{Y}(y) \)，对满足 \( f_{Y}(y) \neq 0 \) 的 \( y \) 值成立<sup>[2](https://encyclopediaofmath.org/wiki/Conditional_density)</sup> |
| 正则版本 | 正则条件分布是一个核 \( \mu(\omega, A) \)，它对 \( \mathbb{P} \)-几乎每一个 \( \omega \) 在 \( A \) 上是概率测度，并且等于 \( \mathbb{P}(X \in A \mid \mathcal{G})(\omega) \)<sup>[3](https://webhost.bridgew.edu/j1pike/Prob%20Theory%20II%20notes.pdf)</sup> |
| 存在性 | 对所有随机元素的存在性是目标空间的性质：在 \( (\mathbb{R}, \mathcal{B}(\mathbb{R})) \) 上以及在标准博雷尔空间上——包括带博雷尔 \( \sigma \)-代数的波兰空间——总是成立；一般情况下存在反例<sup>[4](https://www.math.ucdavis.edu/~gravner/MAT235B/assignments/MAT235B_lec1.pdf)</sup><sup> • </sup><sup>[5](https://androma.org/theorems/17345)</sup> |
| 唯一性 | 对目标空间中每个可测集分别而言，任意两个正则条件分布在 \( \mathcal{G} \) 中的一个 \( \mathbb{P} \)-零测集之外一致；当目标 \( \sigma \)-代数可数生成时，一个共同的 \( \mathcal{G} \) 中的零测集即可同时适用于所有集合<sup>[5](https://androma.org/theorems/17345)</sup><sup> • </sup><sup>[16](https://galton.uchicago.edu/~lalley/Courses/383/ConditionalExpectation.pdf)</sup> |
| 零概率条件 | 当 \( \mathbb{P}(Y = y) = 0 \) 时，在给定 \( Y = y \) 的条件下 \( X \) 的条件分布一般无法无歧义地导出，此即博雷尔–柯尔莫哥洛夫悖论<sup>[1](https://www.statlect.com/fundamentals-of-probability/conditional-probability-distributions)</sup> |
| 主要用途 | 在给定 \( \mathcal{G} \) 的条件下 \( X \) 的函数的条件期望可以表示为对正则条件分布的积分，类似于变量替换公式<sup>[3](https://webhost.bridgew.edu/j1pike/Prob%20Theory%20II%20notes.pdf)</sup> |

## 初等条件分布

对于离散随机向量，条件分布由联合概率质量函数逐点定义。若 \( p_{X,Y}(x,y) \) 为联合概率质量函数，\( p_{Y}(y) \) 为 \( Y \) 的边缘概率质量函数（在未直接给出时通过边缘化得到），则在给定 \( Y = y \) 的条件下 \( X \) 的条件概率质量函数为二者之比，前提是 \( p_{Y}(y) > 0 \)。这就是条件概率的通常公式——联合概率除以边缘概率——对每个 \( x \) 值应用的结果。<sup>[1](https://www.statlect.com/fundamentals-of-probability/conditional-probability-distributions)</sup>

对于连续随机向量，类似的对象是条件概率密度函数。记 \( f_{X,Y} \) 为联合密度，\( f_{Y} \) 为 \( Y \) 的边缘密度，则在给定 \( Y = y \) 的条件下 \( X \) 在 \( x \) 处的条件密度为

\[ f_{X}(x \mid Y = y) = \frac{1}{f_{Y}(y)} f_{X,Y}(x,y) \]

对每个满足 \( f_{Y}(y) \neq 0 \) 的 \( y \) 成立。<sup>[2](https://encyclopediaofmath.org/wiki/Conditional_density)</sup> 等价地，如果一个函数的值给出在给定 \( Y = y \) 的条件下 \( X \) 落在每个阈值以下的条件概率，那么它就是在给定 \( Y = y \) 的条件下 \( X \) 的条件分布函数。<sup>[6](https://new.statlect.com/fundamentals-of-probability/conditional-probability-distributions)</sup>

**零概率问题。** 比值公式预设条件事件具有正概率。当 \( \mathbb{P}(Y = y) = 0 \) 时——连续变量的每个精确值都如此——一般不可能无歧义地导出在给定 \( Y = y \) 的条件下 \( X \) 的条件分布。这种不可能性被称为博雷尔–柯尔莫哥洛夫悖论；StatLect 指出它在应用中很少涉及，但它促使了下文更细致的测度论处理。<sup>[1](https://www.statlect.com/fundamentals-of-probability/conditional-probability-distributions)</sup>

## 以σ-代数作为条件

在测度论概率论中，可用的信息被编码为样本空间 \( \Omega \) 上 \( \sigma \)-代数 \( \mathcal{F} \) 的子 \( \sigma \)-代数 \( \mathcal{G} \)。对于一个取值于可测空间 \( (S, \mathcal{S}) \) 的随机元素 \( X \)，条件概率 \( \mathbb{P}(X \in A \mid \mathcal{G}) \) 对每个固定的集合 \( A \in \mathcal{S} \) 定义为 \( \{X \in A\} \) 的指示函数的条件期望的一个版本。困难在于每个集合 \( A \) 都有自己的版本，且仅在零测集意义下确定，而这些零测集可能依赖于 \( A \)，因此逐点定义的映射 \( A \mapsto \mathbb{P}(X \in A \mid \mathcal{G})(\omega) \) 对任何单个 \( \omega \) 未必是可数可加的。<sup>[7](https://math.iisc.ac.in/~gadgil/proofs-and-programs-2023/doc/Mathlib/Probability/Kernel/CondDistrib.html)</sup>

条件概率确实构成测度的一个版本称为正则条件概率，每个正则条件概率都是一个概率核。<sup>[8](https://www.stat.cmu.edu/~cshalizi/754/notes/lecture-03.pdf)</sup> 形式上，函数 \( \mu : \Omega \times \mathcal{S} \to [0,1] \) 是在给定 \( \mathcal{G} \) 的条件下 \( X \) 的正则条件分布，当两个条件成立时：对 \( \mathbb{P} \)-几乎每一个 \( \omega \)，映射 \( A \mapsto \mu(\omega, A) \) 是 \( (S, \mathcal{S}) \) 上的概率测度；并且对每个 \( A \in \mathcal{S} \)，函数 \( \omega \mapsto \mu(\omega, A) \) 是 \( \mathbb{P}(X \in A \mid \mathcal{G}) \) 的一个版本。<sup>[3](https://webhost.bridgew.edu/j1pike/Prob%20Theory%20II%20notes.pdf)</sup> 当目标空间就是原始样本空间本身，即 \( (S, \mathcal{S}) = (\Omega, \mathcal{F}) \) 且 \( X(\omega) = \omega \) 时，该对象称为正则条件概率。<sup>[3](https://webhost.bridgew.edu/j1pike/Prob%20Theory%20II%20notes.pdf)</sup><sup> • </sup><sup>[9](https://web.ma.utexas.edu/users/gordanz/notes/theory_of_probability_I.pdf)</sup>

正则条件分布是普通随机变量在其值空间上诱导的前推测度 \( \mathbb{P} \circ X^{-1} \) 的条件类比：它描述了从条件信息的每个纤维内部看 \( X \) 的分布是什么样子。<sup>[3](https://webhost.bridgew.edu/j1pike/Prob%20Theory%20II%20notes.pdf)</sup> nLab 将同一对象描述为目标空间上以可测方式由条件变量参数化的概率测度。<sup>[10](https://ncatlab.org/nlab/show/Markov%2Bkernel)</sup>

## 存在性与唯一性

是否对每个随机元素都存在正则条件分布，是目标空间 \( (S, \mathcal{S}) \) 的性质，而不仅仅是概率空间的性质。当 \( (S, \mathcal{S}) = (\mathbb{R}, \mathcal{B}(\mathbb{R})) \) 时存在性总是成立，更一般地，只要 \( \mathcal{S} \) 由可数集族生成即成立；这样的空间称为博雷尔空间。每个完备可分度量空间——即波兰空间——带上其博雷尔 \( \sigma \)-代数都是博雷尔空间，因为其 \( \sigma \)-代数由可数稠密子集中各点周围有理半径的开球生成。在此类之外存在反例，但就实用目的而言，正则条件分布总是存在的。<sup>[4](https://www.math.ucdavis.edu/~gravner/MAT235B/assignments/MAT235B_lec1.pdf)</sup>

标准博雷尔空间假设给出了精确的存在性定理：若 \( (\Omega, \mathcal{F}) \) 和 \( (E, \mathcal{E}) \) 是标准博雷尔空间，\( \mathbb{P} \) 是 \( \Omega \) 上的概率测度，\( \mathcal{G} \subset \mathcal{F} \) 可数生成，且 \( Y : \Omega \to E \) 可测，则在给定 \( \mathcal{G} \) 的条件下 \( Y \) 的正则条件分布 \( K \) 存在。此外，若 \( K_1 \) 和 \( K_2 \) 是两个这样的核，则对每个 \( B \in \mathcal{E} \)，存在集合 \( N \in \mathcal{G} \) 满足 \( \mathbb{P}(N) = 0 \)，使得对所有 \( \omega \notin N \) 有 \( K_1(\omega, B) = K_2(\omega, B) \)，因此两个核对每个可测目标集分别几乎必然一致；当 \( \mathcal{E} \) 可数生成时，一个零测集可同时适用于所有 \( B \)，且核在零测集意义下唯一。<sup>[5](https://androma.org/theorems/17345)</sup><sup> • </sup><sup>[16](https://galton.uchicago.edu/~lalley/Courses/383/ConditionalExpectation.pdf)</sup>

同样的“在零测集意义下唯一”也出现在 Lean 数学库 Mathlib 对该概念的形式化中，其中 `condDistrib Y X μ` 被定义为与在给定 \( X \) 的条件下 \( Y \) 的条件期望相关联的马尔可夫核，要求 \( \Omega \) 为标准博雷尔空间且 \( \mu \) 为有限测度；对几乎所有点，核在 \( X a \) 和可测集 \( s \) 处的值等于 \( Y^{-1}(s) \) 的指示函数的条件期望。<sup>[7](https://math.iisc.ac.in/~gadgil/proofs-and-programs-2023/doc/Mathlib/Probability/Kernel/CondDistrib.html)</sup>

## 与分解的关系

正则条件分布是测度分解在概率空间中的实例。给定乘积 \( X \times T \) 上的 \( \sigma \)-有限测度 \( \mu \)，一个分解由 \( X \) 上的 \( \sigma \)-有限测度 \( \nu \) 和从 \( X \) 到 \( T \) 的马尔可夫核 \( \rho \) 组成，使得对所有可测的 \( B, A \) 有 \( \mu(B \times A) = \int_{B} \rho_{x}(A) \, \nu(dx) \)；逆操作称为混合。当 \( (T, \mathcal{T}) \) 为波兰博雷尔空间时分解存在，测度 \( \nu \) 在等价意义下唯一，核 \( \rho \) 在几乎处处可测重归一化意义下唯一。<sup>[11](https://encyclopediaofmath.org/wiki/Stochastic_point_process)</sup> 在标准概率空间上，可测映射 \( \alpha \) 的纤维 \( \{\omega : \alpha(\omega) = \omega'\} \) 上的条件测度 \( P_{\omega'} \) 恰好扮演这一角色；对于正方形上的映射 \( (x,y) \mapsto x \)，在给定 \( x \) 的条件下 \( (x,y) \) 的条件分布是垂直纤维 \( \{x\} \times (0,1) \) 上的一维勒贝格测度。<sup>[12](https://encyclopediaofmath.org/wiki/Standard_probability_space)</sup>

## 应用

正则条件分布的实用价值在于它将条件化转化为普通的积分。若 \( \mu \) 是在给定 \( \mathcal{G} \) 的条件下 \( X \) 的正则条件分布，则对任何使 \( g(X) \) 具有有限期望的可测函数 \( g \)，有 \( \mathbb{E}[g(X) \mid \mathcal{G}](\omega) = \int_{S} g(x) \, \mu(\omega, dx) \)，正如普通变量替换公式对分布计算期望一样。<sup>[3](https://webhost.bridgew.edu/j1pike/Prob%20Theory%20II%20notes.pdf)</sup> 在具有联合密度 \( f \) 且 \( \mathcal{G} = \sigma(Y) \) 的二元组 \( (X, Y) \) 的具体情形中，正则条件分布是关于勒贝格测度具有密度 \( f(x, Y) / f_{Y}(Y) \) 的随机测度，恢复了初等条件密度公式。<sup>[4](https://www.math.ucdavis.edu/~gravner/MAT235B/assignments/MAT235B_lec1.pdf)</sup>

条件分布还承载结构性定理。对于标准博雷尔空间中的可交换随机元素序列，该序列在给定可交换 \( \sigma \)-代数下条件独立同分布，当且仅当每个随机元素在给定该 \( \sigma \)-代数下存在正则条件分布，这是德菲内蒂–休伊特–萨维奇定理的推广。<sup>[13](https://arxiv.org/abs/2312.16349)</sup> 在随机过程中，给定现在对未来取条件分布定义了马尔可夫过程的转移律，其中在给定全部过去的条件下 \( X(t_1) \) 的分布仅依赖于 \( X(t_0) \)。<sup>[14](https://encyclopediaofmath.org/wiki/Probability_theory)</sup>

**注意事项。** 尽管正则条件分布定义良好且被广泛使用，它们可能违背从给定正概率事件的条件概率的经典定义中得出的直觉；文献引入了真正则条件分布的概念，并给出了给定概率核关于唯一子 \( \sigma \)-代数构成真正则条件分布的充要条件。<sup>[15](https://arxiv.org/abs/2503.20489)</sup>

## References

1. [Conditional probability distribution, StatLect](https://www.statlect.com/fundamentals-of-probability/conditional-probability-distributions)
2. [Conditional density, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Conditional_density)
3. [Probability Theory 2 Lecture Notes, Bridgewater State University](https://webhost.bridgew.edu/j1pike/Prob%20Theory%20II%20notes.pdf)
4. [MAT 235B lecture notes, J. Gravner, UC Davis](https://www.math.ucdavis.edu/~gravner/MAT235B/assignments/MAT235B_lec1.pdf)
5. [Existence of Regular Conditional Distributions on Standard Borel Spaces, Theorem #17345, Androma](https://androma.org/theorems/17345)
6. [Conditional distributions (alternate StatLect mirror)](https://new.statlect.com/fundamentals-of-probability/conditional-probability-distributions)
7. [Mathlib.Probability.Kernel.CondDistrib documentation](https://math.iisc.ac.in/~gadgil/proofs-and-programs-2023/doc/Mathlib/Probability/Kernel/CondDistrib.html)
8. [Lecture 3: Conditional distributions, CMU 36-754, C. Shalizi](https://www.stat.cmu.edu/~cshalizi/754/notes/lecture-03.pdf)
9. [Chapter 9. Conditional Expectation, Probability Theory I notes, UT Austin](https://web.ma.utexas.edu/users/gordanz/notes/theory_of_probability_I.pdf)
10. [Markov kernel, nLab](https://ncatlab.org/nlab/show/Markov%2Bkernel)
11. [Stochastic point process, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Stochastic_point_process)
12. [Standard probability space, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Standard_probability_space)
13. [de Finetti's theorem and the existence of regular conditional distributions and strong laws on exchangeable algebras, arXiv:2312.16349](https://arxiv.org/abs/2312.16349)
14. [Probability theory, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Probability_theory)
15. [On some properties of probability kernels, arXiv:2503.20489](https://arxiv.org/abs/2503.20489)
16. [galton.uchicago.edu](https://galton.uchicago.edu/~lalley/Courses/383/ConditionalExpectation.pdf)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Probability theory › Conditional probability and independence › Conditional distributions (static)

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/conditional-probability-distribution

English original: https://www.edgepedia.org/conditional-probability-distribution
