Professional Documents
Culture Documents
16 The Exponential Distribution PDF
16 The Exponential Distribution PDF
Example:
1. You have observed that the number of hits to your web
site follow a Poisson distribution at a rate of 2 per day.
Proof:
Let T = time that elapses after a Poisson event.
= 0 otherwise
• The CDF:
Z t
P (T ≤ t) = F (t) = λe−λT dT
0
it
−e−λT
h
= T =0
= −e−λt + 1
i.e.
F (t) = 1 − e−λt , t > 0
= 0 otherwise.
Example:
P (T ≤ .5).
4
3
dexp(x, 4)
P (X <= .5)
1
0
Z .5
P (T ≤ .5) = 4e−4tdt
0
i.5
−e−4t
h
= t=0
= 1 − e−2
= 0.86
From R
pexp(.5,4)
[1] 0.8646647
What is the maximum waiting time between two job sub-
missions with 95% confidence?
Solution
1. Poisson:
P (X > 5) = 1 − P (X ≤ 5)
In R
1-ppois(5, 4)
[1] 0.2148696
2. Exponential:
P (Time between occurrences > 2)
Z ∞
= λe−λT dT
2
i∞
−e−λT = e−8 = .00034
h
= T =2
In R
pexp(2, 4)
[1] 0.9996645
1-pexp(2, 4)
[1] 0.0003354626
Density of the Exponential Distribution with
λ = 2, 3, 4 and 6
lambda = 2 lambda = 3
2.0
3.0
dexp(x, 2)
dexp(x, 3)
1.5
1.0
0.0
0.0
x x
lambda = 4 lambda = 6
4
6
dexp(x, 4)
dexp(x, 6)
4
2
2
0
x x
par(mfrow = c(2,2))
Examples:
i.e.
the component does not ‘age’ - its breakdown is a re-
sult of some sudden failure not a gradual deterioration
= e−λt [1 − e−λx ]
and Z ∞
P (E2 ) = λe−λT dT = e−λt
t
thus
e−λt [1 − e−λx ]
P (E1 |E2) = −λt
= 1 − e−λx
e
now
1 − e−λx = F (x) = P (T ≤ x)
Examples
1. Calls arrive at an average rate of 12 per hour. Find the
probability that a call will occur in the next 5 minutes
given that you have already waited 10 minutes for a call
i.e.
Find P (T ≤ 15|T > 10)
In R
λ = 4 per minute
(a)
P (t > 15 sec .) = P (T > .25 min)
Z ∞
= λe−λT dT
.25
i∞
−e−λT
h
= T =.25
−1
= e = .37
In R
> 1- pexp(.25, 4)
[1] 0.3678794
Mean of the Exponential Distribution
Integration by parts:
Z ∞ Z ∞
udv = (uv)∞
0 − vdu
0 0
tλe−λt dt = udv
Take u=t
and dv = λe−λt dt
Then
Z ∞ ∞ Z ∞
−λt
−te−λt 0 e−λt dt
tλe dt = +
0 0
∞
−te−λt − λ−1 e−λt
= 0
1
=
λ
R Functions for the Exponential Distribution