The triangular distribution is a continuous distribution defined on the range with probability
density function
|
(1)
|
|
(2)
|
where
is the mode.
The sum
of two independent random
variables, each with a uniform distribution
on
, has the symmetric triangular distribution on
. The map from
to
has Jacobian determinant
1. Thus the probability density function
of
at
is the length in the
coordinate of the diagonal slice
through the unit square. The
inequalities
and
give
|
(3)
|
so the density is on
,
on
, and zero outside
(3Blue1Brown 2023).
The symmetric triangular distribution on is implemented in the Wolfram
Language as TriangularDistribution[a,
b], and the triangular distribution on
with mode
as TriangularDistribution[a,
b, c].
The mean is
|
(4)
|
the raw moments are
|
(5)
| |||
|
(6)
|
and the central moments are
|
(7)
| |||
|
(8)
| |||
|
(9)
|
It has skewness and kurtosis excess given by
|
(10)
| |||
|
(11)
|
Among probability density functions that are affine on and zero outside it, a constant density gives the uniform
distribution, and a density vanishing at an endpoint gives a triangular distribution
with mode at the opposite endpoint. After rescaling to
, the density is
with
.
Its skewness
decreases with
, so
,
with equality only for the two endpoint modes.