Foundations
Triangular Distribution
A bounded continuous distribution defined by a lower endpoint, upper endpoint, and mode. Includes the PDF, CDF, moments, sum-of-uniforms construction, and why the shape is a useful bridge between geometry and probability.
Prerequisites
Why This Matters
The triangular distribution is a useful first continuous distribution after the uniform distribution. It has a bounded support like a uniform, but it also has a mode: one value is most likely. That makes it a clean model when you know a minimum, a maximum, and a best guess, but do not want to pretend the density is flat.
It is also a good probability-mechanics example. The density is made from two straight line segments, the cumulative distribution is piecewise quadratic, and the symmetric case appears by adding two independent uniform random variables. The standalone Probability Mechanics Lab shows the finite-sample version of the same mapping idea.
Definition
Triangular Distribution
Let . A random variable has a triangular distribution with lower endpoint , mode , and upper endpoint if its density is
The endpoint cases or are one-sided triangular distributions and are obtained as limits.
The height at the mode is . This makes the total area equal to one: the left and right triangular areas sum to
CDF
Triangular Distribution CDF
Statement
For ,
Intuition
The density rises linearly up to , so accumulated area on the left is a triangle whose area grows quadratically in . On the right, it is easier to subtract the remaining right-side triangle from one.
Proof Sketch
Integrate the density. For , . For , compute the remaining tail and subtract it from one.
Why It Matters
The CDF gives exact interval probabilities and supports inverse transform sampling. The square roots in the inverse CDF come directly from these quadratic pieces. This is the same CDF logic used by order statistics, where sorted random variables turn distribution functions into probability calculations.
Failure Mode
Do not use the left formula past or the right formula before . The density changes slope at the mode, so the CDF has two different quadratic pieces.
Moments
Mean and Variance
Statement
If , then
and
Intuition
The mean is the center of mass of the triangular density. Moving the mode pulls the center toward the more likely side, but the endpoints still matter because they define the support.
Proof Sketch
Compute and by splitting the integral at . Substituting into gives the stated formula.
Why It Matters
These formulas make the triangular distribution easy to use in quick simulation and uncertainty estimates when only rough endpoint and mode information is available. The mean and variance connect directly to the moment tools in expectation, variance, covariance, and moments.
Failure Mode
The parameter is the mode, not the mean. The mean equals only in the symmetric case .
Sum of Uniforms
Sum of Two Uniforms Is Triangular
Statement
If independently and , then has density
Thus .
Intuition
For a fixed sum , the possible pairs lie on the line inside the unit square. The length of that slice grows until , then shrinks.
Proof Sketch
Use convolution:
The integrand is one exactly when and . The length of that interval is for and for .
Why It Matters
This construction shows how a non-flat density can arise from a simple transformation of two flat sources of randomness.
Failure Mode
The average is also triangular, but its support is and its density rescales. Always track the transformation and its Jacobian.
When to Use It
Use a triangular distribution when:
- the quantity is bounded between a known minimum and maximum;
- one interior value is more plausible than the rest;
- you need a transparent simulation model rather than a fitted parametric family;
- a uniform distribution is too flat, but a beta distribution is more flexibility than the problem justifies.
Do not use it when tails matter. The triangular distribution is bounded, so it cannot model rare extreme values outside . For light-tailed unbounded models, start with Gaussian or sub-Gaussian assumptions. For heavier-tailed models, use sub-exponential, Pareto, Student-, or another tail-aware family.
Common Confusions
The mode is not the mean
The parameter is the location of the peak. The mean is . Only in the symmetric case does the mode equal the mean.
A triangular density is not a triangular sample space
The triangle is the shape of the density on the real line. The underlying sample space can be anything; the random variable pushes its probability mass into this triangular law.
Bounded support is an assumption
The distribution says values outside have probability zero. If an extreme outcome is possible, the triangular model is too confident.
Exercises
Problem
Let . Compute and .
Problem
Derive the density of where independently.
References
Canonical:
- Johnson, Kotz, and Balakrishnan, Continuous Univariate Distributions, Volume 2 (1995), triangular distribution entry
- Evans, Hastings, and Peacock, Statistical Distributions (2000), triangular distribution section
- Casella and Berger, Statistical Inference (2002), Chapter 2
For probability mechanics:
- Blitzstein and Hwang, Introduction to Probability (2019), Chapters 4 and 5
- Grimmett and Stirzaker, Probability and Random Processes (2020), Chapters 3 and 4
- Devroye, Non-Uniform Random Variate Generation (1986), Chapter 2
Last reviewed: April 22, 2026
Prerequisites
Foundations this topic depends on.
- Common Probability DistributionsLayer 0A
- Sets, Functions, and RelationsLayer 0A
- Basic Logic and Proof TechniquesLayer 0A