# 截断正态分布

截断正态分布是正态随机变量在其支撑集的一个子集——通常是一个区间 \([a, b]\)——上受限后的概率分布，其密度经过重新缩放，使该区间上的积分等于一。当边界之外的值在物理上不可能、未被观测到，或被选择规则排除时，就会出现这种分布；它是相对于均值为 \(\mu\)、标准差为 \(\sigma\) 的父正态分布定义的。<sup>[1](https://people.math.sc.edu/burkardt/c_src/truncated_normal/truncated_normal.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 密度在截断集上与父正态密度成正比，在其外为零；对于双截断标准正态，\( f(x, a, b) = \phi(x) / \Delta(a, b) \)，其中 \( \Delta(a, b) = \Phi(b) - \Phi(a) \)^<sup>[2](https://warrenweckesser.github.io/notes/truncnorm.html)</sup> |
| 单侧均值 | 对于 \( X \sim N(\mu, \sigma^2) \) 在给定 \( X > t \) 的条件下，\( E[X \mid X > t] = \mu + \sigma \, \phi(\alpha) / (1 - \Phi(\alpha)) \)，其中 \( \alpha = (t - \mu)/\sigma \)^<sup>[3](https://people.bath.ac.uk/mnsak/Microstructure.pdf)</sup> |
| 单侧方差 | \( \mathrm{Var}[X \mid X > t] = \sigma^2 \left(1 - \lambda(\alpha)(\lambda(\alpha) - \alpha)\right) \)，其中 \( \lambda(\alpha) = \phi(\alpha)/(1 - \Phi(\alpha)) \) 是逆米尔斯比（inverse Mills ratio）^<sup>[3](https://people.bath.ac.uk/mnsak/Microstructure.pdf)</sup> |
| 矩的差异 | 截断分布的均值与方差不同于父分布值 \(\mu\) 和 \(\sigma^2\)；它们由父分布值和截断限计算得到^<sup>[1](https://people.math.sc.edu/burkardt/c_src/truncated_normal/truncated_normal.html)</sup> |
| 最大熵 | 给定区间 \([a, b]\) 以及某变量的均值和方差，该区间上的最大熵密度具有指数-二次形式；只有当二次项系数产生正态形状的密度时，它才是截断正态分布，而其他参数值可能产生 U 形密度^<sup>[4](https://www.wipp.energy.gov/library/cra/2009_cra/references/Others/Tierney_1990_Constructing_Probability_Distribution_SAND_90_2510.pdf)</sup><sup> • </sup><sup>[23](https://mathoverflow.net/questions/468998/maximum-entropy-probability-distribution-with-fixed-interval-and-variance)</sup> |
| 软件 | SciPy 提供 `scipy.stats.truncnorm`，R 提供 `truncnorm` 和 `TruncatedNormal` 包，用于密度、分位数和模拟^<sup>[5](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncnorm.html)</sup><sup> • </sup><sup>[6](https://cran.nics.utk.edu/cran/web/packages/truncnorm/index.html)</sup><sup> • </sup><sup>[7](https://cran.mirror.garr.it/CRAN/web/packages/TruncatedNormal/index.html)</sup> |

## 定义与密度

截断是一种条件陈述。如果 \( x \) 的密度为 \( f(x) \)，且已知 \( x > t \)，那么给定该事件时 \( x \) 的分布为 \( f(x \mid x > t) = f(x) / \mathrm{Prob}(x > t) \)，这直接由贝叶斯法则得到。<sup>[3](https://people.bath.ac.uk/mnsak/Microstructure.pdf)</sup> 对于在 \( t \) 处下截断的正态父分布 \( N(\mu, \sigma^2) \)，密度变为

\[
f(x \mid x > t) = \frac{\frac{1}{\sigma}\phi\!\left(\frac{x-\mu}{\sigma}\right)}{1 - \Phi\!\left(\frac{t-\mu}{\sigma}\right)},
\]

其中 \( \phi \) 是标准正态密度，\( \Phi \) 是其累积分布函数。<sup>[3](https://people.bath.ac.uk/mnsak/Microstructure.pdf)</sup> 同样的构造涵盖上截断 \( f(x \mid x < t) \) 和双截断 \( f(x \mid t' < x < t) \)；约翰逊（Johnson）、科茨（Kotz）和巴拉克里希南（Balakrishnan）的《连续单变量分布》（*Continuous Univariate Distributions*）对这些情形作了全面处理。<sup>[3](https://people.bath.ac.uk/mnsak/Microstructure.pdf)</sup><sup> • </sup><sup>[8](https://books.google.com/books?hl=en&vid=ISBN978-0-471-58495-7)</sup>

对于 \([a, b]\) 上的双截断标准正态分布，密度为 \( f(x, a, b) = \phi(x)/\Delta(a, b) \)，累积分布函数为 \( F(x, a, b) = \Delta(a, x)/\Delta(a, b) \)，生存函数为 \( \Delta(x, b)/\Delta(a, b) \)。<sup>[2](https://warrenweckesser.github.io/notes/truncnorm.html)</sup>

## 矩

截断将均值移向保留区域，并缩小方差。对于下截断正态分布，条件均值为

\[
E[x \mid x > t] = \mu + \sigma \frac{\phi\!\left(\frac{t-\mu}{\sigma}\right)}{1 - \Phi\!\left(\frac{t-\mu}{\sigma}\right)},
\]

条件方差为

\[
\mathrm{Var}[x \mid x > t] = \sigma^2 \left(1 - \frac{\phi\!\left(\frac{t-\mu}{\sigma}\right)}{1 - \Phi\!\left(\frac{t-\mu}{\sigma}\right)} \left( \frac{\phi\!\left(\frac{t-\mu}{\sigma}\right)}{1 - \Phi\!\left(\frac{t-\mu}{\sigma}\right)} - \frac{t-\mu}{\sigma} \right) \right).
\]

<sup>[3](https://people.bath.ac.uk/mnsak/Microstructure.pdf)</sup> 这些表达式中出现的比值 \( \phi(w)/\Phi(w) \) 是逆米尔斯比，通常写作 \( \lambda(w) \)。<sup>[9](https://www.ucl.ac.uk/~uctp39a/MECT2-7-Slides.pdf)</sup> 对于双截断标准正态分布，均值为 \( (\phi(a) - \phi(b))/\Delta(a, b) \)，非中心矩满足递推式 \( \mu_{k+1}' = k\mu_{k-1}' + a^k f(a, a, b) - b^k f(b, a, b) \)，由此可得偏度和峰度。<sup>[2](https://warrenweckesser.github.io/notes/truncnorm.html)</sup> 一个递推矩公式还可给出前四个中心矩，用父分布均值和方差以及下截断矩表示。<sup>[10](https://ideas.repec.org/a/kap/jproda/v43y2015i2p133-138.html)</sup>

## 估计

从截断样本中估计 \(\mu\) 和 \(\sigma\) 是一个长期研究的问题。对于截断点已知的分组观测的单截断和双截断样本，在每一截断尾部未测量观测数未知、分别已知或联合已知的情形下，已经推导出正态总体均值和方差的最大似然估计方程。<sup>[11](https://journals.sagepub.com/doi/abs/10.1177/0008068319600403)</sup> 后来的工作给出了单截断以及左截断、左删失样本的最大似然算法，这些算法可以通过简单迭代求解，无需辅助表。<sup>[12](https://www.journals.ac.za/sasj/article/view/9126)</sup> 还描述了一种用于单变量截断正态分布和对数正态分布的简单最大似然程序。<sup>[13](https://arxiv.org/abs/1407.6518)</sup>

估计对模型设定错误很敏感。当回归模型总体的参数是通过最大似然从截断样本中获得，却错误地假设扰动项同方差时，所得估计量不具有一致性，且渐近偏误可能很大。<sup>[14](https://www.sciencedirect.com/science/article/abs/pii/0304407679900393)</sup>

## 模拟

从截断正态分布中抽取数值是统计计算中反复出现的问题，例如出现在截断参数空间上的贝叶斯推断以及序约束回归中。<sup>[15](https://arxiv.org/abs/0907.4010)</sup> 巴黎皮埃尔和玛丽·居里大学（Université Pierre et Marie Curie）LSTA 的克里斯蒂安·P·罗贝尔（Christian P. Robert）给出了用于单侧和双侧截断正态分布的接受-拒绝算法和吉布斯采样算法，这些算法可扩展到参数空间受限的多元正态变量。<sup>[15](https://arxiv.org/abs/0907.4010)</sup> 对于高维情形，新南威尔士大学（University of New South Wales）教授兹德拉夫科·博特夫（Zdravko Botev）提出了一种极小极大倾斜方法，用于从截断多元正态分布中进行精确独立同分布模拟，并给出了具有相对误差渐近消失性质的高斯积分估计量；一个应用是从 probit 回归模型的贝叶斯后验中进行精确模拟。<sup>[16](https://rss.onlinelibrary.wiley.com/doi/abs/10.1111/rssb.12162)</sup>

朴素实现会遇到数值问题。当两个参数都很大且为正时，将 \( \Delta(a, b) \) 计算为 \( \Phi(b) - \Phi(a) \) 会损失精度；对于 \( \Delta(9, 9.5) \approx 1.118 \times 10^{-19} \)，朴素减法在双精度下恰好返回 0，而等价表达式 \( \bar{\Phi}(a) - \bar{\Phi}(b) \) 返回正确值。<sup>[2](https://warrenweckesser.github.io/notes/truncnorm.html)</sup> 在尾部很远时，即使比值可表示，\( \phi(x) \) 和 \( \Delta(a, b) \) 都可能下溢为零；用缩放互补误差函数重新表述密度可以避免这一点。<sup>[2](https://warrenweckesser.github.io/notes/truncnorm.html)</sup>

## 应用

**计量经济学。** 当时在耶鲁大学（Yale University）考尔斯基金会（Cowles Foundation）的詹姆斯·托宾（James Tobin）于 1958 年在《计量经济学》（*Econometrica*）上引入了受限因变量关系的估计，处理许多受访者取到下限或上限的变量；由此得到的 Tobit 模型依赖于潜在误差的正态性。<sup>[17](https://www.jstor.org/stable/1907382)</sup><sup> • </sup><sup>[9](https://www.ucl.ac.uk/~uctp39a/MECT2-7-Slides.pdf)</sup> 在截断回归设定中，仅使用正观测值会得到 \( E(y \mid x, y > 0) = x'\beta + \sigma \lambda(x'\beta/\sigma) \)，误差的条件均值非零，这使得普通最小二乘法不一致，构成一个遗漏变量问题。<sup>[9](https://www.ucl.ac.uk/~uctp39a/MECT2-7-Slides.pdf)</sup> 在随机前沿分析中，参数模型为企业层面的技术无效率产生截断正态分布，而基于独立截断正态分布的排序与选择规则使分析者能够在预先指定的概率下宣布某些企业子集相对有效率或无效率。<sup>[18](https://www.sciencedirect.com/science/article/abs/pii/S0304407604001150)</sup>

**元分析。** 阿尔伯塔大学（University of Alberta）数学与统计科学系的朱（Zhu）和卡里埃（Carriere）将发表偏倚表述为一个截断分布问题，并提出了基于截断正态分布的参数检测与校正方法，通过模拟将其与非参数 Trim and Fill 方法进行比较；在他们研究的情形中，这些方法在检测和校正发表偏倚方面表现始终良好。<sup>[19](https://journals.sagepub.com/doi/10.1177/0962280216684671)</sup>

**人体测量学与测量。** 来自军事征募登记册的历史身高样本不是原总体的随机样本：较矮个体在截断点以下代表性不足，这一现象称为短缺（shortfall），并且已经为这些数据开发了截断正态最大似然估计量和截断回归估计量。<sup>[20](https://epub.ub.uni-muenchen.de/51/)</sup> 在临床测量中，受检测限影响的观测值已用截断正态分布与删失相结合来建模，并应用于白内障手术中植入人工晶状体的试验所产生的视觉质量数据。<sup>[21](https://pmc.ncbi.nlm.nih.gov/articles/PMC7322891/)</sup> 在工程质量控制中，截断正态分布描述受上下规格限约束的特性，并且已经推导出控制图，用于监测来自截断正态过程的观测值。<sup>[22](https://www.emerald.com/jrf/article/10/3/288/250223/Control-charts-for-monitoring-observations-from-a)</sup>

## 软件

SciPy 的 `truncnorm` 实现该分布时，截断点 \( a \) 和 \( b \) 以距 `loc` 的标准差为单位度量，因此对于任意的 `loc` 和 `scale`，参数必须变换为 \( a, b = (a_{\mathrm{trunc}} - \mathrm{loc})/\mathrm{scale}, (b_{\mathrm{trunc}} - \mathrm{loc})/\mathrm{scale} \)，这是一个有文档记载的易混淆点。<sup>[5](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncnorm.html)</sup> 在 R 中，`truncnorm` 包提供密度、概率、分位数和随机数生成函数，<sup>[6](https://cran.nics.utk.edu/cran/web/packages/truncnorm/index.html)</sup> 而 `TruncatedNormal` 包使用博特夫（Botev，2017）以及博特夫和勒屈耶（L'Ecuyer，2015）的方法处理截断单变量和多元正态分布以及 t 分布。<sup>[7](https://cran.mirror.garr.it/CRAN/web/packages/TruncatedNormal/index.html)</sup>

## References

1. [TRUNCATED_NORMAL – The Truncated Normal Distribution, Burkardt](https://people.math.sc.edu/burkardt/c_src/truncated_normal/truncated_normal.html)
2. [Truncated standard normal distribution, W. Weckesser](https://warrenweckesser.github.io/notes/truncnorm.html)
3. [B.4 Conditional moments, Microstructure lecture notes, University of Bath](https://people.bath.ac.uk/mnsak/Microstructure.pdf)
4. [The Maximum Entropy Formalism (Tierney, SAND-90-2510)](https://www.wipp.energy.gov/library/cra/2009_cra/references/Others/Tierney_1990_Constructing_Probability_Distribution_SAND_90_2510.pdf)
5. [scipy.stats.truncnorm, SciPy v1.18.0 Manual](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncnorm.html)
6. [CRAN: Package truncnorm](https://cran.nics.utk.edu/cran/web/packages/truncnorm/index.html)
7. [CRAN: Package TruncatedNormal](https://cran.mirror.garr.it/CRAN/web/packages/TruncatedNormal/index.html)
8. [Johnson, Kotz, Balakrishnan (1994). Continuous Univariate Distributions, Volume 1, Wiley](https://books.google.com/books?hl=en&vid=ISBN978-0-471-58495-7)
9. [MECT Microeconometrics lecture slides, R. Blundell, University College London](https://www.ucl.ac.uk/~uctp39a/MECT2-7-Slides.pdf)
10. [Moments of the truncated normal distribution, Journal of Production Analysis (2015)](https://ideas.repec.org/a/kap/jproda/v43y2015i2p133-138.html)
11. [Swamy, P. S. (1960). Estimating the Mean and Variance of a Normal Distribution from Singly and Doubly Truncated Samples, Calcutta Statistical Association Bulletin](https://journals.sagepub.com/doi/abs/10.1177/0008068319600403)
12. [Aboueissa (2010). Estimations of population parameters in the presence of censored and truncated samples, South African Statistical Journal](https://www.journals.ac.za/sasj/article/view/9126)
13. [Algorithm for the maximum likelihood estimation of the parameters of the truncated normal and lognormal distributions, arXiv](https://arxiv.org/abs/1407.6518)
14. [Estimation in truncated samples when there is heteroscedasticity, Journal of Econometrics](https://www.sciencedirect.com/science/article/abs/pii/0304407679900393)
15. [Robert, C. P. Simulation of truncated normal variables, arXiv](https://arxiv.org/abs/0907.4010)
16. [Botev, Z. (2017). The normal law under linear restrictions: simulation and estimation via minimax tilting, JRSS-B](https://rss.onlinelibrary.wiley.com/doi/abs/10.1111/rssb.12162)
17. [Tobin, J. (1958). Estimation of Relationships for Limited Dependent Variables, Econometrica 26(1)](https://www.jstor.org/stable/1907382)
18. [On ranking and selection from independent truncated normal distributions, Journal of Econometrics 126(2)](https://www.sciencedirect.com/science/article/abs/pii/S0304407604001150)
19. [Zhu, Q., Carriere, K. C. Detecting and correcting for publication bias in meta-analysis – A truncated normal distribution approach, Statistical Methods in Medical Research](https://journals.sagepub.com/doi/10.1177/0962280216684671)
20. [Improvements in Maximum Likelihood Estimators of Truncated Normal Samples with Prior Knowledge of σ, University of Munich](https://epub.ub.uni-muenchen.de/51/)
21. [Modeling observations with a detection limit using a truncated normal distribution with censoring, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC7322891/)
22. [Control charts for monitoring observations from a truncated normal distribution, The Journal of Risk Finance](https://www.emerald.com/jrf/article/10/3/288/250223/Control-charts-for-monitoring-observations-from-a)
23. [Maximum Entropy Probability Distribution with Fixed Interval and Variance, mathoverflow.net](https://mathoverflow.net/questions/468998/maximum-entropy-probability-distribution-with-fixed-interval-and-variance)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Probability theory › Probability distributions › Distribution families and classification › Continuous univariate distribution families

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/truncated-normal-distribution

English original: https://www.edgepedia.org/truncated-normal-distribution
