Академический Документы
Профессиональный Документы
Культура Документы
Recalling that any probability density function must sum to 1, and that the
formula for the area of a triangle is area = (½)(base)(height) = (½)(B)(H), we can
easily determine the height of the triangular distribution:
1 = (½)(B)(H)
H = 2/B = 2/(Max – Min)
Hq H
=
(q − Min) (Mode − Min)
2 (Max − Min)
=
(Mode − Min)
2
=
(Mode − Min)(Max − Min)
2(q − Min)
Hq =
(Mode − Min)(Max − Min)
Therefore, the area of the smaller, shaded triangle, which corresponds to the
cumulative probability associated with the value q is:
2(q − Min) 1
P( x < q) = × (q − Min) ×
(Mode − Min)(Max − Min) 2
=
(q − Min)
2
P( x < q) = 1 − P( x > q)
2(Max − q) 1
= 1− × (Max − q) ×
(Max − Mode )(Max − Min) 2
= 1−
(Max − q)2
(Max − Mode )(Max − Min)
Numerical Example
= 1−
(12 − 10 )
2
(12 − 6)(12 − 4)
22 4 11
= 1− = 1− =
(6)(8) 48 12
First, because the computations differ on the different sides of the distribution, we
must determine in which side of the distribution the random number will fall. The
areas of the sides of the distribution are proportional to their respective bases, so
that if RN < (Mode – Min)/(Max – Min), it corresponds to the left side of the
distribution; otherwise it is in the right side.
Solving for the values of the random variates, first on the left side:
P( x < q) = RN =
(q − Min)
2
= 1−
(Max − q)2
(Max − Mode )(Max − Min)
(Max − q) = (1 − RN)(Max − Mode )(Max − Min)
2
Excel™ Considerations
With simulation software, such as Arena and Crystal Ball, the triangular
distribution is one of the most widely used distributions. While many distributions
are built into Excel™, the triangular distribution is not one of them. However,
implementing a triangular distribution formula is quite straightforward. We cannot
have the random number generation, RAND(), embedded into our formula as we
need to refer to the random number generated more than once, which is not
possible in Excel™. Therefore, we will generate the random number externally,
and reference it within the formula.
The formula would use the IF() function to determine which side corresponds to
the random number generated. The structure of the IF function is simple:
For our triangular distribution, the formula first determines which side of the
distribution corresponds to the random number and then evaluates the
appropriate formula.