5.5 Some Standard Continuous Distributions 163
f
X
(x) =
½
λe
−λx
, x ≥0,
0, else ,
where
λ >0 is called the rate parameter. An exponentially distributed random
variable X is denoted by X
∼ E (λ). Its moment-generating function is m(t) =
λ/(λ − t) for t < λ, and the mean and variance are 1/λ and 1/λ
2
, respectively.
The nth moment is
EX
n
=
n!
λ
n
.
This distribution has several interesting features; for example, its failure
rate, defined as
λ
X
(t) =
f
X
(t)
1 −F
X
(t)
,
is constant and equal to
λ.
The exponential distribution has an important connection to the Poisson
distribution. Suppose we observe i.i.d. exponential variates (X
1
, X
2
,... ) and
define S
n
= X
1
+···+X
n
. For any positive value t, it can be shown that P(S
n
<
t < S
n+1
) = p
Y
(n), where p
Y
(n) is the probability mass function for a Poisson
random variable Y with parameter
λt.
Like a geometric random variable, an exponential random variable has the
memoryless property,
P(X ≥ u +v|X ≥ u) =P(X ≥v) (Exercise 5.17).
The median value, representing a typical observation, is roughly 70% of
the mean, showing how extreme values can affect the population mean. This
is explicitly shown by the ease in computing the inverse CDF:
p
=F(x) =1 −e
−λx
⇐⇒ x = F
−1
(p) =−
1
λ
log(1 − p).
The MATLAB commands for exponential CDF, PDF, quantile, and ran-
dom number are
expcdf, exppdf, expinv, and exprnd. MATLAB uses the al-
ternative parametrization with 1/
λ in place of λ. Thus, the CDF of random
variable X with
E (3) distribution evaluated at x = 2 is calculated in MAT-
LAB as
expcdf(2,1/3). In WinBUGS, the exponential distribution is coded as
dexp(lambda).
Example 5.19. Melanoma. The 5-year cancer survival rate in the case of ma-
lignant melanoma of the skin at stage IIIA is 78%. Assume that the survival
time T can be modeled by an exponential random variable with unknown rate
λ.
Using the given survival rate of 0.78, we first determine the parameter of
the exponential distribution – the rate
λ.
Since
P(T > t) = exp(−λt), P(T > 5) = 0.78 leads to exp{−5λ} = 0.78, with
solution
λ =−
1
5
log(0.78), which can be rounded to λ =0.05.
Next, we find the probability that the survival time exceeds 10 years, first
directly using the CDF,
P(T >10) =1 −F(10) =1 −
¡
1 −e
−0.05·10
¢
=
1
p
e
=0.6065,