# Triangular distribution

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Triangular_distribution
> Markdown URL: https://mediated.wiki/source/Triangular_distribution.md
> Source: https://en.wikipedia.org/wiki/Triangular_distribution
> Source revision: 1352680874
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

Probability distribution

Triangular Probability density function Cumulative distribution function Parameters a : a ∈ ( − ∞ , ∞ ) {\displaystyle a:~a\in (-\infty ,\infty )} b : a < b {\displaystyle b:~a<b\,} c : a ≤ c ≤ b {\displaystyle c:~a\leq c\leq b\,} Support a ≤ x ≤ b {\displaystyle a\leq x\leq b\!} PDF { 0 for x < a , 2 ( x − a ) ( b − a ) ( c − a ) for a ≤ x < c , 2 b − a for x = c , 2 ( b − x ) ( b − a ) ( b − c ) for c < x ≤ b , 0 for b < x . {\displaystyle {\begin{cases}0&{\text{for }}x<a,\\{\frac {2(x-a)}{(b-a)(c-a)}}&{\text{for }}a\leq x<c,\\[4pt]{\frac {2}{b-a}}&{\text{for }}x=c,\\[4pt]{\frac {2(b-x)}{(b-a)(b-c)}}&{\text{for }}c<x\leq b,\\[4pt]0&{\text{for }}b<x.\end{cases}}} CDF { 0 for x ≤ a , ( x − a ) 2 ( b − a ) ( c − a ) for a < x ≤ c , 1 − ( b − x ) 2 ( b − a ) ( b − c ) for c < x < b , 1 for b ≤ x . {\displaystyle {\begin{cases}0&{\text{for }}x\leq a,\\[2pt]{\frac {(x-a)^{2}}{(b-a)(c-a)}}&{\text{for }}a<x\leq c,\\[4pt]1-{\frac {(b-x)^{2}}{(b-a)(b-c)}}&{\text{for }}c<x<b,\\[4pt]1&{\text{for }}b\leq x.\end{cases}}} Mean a + b + c 3 {\displaystyle {\frac {a+b+c}{3}}} Median { a + ( b − a ) ( c − a ) 2 for c ≥ a + b 2 , b − ( b − a ) ( b − c ) 2 for c ≤ a + b 2 . {\displaystyle {\begin{cases}a+{\sqrt {\frac {(b-a)(c-a)}{2}}}&{\text{for }}c\geq {\frac {a+b}{2}},\\[6pt]b-{\sqrt {\frac {(b-a)(b-c)}{2}}}&{\text{for }}c\leq {\frac {a+b}{2}}.\end{cases}}} Mode c {\displaystyle c\,} Variance a 2 + b 2 + c 2 − a b − a c − b c 18 {\displaystyle {\frac {a^{2}+b^{2}+c^{2}-ab-ac-bc}{18}}} Skewness 2 ( a + b − 2 c ) ( 2 a − b − c ) ( a − 2 b + c ) 5 ( a 2 + b 2 + c 2 − a b − a c − b c ) 3 2 {\displaystyle {\frac {{\sqrt {2}}(a\!+\!b\!-\!2c)(2a\!-\!b\!-\!c)(a\!-\!2b\!+\!c)}{5(a^{2}\!+\!b^{2}\!+\!c^{2}\!-\!ab\!-\!ac\!-\!bc)^{\frac {3}{2}}}}} Excess kurtosis − 3 5 {\displaystyle -{\frac {3}{5}}} Entropy log ⁡ ( e 1 2 ( b − a ) 3 ) {\displaystyle \log \left({\frac {e^{1 \over 2}(b-a)}{3}}\right)} MGF 2 ( b − c ) e a t − ( b − a ) e c t + ( c − a ) e b t ( b − a ) ( c − a ) ( b − c ) t 2 {\displaystyle 2{\frac {(b\!-\!c)e^{at}\!-\!(b\!-\!a)e^{ct}\!+\!(c\!-\!a)e^{bt}}{(b-a)(c-a)(b-c)t^{2}}}} CF − 2 ( b − c ) e i a t − ( b − a ) e i c t + ( c − a ) e i b t ( b − a ) ( c − a ) ( b − c ) t 2 {\displaystyle -2{\frac {(b\!-\!c)e^{iat}\!-\!(b\!-\!a)e^{ict}\!+\!(c\!-\!a)e^{ibt}}{(b-a)(c-a)(b-c)t^{2}}}}

In [probability theory](/source/Probability_theory) and [statistics](/source/Statistics), the **triangular distribution** is a continuous [probability distribution](/source/Probability_distribution) with lower limit *a*, upper limit *b*, and mode *c*, where *a* < *b* and *a* ≤ *c* ≤ *b*.

## Special cases

### Mode at a bound

The distribution simplifies when *c* = *a* or *c* = *b*. For example, if *a* = 0, *b* = 1 and *c* = 1, then the [PDF](/source/Probability_density_function) and [CDF](/source/Cumulative_distribution_function) become:

f ( x ) = 2 x , F ( x ) = x 2 {\displaystyle {\begin{aligned}f(x)&=2x,\\[8pt]F(x)&=x^{2}\end{aligned}}} for 0 ≤ x ≤ 1 {\displaystyle 0\leq x\leq 1} .

E ⁡ ( X ) = 2 3 Var ⁡ ( X ) = 1 18 {\displaystyle {\begin{aligned}\operatorname {E} (X)&={\frac {2}{3}}\\[8pt]\operatorname {Var} (X)&={\frac {1}{18}}\end{aligned}}}

#### Distribution of the absolute difference of two standard uniform variables

This distribution for *a* = 0, *b* = 1 and *c* = 0 is the distribution of *X* = |*X*1 − *X*2|, where *X*1, *X*2 are two independent random variables with standard [uniform distribution](/source/Uniform_distribution_(continuous)).

f ( x ) = 2 − 2 x for 0 ≤ x < 1 F ( x ) = 2 x − x 2 for 0 ≤ x < 1 E ( X ) = 1 3 Var ⁡ ( X ) = 1 18 {\displaystyle {\begin{aligned}f(x)&=2-2x{\text{ for }}0\leq x<1\\[6pt]F(x)&=2x-x^{2}{\text{ for }}0\leq x<1\\[6pt]E(X)&={\frac {1}{3}}\\[6pt]\operatorname {Var} (X)&={\frac {1}{18}}\end{aligned}}}

### Symmetric triangular distribution

The symmetric case arises when *c* = (*a* + *b*) / 2. In this case, an alternate form of the distribution function is:

f ( x ) = ( b − c ) − | c − x | ( b − c ) 2 = 2 b − a ( 1 − | a + b − 2 x | b − a ) {\displaystyle {\begin{aligned}f(x)&={\frac {(b-c)-|c-x|}{(b-c)^{2}}}\\[6pt]&={\frac {2}{b-a}}\left(1-{\frac {\left|a+b-2x\right|}{b-a}}\right)\end{aligned}}}

#### Distribution of the mean of two standard uniform variables

This distribution for *a* = 0, *b* = 1 and *c* = 0.5—the mode (i.e., the peak) is exactly in the middle of the interval—corresponds to the distribution of the mean of two standard uniform variables, that is, the distribution of *X* = (*X*1 + *X*2) / 2, where *X*1, *X*2 are two independent random variables with standard [uniform distribution](/source/Uniform_distribution_(continuous)) in [0, 1].[1] It is the case of the [Bates distribution](/source/Bates_distribution) for two variables.

f ( x ) = { 4 x for 0 ≤ x < 1 2 4 ( 1 − x ) for 1 2 ≤ x ≤ 1 {\displaystyle f(x)={\begin{cases}4x&{\text{for }}0\leq x<{\frac {1}{2}}\\4(1-x)&{\text{for }}{\frac {1}{2}}\leq x\leq 1\end{cases}}}

F ( x ) = { 2 x 2 for 0 ≤ x < 1 2 2 x 2 − ( 2 x − 1 ) 2 for 1 2 ≤ x ≤ 1 {\displaystyle F(x)={\begin{cases}2x^{2}&{\text{for }}0\leq x<{\frac {1}{2}}\\2x^{2}-(2x-1)^{2}&{\text{for }}{\frac {1}{2}}\leq x\leq 1\end{cases}}}

E ( X ) = 1 2 Var ⁡ ( X ) = 1 24 {\displaystyle {\begin{aligned}E(X)&={\frac {1}{2}}\\[6pt]\operatorname {Var} (X)&={\frac {1}{24}}\end{aligned}}}

## Generating random variates

Given a random variate *U* drawn from the [uniform distribution](/source/Uniform_distribution_(continuous)) in the interval (0, 1), then the variate[2]

X = { a + U ( b − a ) ( c − a ) for 0 < U < F ( c ) b − ( 1 − U ) ( b − a ) ( b − c ) for F ( c ) ≤ U < 1 {\displaystyle X={\begin{cases}a+{\sqrt {U(b-a)(c-a)}}&{\text{ for }}0<U<F(c)\\&\\b-{\sqrt {(1-U)(b-a)(b-c)}}&{\text{ for }}F(c)\leq U<1\end{cases}}}

where F ( c ) = ( c − a ) / ( b − a ) {\displaystyle F(c)=(c-a)/(b-a)} , has a triangular distribution with parameters a , b {\displaystyle a,b} and c {\displaystyle c} . This can be obtained from the cumulative distribution function.

## Use of the distribution

See also: [Three-point estimation](/source/Three-point_estimation)

The triangular distribution is typically used as a subjective description of a population for which there is only limited sample data, and especially in cases where the relationship between variables is known but data is scarce (possibly because of the high cost of collection). It is based on a knowledge of the minimum and maximum and an "inspired guess"[3] as to the modal value. For these reasons, the triangle distribution has been called a "lack of knowledge" distribution.

### Business simulations

The triangular distribution is therefore often used in [business decision making](/source/Decision_making#Decision_making_in_business_and_management), particularly in [simulations](/source/Simulation#Computer_simulation). Generally, when not much is known about the [distribution](/source/Probability_distribution) of an outcome (say, only its smallest and largest values), it is possible to use the [uniform distribution](/source/Uniform_distribution_(continuous)). But if the most likely outcome is also known, then the outcome can be simulated by a triangular distribution. See for example under [corporate finance](/source/Corporate_finance#Quantifying_uncertainty).

### Project management

The triangular distribution, along with the [PERT distribution](/source/PERT_distribution), is also widely used in [project management](/source/Project_management) (as an input into [PERT](/source/PERT) and hence [critical path method](/source/Critical_path_method) (CPM)) to model events which take place within an interval defined by a minimum and maximum value.

### Audio dithering

The symmetric triangular distribution is commonly used in [audio dithering](/source/Dither), where it is called TPDF (triangular probability density function).

## See also

- [Trapezoidal distribution](/source/Trapezoidal_distribution)

- [Thomas Simpson](/source/Thomas_Simpson)

- [Three-point estimation](/source/Three-point_estimation)

- [Five-number summary](/source/Five-number_summary)

- [Seven-number summary](/source/Seven-number_summary)

- [Triangular function](/source/Triangular_function)

- [Central limit theorem](/source/Central_limit_theorem) — The triangle distribution often occurs as a result of adding two uniform random variables together. In other words, the triangle distribution is often (not always) the result of the first iteration of the central limit theorem summing process (i.e. n = 2 {\textstyle n=2} ). In this sense, the triangle distribution can occasionally occur naturally. If this process of summing together more random variables continues (i.e. n ≥ 3 {\textstyle n\geq 3} ), then the distribution will become increasingly bell-shaped.

- [Irwin–Hall distribution](/source/Irwin%E2%80%93Hall_distribution) — Using an Irwin–Hall distribution is an easy way to generate a triangle distribution.

- [Bates distribution](/source/Bates_distribution) — Similar to the Irwin–Hall distribution, but with the values rescaled back into the 0 to 1 range. Useful for computation of a triangle distribution which can subsequently be rescaled and shifted to create other triangle distributions outside of the 0 to 1 range.

## References

1. **[^](#cite_ref-KD_1-0)** Kotz, Samuel; Dorp, Johan Rene Van (2004-12-08). [*Beyond Beta: Other Continuous Families Of Distributions With Bounded Support And Applications*](https://books.google.com/books?id=JO7ICgAAQBAJ&dq=chapter%201%20dig%20out%20suitable%20substitutes%20of%20the%20beta%20distribution%20one%20of%20our%20goals&pg=PA3). World Scientific. [ISBN](/source/ISBN_(identifier)) [978-981-4481-24-3](https://en.wikipedia.org/wiki/Special:BookSources/978-981-4481-24-3).

1. **[^](#cite_ref-2)** ["Archived copy"](https://web.archive.org/web/20140407075018/http://www.asianscientist.com/books/wp-content/uploads/2013/06/5720_chap1.pdf) (PDF). *www.asianscientist.com*. Archived from [the original](http://www.asianscientist.com/books/wp-content/uploads/2013/06/5720_chap1.pdf) (PDF) on 7 April 2014. Retrieved 12 January 2022.{{[cite web](https://en.wikipedia.org/wiki/Template:Cite_web)}}: CS1 maint: archived copy as title ([link](https://en.wikipedia.org/wiki/Category:CS1_maint:_archived_copy_as_title))

1. **[^](#cite_ref-3)** ["Archived copy"](https://web.archive.org/web/20060923225843/http://www.decisionsciences.org/DecisionLine/Vol31/31_3/31_3clas.pdf) (PDF). Archived from [the original](http://www.decisionsciences.org/DecisionLine/Vol31/31_3/31_3clas.pdf) (PDF) on 2006-09-23. Retrieved 2006-09-23.{{[cite web](https://en.wikipedia.org/wiki/Template:Cite_web)}}: CS1 maint: archived copy as title ([link](https://en.wikipedia.org/wiki/Category:CS1_maint:_archived_copy_as_title))

## External links

- [Weisstein, Eric W.](/source/Eric_W._Weisstein) ["Triangular Distribution"](https://mathworld.wolfram.com/TriangularDistribution.html). *[MathWorld](/source/MathWorld)*.

- [Triangle Distribution](https://web.archive.org/web/20060923225843/http://www.decisionsciences.org/DecisionLine/Vol31/31_3/31_3clas.pdf), decisionsciences.org

- [Triangular Distribution](https://web.archive.org/web/20130318003944/http://www.brighton-webs.co.uk/distributions/triangular.htm), brighton-webs.co.uk

- [Proof for the variance of triangular distribution](https://math.stackexchange.com/questions/4271314/what-is-the-proof-for-variance-of-triangular-distribution/4273147#4273147), math.stackexchange.com

v t e Probability distributions (list) Discrete univariate with finite support Benford Bernoulli Beta-binomial Binomial Categorical Hypergeometric Negative Poisson binomial Rademacher Soliton Discrete uniform Zipf Zipf–Mandelbrot with infinite support Beta negative binomial Borel Conway–Maxwell–Poisson Discrete phase-type Delaporte Extended negative binomial Flory–Schulz Gauss–Kuzmin Geometric Logarithmic Mixed Poisson Negative binomial Panjer Parabolic fractal Poisson Skellam Yule–Simon Zeta Continuous univariate supported on a bounded interval Arcsine ARGUS Balding–Nichols Bates Beta Generalized Beta rectangular Continuous Bernoulli Continuous binomial Irwin–Hall Kumaraswamy Logit-normal Noncentral beta PERT Power function Raised cosine Reciprocal Triangular U-quadratic Uniform Wigner semicircle supported on a semi-infinite interval Benini Benktander 1st kind Benktander 2nd kind Beta prime Burr Chi Chi-squared Noncentral Inverse Scaled Dagum Davis Erlang Hyper Exponential Hyperexponential Hypoexponential Logarithmic F Noncentral Folded normal Fréchet Gamma Generalized Inverse gamma/Gompertz Gompertz Shifted Half-logistic Half-normal Hotelling's T-squared Hartman–Watson Inverse Gaussian Generalized Kolmogorov Lévy Log-Cauchy Log-Laplace Log-logistic Log-normal Log-t Lomax Matrix-exponential Maxwell–Boltzmann Maxwell–Jüttner Mittag-Leffler Nakagami Pareto Phase-type Poly-Weibull Rayleigh Relativistic Breit–Wigner Rice Truncated normal type-2 Gumbel Weibull Discrete Wilks's lambda supported on the whole real line Cauchy Exponential power Fisher's z Kaniadakis κ-Gaussian Gaussian q Generalized hyperbolic Generalized logistic (logistic-beta) Generalized normal Geometric stable Gumbel Holtsmark Hyperbolic secant Johnson's SU Landau Laplace Asymmetric Logistic Noncentral t Normal (Gaussian) Normal-inverse Gaussian Skew normal Slash Stable Student's t Tracy–Widom Variance-gamma Voigt with support whose type varies Generalized chi-squared Generalized extreme value Generalized Pareto Marchenko–Pastur Kaniadakis κ-exponential Kaniadakis κ-Gamma Kaniadakis κ-Weibull Kaniadakis κ-Logistic Kaniadakis κ-Erlang q-exponential q-Gaussian q-Weibull Shifted log-logistic Tukey lambda Mixed univariate continuous- discrete Rectified Gaussian Multivariate (joint) Discrete: Ewens Multinomial Dirichlet Negative Continuous: Dirichlet Generalized Multivariate Laplace Multivariate normal Multivariate stable Multivariate t Normal-gamma Inverse Matrix-valued: LKJ Matrix beta Matrix F Matrix normal Matrix t Matrix gamma Inverse Wishart Normal Inverse Normal-inverse Complex Uniform distribution on a Stiefel manifold Directional Univariate (circular) directional Circular uniform Univariate von Mises Wrapped normal Wrapped Cauchy Wrapped exponential Wrapped asymmetric Laplace Wrapped Lévy Bivariate (spherical) Kent Bivariate (toroidal) Bivariate von Mises Multivariate von Mises–Fisher Bingham Degenerate and singular Degenerate Dirac delta function Singular Cantor Families Circular Compound Poisson Elliptical Exponential Natural exponential Location–scale Maximum entropy Mixture Pearson Tweedie Wrapped Category Commons

---
Adapted from the Wikipedia article [Triangular distribution](https://en.wikipedia.org/wiki/Triangular_distribution) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Triangular_distribution?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
