IV. Triangular Distribution: Minimum Mode Maximum
IV. Triangular Distribution: Minimum Mode Maximum
Triangular Distribution
Known values are the minimum (a), the mode (b - the most likely value of
the pdf), and the maximum (c).
probability density function
(area under the curve = 1)
f(x)
2
h=
c-a
a b c x
2(x - a) h
(c - a)(b - a) for a ≤ x ≤ b (slope = b - a )
The pdf is given by f(x) =
− 2( x - c) for b ≤ x ≤ c (slope = − h )
(c - a)(c - b) c- b
= 0 otherwise
Remark:
x= ∫ f(z)dz
-∞
0 for t ≤ a
t
∫ f(z)dz for a < t ≤ b
t
a
F(t) = ∫ f(z)dz = c
1 - f(z)dx
∫
−∞ for b ≤ t < c
t
1 for t ≥ c
we get
(c - rsample) 2
B x = 1-
(c - b)(c - a)
Since
b
(b - a)
∫ f(z)dz = (c - a)
a
(b - a)
if the random probability x ≤ then equation A is used to solve for
(c - a)
rsample; otherwise equation B is used.
rsample
c
x
0 1
(b-a)/(c-a)
Example: (Note: the median corresponds to x= 0.5)
For a=1, b = 2, c = 4
mean = (a+b+c)/3 = 2.333
mode = 2
median = c − (c − b)(c − a)(0.5) = 4 - 3 = 2.268
V. Gamma Distribution
∞ x ∞
-
α-1
1= k ∫ x e ß
dx = kß α ∫ t α - 1e - t dt where x = βt .
0 0
Γ(α)
1 1
so k = and f(x) is given by x α − 1 e- x/ß
α
ß Γ( α) ß Γ(α)
α
0.5
α=.5, β=10
0.4
α=1.5, β=3.3333
α=5, β=1
0.3
α=10, β=.5
0.2
0.1
0 x
0 5 10
.6
.2
4
0
0 10
2
0
0 .2 .6 1
Erlang was a Danish telephone engineer who did some of the early work in
queuing theory. When α is an integer i, then the gamma distribution is called an
Erlang distribution of order i. The Erlang distribution is used to model
phenomena having i stages, each with independent, exponentially distributed
service times of mean µ. Rather than model these separately, an Erlang
distribution of order i can be used to model the total service time; e.g., if an
experiment has 3 successive stages each of which takes an average of 5 minutes
(exponentially distributed), then the experiment time can be modeled by taking α
= 3 and β = 5 (to get the overall mean of αβ = 15 minutes).
VII. Weibull Distribution
Recall that for the gamma distribution the idea was to choose k so that
∞
k ∫ x α - 1 e - x/ ß dx is equal to 1 and then choose f(x) = kxα-1e-x/β.
0
A major difficulty with this pdf is that it is not integrable in closed form;
however, it is close to being so. The idea is to render the part under the
integral to be in the form ezdz so that the function will be integrable; i.e.,
for
∞
k ∫ e − (x/ ß ) x α- 1 dx we need to determine a ? value so that
?
0
for z = -(x/β)?, dz = xα-1dx
- ß α ∞ − (x/ ß )α − α - ß α −( x/ß )α ∞ ßα
k ⋅ e ( )α- 1 e = 1 when k = α
∫
x/ ß dx = k 0
= k α ßα
α 0 ß α
This forms the basis for the Weibull distribution, which has the pdf
α - 1 - x - δ
α
α x − δ ß
f(x) = e
for x ≥ d
ß ß
0 otherwise
Since
rsample rsample
The Weibull distribution is often used to model time until failure (for
example, light bulbs may have significant early failure and some have
significant long term until failure) as per the following graph. When α = 1,
β = 1/λ, δ = 0 then the Weibull distribution is the exponential distribution.
Weibull pdf for fixed β = 1 and varying values of α
f(x)
4
α=10, β=1
3
α=.5, β=1
2
α=5, β=1
1
α=1.5, β=3.3333
0 x
0 1 2 3 4