# 概率积分变换

概率积分变换（probability integral transform，PIT）是概率论中的一个结果：若随机变量 X 具有连续的累积分布函数 F，则变换后的变量 U = F(X) 服从区间 [0, 1] 上的均匀分布。换言之，把某个连续分布自身的累积分布函数作用于由该分布抽取的一个样本，就得到一个标准均匀随机变量。这一结果支撑着统计学中的两项常规做法：通过反演均匀抽样来从任意分布中抽样，以及通过检验变换后的数据是否看起来均匀来检验拟合优度或预测校准度。<sup>[1](https://indico.cern.ch/event/972293/attachments/2136087/3607059/Testing%20Goodness%20of%20Fit.pdf)</sup>

| 要点 | 内容 |
|---|---|
| 命题表述 | 若 X 为连续随机变量、分布函数为 F，则 Y = F(X) 服从 (0, 1) 上的均匀分布<sup>[1](https://indico.cern.ch/event/972293/attachments/2136087/3607059/Testing%20Goodness%20of%20Fit.pdf)</sup> |
| 逆形式 | 只要 F 可逆、U 服从 (0, 1) 上的均匀分布，则 F<sup>−1</sup>(U) 的分布函数即为 F；这就是逆变换抽样<sup>[2](https://discovery.ucl.ac.uk/1473910/6/Thesis_final_SJL.pdf)</sup><sup> • </sup><sup>[25](https://cs.brown.edu/courses/cs1951k/lectures/2020/inverse_transform_sampling.pdf)</sup> |
| 多元形式 | 默里·罗森布拉特（Murray Rosenblatt）1952 年的论文把绝对连续的 k 元分布变换为 k 维超立方体上的均匀分布<sup>[3](https://celebratio.org/Rosenblatt_M/article/789/)</sup> |
| 预测评估 | 在设定正确的情况下，一列密度预测的 PIT 值相互独立且服从均匀分布，这正是 PIT 直方图的依据<sup>[4](https://www.sciencedirect.com/science/article/pii/S0169207013000071)</sup> |
| 离散情形 | 对离散分布，即使真实模型成立，PIT 值也聚集在离散点上、并不均匀；随机化可恢复连续残差<sup>[5](https://metricgate.com/docs/probability-integral-transform/)</sup><sup> • </sup><sup>[6](https://research.usc.edu.au/esploro/outputs/journalArticle/Randomized-quantile-residuals/99449465702621)</sup> |
| 参数估计 | 用同一批数据拟合参数会使基于 PIT 的柯尔莫哥洛夫-斯米尔诺夫 p 值偏大；需要利利福斯型校正或基于模拟的校准<sup>[5](https://metricgate.com/docs/probability-integral-transform/)</sup> |

## 命题表述与证明思路

设 X 为连续随机变量，分布函数为 F。定理断言 Y = F(X) 服从 (0, 1) 上的均匀分布。<sup>[1](https://indico.cern.ch/event/972293/attachments/2136087/3607059/Testing%20Goodness%20of%20Fit.pdf)</sup> 对连续且严格单调的情形，证明十分初等：对 [0, 1] 中的 u，

\[ P(F(X) \le u) = P(X \le F^{-1}(u)) = F(F^{-1}(u)) = u, \]

因此 Y 在单位区间上恰好具有均匀分布函数。该结果对所有连续随机变量都成立。<sup>[7](https://gkerns.people.ysu.edu/useR/tutorial/useR-A/IPSUR/IPSUR.pdf)</sup> 当 F 不严格递增，或 X 为离散型时，则以适当定义的广义逆（即分位数函数）代替 F<sup>−1</sup>。<sup>[2](https://discovery.ucl.ac.uk/1473910/6/Thesis_final_SJL.pdf)</sup><sup> • </sup><sup>[8](https://jleugeri.github.io/docs/masterthesis.pdf)</sup>

## 抽样：逆变换

定理的逆形式是逆变换抽样的基础。若 U 服从 (0, 1) 上的均匀分布，F 为可逆的累积分布函数，则 F<sup>−1</sup>(U) 的分布为 F；在抽样文献中，这一方法被称为概率积分变换，而广义逆则可处理离散的目标分布。<sup>[2](https://discovery.ucl.ac.uk/1473910/6/Thesis_final_SJL.pdf)</sup><sup> • </sup><sup>[25](https://cs.brown.edu/courses/cs1951k/lectures/2020/inverse_transform_sampling.pdf)</sup> 教科书中的处理直接描述该算法：先从均匀分布生成一个样本，再（假定逆累积分布函数可得）用逆累积分布函数对其作变换，即得所需分布的样本。<sup>[9](https://pranabdas.github.io/drive/documents/books/Mathematics-for-Machine-Learning.pdf)</sup> 同样的两步结构——先均匀抽样、再施加逆累积分布函数——也出现在应用抽样代码中，那里所关心的随机变量被写成某个 U(0, 1) 变量的函数。<sup>[10](https://www.pnnl.gov/main/publications/external/technical_reports/PNNL-22699.pdf)</sup>

## 拟合优度检验

这一变换把“样本是否来自某个参照分布”的问题，转化为检验均匀性的问题。<sup>[11](https://link.springer.com/article/10.1007/s11222-022-10090-6)</sup> 对于来自未知连续密度 g 的独立样本 y<sub>1</sub>, ..., y<sub>N</sub>，每个值关于某个累积分布函数易于处理的假设密度 p 的 PIT 为

\[ u_i = \int_{-\infty}^{y_i} p(x)\,dx. \]

若 g = p，则变换后的值连续、独立且在 [0, 1] 上均匀分布，于是任何均匀性检验（例如对变换后样本作柯尔莫哥洛夫-斯米尔诺夫检验）都成为对原假设的检验。<sup>[11](https://link.springer.com/article/10.1007/s11222-022-10090-6)</sup> 当累积分布函数与概率密度函数都没有闭式、但可以独立地从 p 抽取对照样本时，则使用经验 PIT 值 u<sub>i</sub> = (1/S) Σ<sub>j</sub> 𝕀(x<sup>i</sup><sub>j</sub> ≤ y<sub>i</sub>)；在 g = p 之下，这些取值服从 S + 1 个值 0, 1/S, ..., 1 上的离散均匀分布，均匀性检验便针对该离散律进行。<sup>[11](https://link.springer.com/article/10.1007/s11222-022-10090-6)</sup>

**历史发展。** 费希尔（R. A. Fisher）引入了概率积分变换，并在《研究工作者的统计方法》（*Statistical Methods for Research Workers*）中用它检验拟合优度、合并相互独立的显著性检验；后世关于该方法的文献所引用的，是 1932 年的第 4 版。<sup>[12](https://encyclopediaofmath.org/images/5/56/RonaldAylmerFISHER.pdf)</sup><sup> • </sup><sup>[13](https://www.jstor.org/stable/2332229)</sup> 以时间序列分析工作著称的美国概率论家、统计学家默里·罗森布拉特在《关于一个多元变换的几点注记》（"Remarks on a multivariate transformation"，《数理统计年刊》23(3)，1952 年，第 470–472 页）中把这一想法推广到多元分布，将绝对连续的 k 元分布映射为 k 维超立方体上的均匀分布；他指出莱维（P. Lévy）在 1937 年已讨论过相关的变换。<sup>[3](https://celebratio.org/Rosenblatt_M/article/789/)</sup> 这一罗森布拉特变换逐个分量进行条件变换，至今仍是通向多元拟合优度检验的标准途径，并被近期一些要求把任意零分布化为均匀形式或正态形式的方法所采用。<sup>[14](https://arxiv.org/abs/2510.22854)</sup><sup> • </sup><sup>[15](https://www.osti.gov/servlets/purl/751172)</sup>

**改进。** 由于估计参数会扭曲均匀性统计量的零分布，当参数是用同一批数据拟合出来的时候，就要采用利利福斯型校正或参数自助法程序。<sup>[5](https://metricgate.com/docs/probability-integral-transform/)</sup><sup> • </sup><sup>[16](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.goodness_of_fit.html)</sup> 后来建立在变换后次序统计量之上的检验具有位置尺度不变性，并且对尾部的偏离敏感；一项模拟研究报告称，在广泛的备择情形中，它们比夏皮罗-威尔克、克拉默-冯·米泽斯和安德森-达林检验更有功效。<sup>[17](https://www.ism.ac.jp/editsec/aism/54/531.html)</sup> 对于以离散方式测量的连续数据，并列值会使经典检验难以施展，为此人们发展了基于 PIT 值经验累积分布函数的同时置信带的图检验，并在贝叶斯工作流（如基于模拟的校准和马尔可夫链蒙特卡洛收敛诊断）中得到应用。<sup>[11](https://link.springer.com/article/10.1007/s11222-022-10090-6)</sup>

## 预测评估与校准

一个预测-观测对的 PIT，就是预测累积分布函数在实际观测值处的取值，即 PIT(F, y) = F(y)。若预测累积分布函数连续，且预测系统在概率意义上是校准的——也就是说，从预测分布中随机抽取的样本与相应观测在统计上无法区分——那么所有个例的 PIT 值构成的集合近似服从 [0, 1] 上的均匀分布。<sup>[18](https://scores.readthedocs.io/en/latest/tutorials/PIT.html)</sup> 伦敦大学学院统计学教授达维德（A. P. Dawid）在其 1984 年的预测-序贯（prequential）方法中引入了变换的这一用法，这是最早用于评估预测分布的时间序列相对于观测结果在统计上是否自洽的方法之一。<sup>[19](https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2023WR036710)</sup><sup> • </sup><sup>[20](https://rss.onlinelibrary.wiley.com/doi/10.2307/2981683)</sup> 戴博尔德（Diebold）、冈瑟（Gunther）与泰（Tay）1998 年的工作使该方法在金融风险管理的密度预测评估中变得可操作；自这些开创性论文以来，PIT 已被广泛用于评价相互竞争的密度预测。<sup>[4](https://www.sciencedirect.com/science/article/pii/S0169207013000071)</sup><sup> • </sup><sup>[21](https://www.ecb.europa.eu/events/pdf/conferences/140613/underlying_papers_for_posters/Paper_for_poster_Abbate.pdf?3f6de80c91035a691281f877f9f9465f=)</sup>

**PIT 直方图。** 格奈廷（Gneiting）、巴尔巴达维（Balabdaoui）与拉夫特里（Raftery）提出了在满足校准的前提下最大化预测分布锐度的框架，并把 PIT 直方图、边缘校准图和恰当评分规则作为诊断工具；他们的方法以对美国太平洋西北部斯泰特莱恩风能中心风速概率预测的排序为例作了演示。<sup>[22](https://stat.uw.edu/research/tech-reports/probabilistic-forecasts-calibration-and-sharpness)</sup> 直方图的形状可诊断出失校准的类型。<sup>[18](https://scores.readthedocs.io/en/latest/tutorials/PIT.html)</sup>

**多元推广。** 对于多元量的概率预测，从事预测评估研究的统计学家齐格尔（Johanna F. Ziegel）与格奈廷（Tilmann Gneiting）提出了连接函数概率积分变换（copula probability integral transform，CopPIT），它是概率校准的一种自然的多元类比。检验 CopPIT 直方图的均匀性在坐标置换和逐坐标的严格单调变换下不变，该直方图推广了用于集合预报的多元秩直方图；这些工具被用于比较双变量风矢量的原始集合预报与后处理集合预报。<sup>[23](https://arxiv.org/abs/1307.7650)</sup> 类似的变换也被构造在紧黎曼流形上：那里存在连续映射，把任何具有连续正密度的分布变为均匀分布，从而支持球面上费希尔分布与形状空间分布的拟合优度检验。<sup>[24](https://www.sciencedirect.com/science/article/pii/S0047259X19300211)</sup>

## 离散数据与随机化版本

该定理只适用于连续分布。对离散分布，PIT 值聚集在离散点上，即使真实模型成立也不均匀。<sup>[5](https://metricgate.com/docs/probability-integral-transform/)</sup> 当时在昆士兰大学的邓恩（Peter K. Dunn）与史密斯（Gordon K. Smyth）在 1996 年提出的随机化分位数残差中解决了回归残差的这一问题：对每个响应值反演拟合的分布函数，求出等价的标准正态分位数，并在响应为离散时加入随机化以获得连续残差；这样得到的残差，除估计参数带来的抽样变异外，恰好是正态的。<sup>[6](https://research.usc.edu.au/esploro/outputs/journalArticle/Randomized-quantile-residuals/99449465702621)</sup>

## 局限

文献中反复出现三点实际限制。第一，均匀性保证只对参数已知的连续分布才精确成立；用同一批数据估计参数会使基于 PIT 的 p 值偏大，需要利利福斯型校正或基于模拟的校正。<sup>[5](https://metricgate.com/docs/probability-integral-transform/)</sup> 第二，样本量小时，对 PIT 直方图的目视评估并不可靠，正式检验对中等程度的偏离均匀性也可能缺乏功效。<sup>[5](https://metricgate.com/docs/probability-integral-transform/)</sup> 第三，PIT 只评估边缘行为：两个变量可以具有相同的边缘分布，却在相互依赖的方式上大相径庭，这是一元 PIT 无法察觉的，而基于连接函数的推广正可弥补这一缺陷。<sup>[5](https://metricgate.com/docs/probability-integral-transform/)</sup><sup> • </sup><sup>[23](https://arxiv.org/abs/1307.7650)</sup> 在时间序列情形中，样本内的相依性也会扭曲经验 PIT 值的分布，通常的补救办法是对马尔可夫链作抽稀（thinning）。<sup>[11](https://link.springer.com/article/10.1007/s11222-022-10090-6)</sup>

## References

1. [Testing Goodness of Fit, lecture notes, CERN (2021)](https://indico.cern.ch/event/972293/attachments/2136087/3607059/Testing%20Goodness%20of%20Fit.pdf)
2. [S. J. L. (UCL thesis), on the probability integral transform and its generalized inverse](https://discovery.ucl.ac.uk/1473910/6/Thesis_final_SJL.pdf)
3. [Murray Rosenblatt, Complete Bibliography, Celebratio Mathematica](https://celebratio.org/Rosenblatt_M/article/789/)
4. [Multivariate density forecast evaluation: A modified approach, Journal of Forecasting / ScienceDirect](https://www.sciencedirect.com/science/article/pii/S0169207013000071)
5. [Probability Integral Transform Calculator, MetricGate documentation](https://metricgate.com/docs/probability-integral-transform/)
6. [Dunn, P. K. and Smyth, G. K. (1996). Randomized quantile residuals, University of the Sunshine Coast research record](https://research.usc.edu.au/esploro/outputs/journalArticle/Randomized-quantile-residuals/99449465702621)
7. [Kerns, G. J. Introduction to Probability (IPSUR)](https://gkerns.people.ysu.edu/useR/tutorial/useR-A/IPSUR/IPSUR.pdf)
8. [Leugering, J. Master's thesis, Chapter 2: Theoretical Background](https://jleugeri.github.io/docs/masterthesis.pdf)
9. [Mathematics for Machine Learning, Section 6.7, Change of Variables/Inverse Transform](https://pranabdas.github.io/drive/documents/books/Mathematics-for-Machine-Learning.pdf)
10. [PNNL-22699, technical report on sampling methods](https://www.pnnl.gov/main/publications/external/technical_reports/PNNL-22699.pdf)
11. [Säilynoja, T., Bürkner, P.-C., Vehtari, A. (2022). Graphical test for discrete uniformity, Statistics and Computing 32, article 32](https://link.springer.com/article/10.1007/s11222-022-10090-6)
12. [Ronald Aylmer Fisher, Encyclopedia of Mathematics biographical article](https://encyclopediaofmath.org/images/5/56/RonaldAylmerFISHER.pdf)
13. [The Probability Integral Transformation for Testing Goodness of Fit and Combining Independent Tests of Significance, JSTOR](https://www.jstor.org/stable/2332229)
14. [Covington, C. T. and Miller, J. W. A powerful goodness-of-fit test using the probability integral transform of order statistics, arXiv:2510.22854](https://arxiv.org/abs/2510.22854)
15. [OSTI report on the Rosenblatt transform for state space parameters](https://www.osti.gov/servlets/purl/751172)
16. [scipy.stats.goodness_of_fit, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.goodness_of_fit.html)
17. [Swanepoel, J. W. H. and Van Graan, F. C. (2002). Goodness-of-fit tests based on estimated expectations of probability integral transformed order statistics, Annals of the Institute of Statistical Mathematics 54, 531–542](https://www.ism.ac.jp/editsec/aism/54/531.html)
18. [The Probability Integral Transform (PIT), scores 2.8.0 documentation](https://scores.readthedocs.io/en/latest/tutorials/PIT.html)
19. [Vrugt and colleagues (2024). Distribution-Based Model Evaluation and Diagnostics, Water Resources Research](https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2023WR036710)
20. [Dawid, A. P. (1984). Statistical Theory: The Prequential Approach, JRSS A 147, 278–290](https://rss.onlinelibrary.wiley.com/doi/10.2307/2981683)
21. [Abbate, A. Density forecasts evaluation using probability integral transforms, ECB conference paper](https://www.ecb.europa.eu/events/pdf/conferences/140613/underlying_papers_for_posters/Paper_for_poster_Abbate.pdf?3f6de80c91035a691281f877f9f9465f=)
22. [Balabdaoui, F., Raftery, A. E., Gneiting, T. (2005). Probabilistic Forecasts, Calibration and Sharpness, University of Washington technical report](https://stat.uw.edu/research/tech-reports/probabilistic-forecasts-calibration-and-sharpness)
23. [Ziegel, J. F. and Gneiting, T. Copula Calibration, arXiv:1307.7650](https://arxiv.org/abs/1307.7650)
24. [Jupp, P. E. and Kume, A. (2020). Measures of goodness of fit obtained by almost-canonical transformations on Riemannian manifolds, Journal of Multivariate Analysis 176](https://www.sciencedirect.com/science/article/pii/S0047259X19300211)
25. [Inverse Transform Sampling.pdf, cs.brown.edu](https://cs.brown.edu/courses/cs1951k/lectures/2020/inverse_transform_sampling.pdf)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Probability theory › Probability distributions › Copulas and dependence structure › Copula constructions, transformations, and invariance

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/probability-integral-transform

English original: https://www.edgepedia.org/probability-integral-transform
