Triangular Distribution#

Univariate, Continuous, Bounded, Light-tailed

The Triangular distribution is a continuous probability distribution with a triangular shape. It is defined by three parameters: the lower bound \(lower\), the mode \(c\), and the upper bound \(upper\). Where \(lower \leq c \leq upper\).

The Triangular distribution is often called a “lack of knowledge” distribution because it can be used when there is no prior knowledge about the distribution of the random variable other than the minimum, maximum, and most likely values. It is often used in business simulations and decision-making, project management, and audio dithering.

Key properties and parameters#

Support

\(x \in [lower, upper]\)

Mean

\(\dfrac{lower + upper + c}{3}\)

Variance

\(\dfrac{upper^2 + lower^2 +c^2 - lower*upper - lower*c - upper*c}{18}\)

Parameters:

  • \(lower\) : (float) Lower bound of the distribution.

  • \(c\) : (float) Mode of the distribution, \(lower \leq c \leq upper\).

  • \(upper\) : (float) Upper bound of the distribution.

Probability Density Function (PDF)#

\[\begin{split} f(x|lower, c, upper) = \begin{cases} 0 & \text{for } x < lower \\ \frac{2(x - lower)}{(upper - lower)(c - lower)} & \text{for } lower \leq x < c \\ \frac{2}{upper - lower} & \text{for } x = c \\ \frac{2(upper - x)}{(upper - lower)(upper - c)} & \text{for } c < x \leq upper \\ \end{cases} \end{split}\]
Triangular Distribution PDF

Cumulative Distribution Function (CDF)#

\[\begin{split} F(x|lower, c, upper) = \begin{cases} 0 & \text{for } x < lower \\ \frac{(x - lower)^2}{(upper - lower)(c - lower)} & \text{for } lower \leq x < c \\ 1 - \frac{(upper - x)^2}{(upper - lower)(upper - c)} & \text{for } c \leq x \leq upper \\ 1 & \text{for } x \geq upper \end{cases} \end{split}\]
Triangular Distribution CDF

See also

Related Distributions:

  • Uniform Distribution - A distribution with constant probability that is also used when there is limited prior knowledge about the distribution of the random variable: in this case, only the \(lower\) and \(upper\) bounds are known.

References#