# 三角分布

三角分布是定义在有界区间上的连续概率分布，其密度从最小值线性上升至众数处的峰值，再线性下降至最大值，因此密度图形呈三角形。它由三个参数确定：最小值 a、最大值 b 和最可能值（众数）c，其中 a ≤ c ≤ b。<sup>[1](https://www.frontiersin.org/journals/applied-mathematics-and-statistics/articles/10.3389/fams.2023.1274787/full)</sup> 与在区间上赋予等概率的均匀分布不同，三角形形式包含一个最可能值，能够表现偏度和不对称性。<sup>[1](https://www.frontiersin.org/journals/applied-mathematics-and-statistics/articles/10.3389/fams.2023.1274787/full)</sup>

| 关键事实 | 详情 |
|---|---|
| 参数 | 最小值 a、最大值 b、众数 c，且 a ≤ c ≤ b；这三个值直接决定密度的形状<sup>[2](https://numpy.org/doc/2.2/reference/random/generated/numpy.random.triangular.html)</sup> |
| 密度 | 在 a 到 c 之间按 2(x − a)/[(b − a)(c − a)] 上升，在 c 到 b 之间按 2(b − x)/[(b − a)(b − c)] 下降，在 [a, b] 之外为零<sup>[2](https://numpy.org/doc/2.2/reference/random/generated/numpy.random.triangular.html)</sup> |
| 均值 | \( \mu = (a + b + c)/3 \)，即三个参数的简单平均<sup>[1](https://www.frontiersin.org/journals/applied-mathematics-and-statistics/articles/10.3389/fams.2023.1274787/full)</sup> |
| 方差 | \( V(X) = (a^{2} + b^{2} + c^{2} - ab - ac - bc)/18 \)<sup>[3](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=50853)</sup> |
| 对称情形 | 当 c = (a + b)/2 时，均值为 (a + b)/2，方差为 (b − a)²/24<sup>[3](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=50853)</sup> |
| 典型用途 | 在底层分布未知但已知上下限和最可能值时建模，如仿真和项目风险分析<sup>[2](https://numpy.org/doc/2.2/reference/random/generated/numpy.random.triangular.html)</sup><sup> • </sup><sup>[4](https://onlinelibrary.wiley.com/doi/10.1155/2013/513549)</sup> |
| 软件 | 内置于 NumPy 的 random.triangular(left, mode, right) 和 SciPy 的 scipy.stats.triang 中，后者以 c 为形状参数<sup>[2](https://numpy.org/doc/2.2/reference/random/generated/numpy.random.triangular.html)</sup><sup> • </sup><sup>[5](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.triang.html)</sup> |

## 概率密度与矩

根据上述参数，概率密度函数为

\[ f(x) = \begin{cases} \dfrac{2(x-a)}{(b-a)(c-a)} & \text{当 } a \le x \le c, \\[4pt] \dfrac{2(b-x)}{(b-a)(b-c)} & \text{当 } c \le x \le b, \\[4pt] 0 & \text{其他情况。} \end{cases} \]

峰值高度由三角形面积等于 1 的要求确定。在 [0, 1] 上以 c 为众数的标准形式中，密度在 x < c 时为 2x/c，在 x ≥ c 时为 2(1 − x)/(1 − c)；SciPy 以 c 作为 [0, 1] 内的形状参数实现此形式，另加位置和尺度参数用于平移和伸缩。<sup>[5](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.triang.html)</sup> 美国国家标准与技术研究院的 Dataplot 库使用 [−1, 1] 上的标准形式，并记载一般均值为 (a + b + c)/3，标准差为 \( \sqrt{(a^{2} + b^{2} + c^{2} - ab - ac - bc)/18} \)。<sup>[6](https://www.itl.nist.gov/div898/software/dataplot/refman2/ch8/tripdf.pdf)</sup>

该分布自然地产生于均匀变量之和：若 U₁ 和 U₂ 是独立的标准均匀随机变量，则其平均值 (U₁ + U₂)/2 服从 [0, 1] 上众数为 1/2 的对称三角分布。<sup>[1](https://www.frontiersin.org/journals/applied-mathematics-and-statistics/articles/10.3389/fams.2023.1274787/full)</sup> 更一般地，美国国家标准与技术研究院的计量学家 Kacker 和 Lawrence 在其关于 B 类不确定度评定的论述中指出，三角分布是梯形分布族的极限情形，由梯形的平顶收缩为一点得到；直角三角形和等腰三角形变体则作为进一步的极限出现。<sup>[3](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=50853)</sup>

## 从业者为何使用它

**信息有限。** 当底层分布未知但可获得最小值、最大值和最可能值时，推荐使用该分布。<sup>[1](https://www.frontiersin.org/journals/applied-mathematics-and-statistics/articles/10.3389/fams.2023.1274787/full)</sup> NumPy 文档将其描述为常用于对问题了解不充分、但已知某些关于界限和众数的信息的情形，多见于仿真中。<sup>[2](https://numpy.org/doc/2.2/reference/random/generated/numpy.random.triangular.html)</sup> 由于它只需要三个易于估计的位置参数，大多数领域专家可以直接给出，这在仿真研究中是一个实际优势。<sup>[7](https://www.informs-sim.org/wsc12papers/includes/files/pos141.pdf)</sup> 一份统计学教育资料补充说，该分布易于可视化、灵活、能防止极端值、可以偏斜，且面积可用熟悉的三角形面积公式计算。<sup>[8](https://jse.amstat.org/v12n1/doane.html)</sup>

**测量不确定度。** 在计量学中使用的标准不确定度 B 类评定中，美国国家标准与技术研究院指南将均匀（矩形）分布视为仅知界限时的合理默认选择。当已知界限中间附近的量值比接近界限的值更可能时，正态分布——或为便于使用而采用三角分布——可以作为更优模型；若无信息与此矛盾，则该量应以三角分布表示。<sup>[9](https://pml.nist.gov/cuu/Uncertainty/typeb.html)</sup> 对于相同的端点 ±a 且众数为零的情形，三角分布给出的标准差小于均匀分布，因此是较不保守的不确定度估计；正态分布在端点覆盖分布 99.7% 的情况下，三者中标准差最小。<sup>[10](https://www.itl.nist.gov/div898/handbook/mpc/section5/mpc541.htm)</sup>

**项目风险分析。** 自 PERT 和 CPM 的早期发展以来，项目进度模型一直用贝塔分布表示活动持续时间的不确定性，但由于广义贝塔参数并不总是易于理解或估计，从业者常用更简单的三角分布模拟活动持续时间，以对最小值、最可能值和最大值的主观估计作为初始输入模型。<sup>[4](https://onlinelibrary.wiley.com/doi/10.1155/2013/513549)</sup> 文献也提出在风险分析中以三角分布作为贝塔分布的替代，但在没有经验数据时任意使用应当谨慎。<sup>[4](https://onlinelibrary.wiley.com/doi/10.1155/2013/513549)</sup> 形状的选择在实践中很重要：在一个进度风险实例中，乐观、最可能和悲观持续时间分别为 10、20 和 60 天，三角分布给出的 P90（第 90 百分位数）为 45.8 天，而贝塔/PERT 模型给出 37.3 天，因此三角形形式产生了更保守的截止期限。<sup>[11](https://hksmnow.com/project-management/monte-carlo-risk-analysis/the-great-debate-triangular-vs-beta-distribution-which-one-should-you-trust/)</sup> 美国地质调查局的一份概率资源评估综述指出，生成贝塔分布值与生成三角分布值同样直接，参数选择才是使用贝塔分布的主要实际障碍。<sup>[12](https://www.usgs.gov/publications/use-beta-distribution-probabilistic-resource-assessments)</sup>

## 已知局限

**有界支撑。** 三角分布的支撑仅在 [a, b] 上，因此所述界限之外的值为零概率。在 ISPOR 第四届亚太会议上展示的一项仿真研究在 10,000 次模拟中比较了三角分布、对数正态分布和由两个二项分布构建的经验相对风险。由于三角密度缺乏整个正实轴作为支撑，极小和极大相对风险等极端值被抽中的概率为零，而众数附近的值被抽中的概率高于经验分布或对数正态分布。该研究得出结论：三角分布不适合刻画相对风险的不确定性；若用于应答率或死亡率，由此产生的高估可能引入偏差；对数正态是更好的近似，在有实际事件计数时首选经验模拟。<sup>[13](https://www.ispor.org/heor-resources/presentations-database/presentation/ispor-4th-asia-pacific-conference/choosing-the-right-distribution-when-performing-probabilistic-sensitivity-analysis-relative-risks-and-the-triangular-distribution-a-simulation-study)</sup>

**估计困难。** 尽管均值公式 \( \mu = (a + b + c)/3 \) 暗示了简单的估计程序，但从数据估计 a、b 和 c 并不直接。样本数据有限时基于分位数的计算可能不准确，而最大似然估计有已知困难，因为密度在众数 c 处有尖角、不可微。<sup>[1](https://www.frontiersin.org/journals/applied-mathematics-and-statistics/articles/10.3389/fams.2023.1274787/full)</sup> 一种直观的估计量使用样本最小值、最大值和众数，但这并不总是最大似然估计量：对于不规则直角三角形分布，拉瓦尔大学定量方法研究人员 Lamond 和 Zephyr 证明最小观测值不是下限的最大似然估计量，最大似然估计量严格小于最小观测值，并给出了可用于数值计算的界。<sup>[14](https://journals.sagepub.com/doi/10.3233/MAS-210541)</sup> 早期工作发现最大似然估计量在估计三角分布参数方面优于矩法，并注意到 Oliver 于 1972 年报告的最大似然估计量的异常行为。<sup>[15](https://www.sciencedirect.com/science/article/abs/pii/S0378375806002576)</sup>

## 历史与文献

三角分布至少自 18 世纪起就有人研究，但北卡罗来纳大学教堂山分校统计学教授 Norman L. Johnson 和 Samuel Kotz 在 1999 年发表于《The Statistician》的论文中指出，在此前 50 年或更长时间里的统计文献中，该分布只是极少数论文的主题；他们的论文由一类金融应用分布所激发，该分布实际上是两个三角分布的混合。<sup>[16](https://academic.oup.com/jrsssd/article-abstract/48/2/179/7123348)</sup> 后来的工作扩展了基本形式，包括双侧幂分布族以及为参数估计而研究的三参数三角分布的新扩展。<sup>[1](https://www.frontiersin.org/journals/applied-mathematics-and-statistics/articles/10.3389/fams.2023.1274787/full)</sup> 在应用领域，该分布仍在日常使用，从石油资源评估——其中开发了基于三角分布的解析聚合方法用于微型计算机风险分析<sup>[17](https://pubs.usgs.gov/publication/70016496)</sup>——到建筑投标风险分析中比较三角分布与 PERT 方法及支付矩阵技术<sup>[18](https://doiserbia.nb.rs/Article.aspx?id=0354-46052003287M)</sup>。

## References

1. [Geometry of deviation measures for triangular distributions, Frontiers in Applied Mathematics and Statistics (2023)](https://www.frontiersin.org/journals/applied-mathematics-and-statistics/articles/10.3389/fams.2023.1274787/full)
2. [numpy.random.triangular, NumPy v2.2 Manual](https://numpy.org/doc/2.2/reference/random/generated/numpy.random.triangular.html)
3. [R. N. Kacker and J. F. Lawrence, Trapezoidal and triangular distributions for Type B evaluation of standard uncertainty, Metrologia 44 (2007) 117–127](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=50853)
4. [M. Vanhoucke, An Overview of Recent Research Results and Future Research Avenues Using Simulation Studies in Project Management, ISRN (2013)](https://onlinelibrary.wiley.com/doi/10.1155/2013/513549)
5. [scipy.stats.triang, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.triang.html)
6. [TRIPDF, NIST Dataplot Reference Manual](https://www.itl.nist.gov/div898/software/dataplot/refman2/ch8/tripdf.pdf)
7. [Estimating Parameters of the Triangular Distribution Using Nonstandard Information, Winter Simulation Conference (2011)](https://www.informs-sim.org/wsc12papers/includes/files/pos141.pdf)
8. [D. Doane, Using Simulation in Statistical Education, Journal of Statistics Education 12(1)](https://jse.amstat.org/v12n1/doane.html)
9. [Evaluating uncertainty components: Type B, NIST Physics Measurement Laboratory](https://pml.nist.gov/cuu/Uncertainty/typeb.html)
10. [Standard deviations from assumed distributions, NIST/SEMATECH e-Handbook](https://www.itl.nist.gov/div898/handbook/mpc/section5/mpc541.htm)
11. [The Great Debate: Triangular vs. Beta Distribution, Project Management Bootcamp](https://hksmnow.com/project-management/monte-carlo-risk-analysis/the-great-debate-triangular-vs-beta-distribution-which-one-should-you-trust/)
12. [On the use of the beta distribution in probabilistic resource assessments, U.S. Geological Survey](https://www.usgs.gov/publications/use-beta-distribution-probabilistic-resource-assessments)
13. [Kim H., Gurrin L., Liew D., Choosing the Right Distribution When Performing Probabilistic Sensitivity Analysis: Relative Risks and the Triangular Distribution, ISPOR 4th Asia-Pacific Conference (2010)](https://www.ispor.org/heor-resources/presentations-database/presentation/ispor-4th-asia-pacific-conference/choosing-the-right-distribution-when-performing-probabilistic-sensitivity-analysis-relative-risks-and-the-triangular-distribution-a-simulation-study)
14. [B. F. Lamond and L. Zephyr, Note on "Parameters estimators of irregular right-angled triangular distribution", Model Assisted Statistics and Applications 16(4) (2021)](https://journals.sagepub.com/doi/10.3233/MAS-210541)
15. [More maximum likelihood oddities, Computational Statistics & Data Analysis](https://www.sciencedirect.com/science/article/abs/pii/S0378375806002576)
16. [N. L. Johnson and S. Kotz, Non-Smooth Sailing or Triangular Distributions Revisited After Some 50 Years, The Statistician 48(2) (1999) 179–187](https://academic.oup.com/jrsssd/article-abstract/48/2/179/7123348)
17. [R. Crovelli and R. Balay, A microcomputer program for energy assessment and aggregation using the triangular probability distribution, Computers & Geosciences 17(2) (1991) 197–225](https://pubs.usgs.gov/publication/70016496)
18. [M. S. Mirković, Triangular distribution and PERT method vs. payoff matrix for decision-making support in risk analysis of construction bidding](https://doiserbia.nb.rs/Article.aspx?id=0354-46052003287M)

---
*Initially written 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/triangular-distribution

English original: https://www.edgepedia.org/triangular-distribution
