distribution #22
In this lesson

Wide tables, equations, and code scroll sideways. Swipe, or Tab to focus them and use the left and right arrow keys.

Triangular distribution

You will learn: Compute areas and cumulative probabilities when a bounded density has a specified mode.

Start with: Uniform distribution

When you know the minimum, maximum, and most-likely value of something but nothing else, a triangular distribution is one simple modeling choice. Three elicited values do not uniquely determine a distribution. The important question is what changes when those anchors or the density between them are uncertain.

f(x;a,b,c)={2(x−a)(b−a)(c−a)a≤x≤c2(b−x)(b−a)(b−c)c<x≤b0otherwisef(x;a,b,c)=\begin{cases}\dfrac{2(x-a)}{(b-a)(c-a)} & a\le x \le c\\[4pt]\dfrac{2(b-x)}{(b-a)(b-c)} & c<x\le b\\ 0 & \text{otherwise}\end{cases}
density by x00.050.10.150.20246810xdensity

Three anchors still leave a modeling choice

Different assumed densities on the same interval [0,10]
ModelMeanP(X≤5)
Triangular, mode 34.333330.642857
Uniform5.000000.500000
Beta-PERT, strength 43.666670.760011

The beta alternative maps Beta(2.200,3.800) to [a,b], using an explicit strength convention of 4. It shares the elicited mode, but has a different shape. The uniform comparison uses only the bounds and has no unique mode. These are assumptions, not three fitted conclusions from observed data.

Move the elicited mode and inspect the consequence

Triangular sensitivity: mode shifted by up to one quarter of the interval, holding bounds fixed
ModeMeanP(X≤5)
0.5003.500000.736842
3.0004.333330.642857
5.5005.166670.454545

A mode change Δ moves the mean by Δ/3; the event probability need not change linearly. The entered triangular variance is 4.38889. Bounds describe assumed possible values, not automatic confidence limits. An outcome outside them has probability zero in all three models.

Piecewise-linear density on [a, b] peaking at c. Mean is the average of the three vertices (a+b+c)/3(a+b+c)/3 = 4.33.

What to notice

  • Three knobs, piecewise linear. The density is a straight line up from a to the mode c and a straight line down to b. The peak height is always 2/(b−a)2/(b-a), independent of where the mode sits.
  • Mode ≠ mean. Drag the mode toward one side and the mean stays at the average of the three vertices:
E[X]=(a+b+c)/3E[X]=(a+b+c)/3
  • Symmetric case. When c sits exactly at the midpoint, the distribution is symmetric and its variance simplifies to (b−a)2/24(b-a)^{2}/24 — the variance of a plus the sum of two independent Uniform(0, (b−a)/2) variables.

Why it matters

A simple bounded model can make assumptions inspectable, but simplicity is not evidence of fit. In project-estimation tradition the mean is often approximated as (a+4c+b)/6(a+4c+b)/6, the usual beta-PERT mean under its additional shape convention. It is not the triangular mean and is not determined by the three anchors alone.

The displayed two-branch density assumes a < c < b. At c=a or c=b, use the corresponding one-sided triangular limit; do not evaluate a zero-width branch by dividing by zero.

Compute an event area

With a=0, b=10, c=3, the probability up to the mode is the area of the left triangle: (3−0)/(10−0)=0.3. Above the mode, subtract the right-hand triangle from one. At x=5, P(X≤5)=1−(10−5)²/((10−0)(10−3))=9/14≈0.642857. A uniform distribution on the same bounds instead gives 0.5.

The mean is 13/3≈4.333333. If only c changes from 3 to 6, the mean rises by one to 16/3, but P(X≤5) falls to 25/60≈0.416667. The cutoff has moved from one branch of the density to the other, so a linear rule for the event probability would fail.

Make the alternative shape convention explicit

The comparison uses a beta-PERT convention with strength 4. On the unit interval its shapes are α=1+4(c−a)/(b−a) and β=1+4(b−c)/(b−a). Scaling to [a,b] produces mean (a+4c+b)/6. When the mode is interior, the beta mode formula returns the elicited c; at a boundary it gives the corresponding monotone density.

That convention is an additional assumption. It does not follow from the three anchors. A uniform density has no unique mode, and other beta strengths can produce other event probabilities. The table holds the support and cutoff fixed so the consequence of changing the shape is visible.

Make a prediction

If a reported maximum is merely the largest observation so far, is it safe to use it as b?

Explore the answer

Not without a support assumption. A triangular model assigns zero probability above b. A sample maximum does not establish an absolute upper limit. Reconsider the bound or the family when observations can exceed it.

References

NIST’s triangular density reference gives the two branches on general bounds. The areas and beta-PERT convention above are derived from the displayed densities and shape formulas. Use beta and uniform to compare their assumptions.

Reset all settings