Triangular distribution

Triangular
Probability density function
Plot of the Triangular PMF
Cumulative distribution function
Plot of the Triangular CMF
Parameters a: a∈(−∞,∞)
b: a<b
c: a≤c≤b
Support a≤x≤b
PDF {0for x<a,2(x−a)(b−a)(c−a)for a≤x<c,2b−afor x=c,2(b−x)(b−a)(b−c)for c<x≤b,0for b<x.
CDF {0for 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,1for b≤x.
Mean a+b+c3
Median {a+(b−a)(c−a)2for c≥a+b2,b−(b−a)(b−c)2for c≤a+b2.
Mode c
Variance a2+b2+c2−ab−ac−bc18
Skewness 2(a+b−2c)(2a−b−c)(a−2b+c)5(a2+b2+c2−ab−ac−bc)32
Excess kurtosis −35
Entropy log⁡(e12(b−a)3)
MGF 2(b−c)eat−(b−a)ect+(c−a)ebt(b−a)(c−a)(b−c)t2
CF −2(b−c)eiat−(b−a)eict+(c−a)eibt(b−a)(c−a)(b−c)t2

In probability theory and statistics, the triangular distribution is a continuous 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 and CDF become:

f(x)=2x,F(x)=x2for 0≤x≤1.

E⁡(X)=23Var⁡(X)=118

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 = |X1 − X2|, where X1, X2 are two independent random variables with standard uniform distribution.

f(x)=2−2x for 0≤x<1F(x)=2x−x2 for 0≤x<1E(X)=13Var⁡(X)=118

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=2b−a(1−|a+b−2x|b−a)

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 = (X1 + X2) / 2, where X1, X2 are two independent random variables with standard uniform distribution in [0, 1]. It is the case of the Bates distribution for two variables.

f(x)={4xfor 0≤x<124(1−x)for 12≤x≤1

F(x)={2x2for 0≤x<122x2−(2x−1)2for 12≤x≤1

E(X)=12Var⁡(X)=124

Generating random variates

Given a random variate U drawn from the uniform distribution in the interval (0, 1), then the variate

X={a+U(b−a)(c−a) for 0<U<F(c)b−(1−U)(b−a)(b−c) for F(c)≤U<1

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

Use of the distribution

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" 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, particularly in simulations. Generally, when not much is known about the distribution of an outcome (say, only its smallest and largest values), it is possible to use the uniform distribution. 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.

Project management

The triangular distribution, along with the PERT distribution, is also widely used in project management (as an input into PERT and hence 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, where it is called TPDF (triangular probability density function).

See also