Professional Documents
Culture Documents
Definition
The CDF of a RV X, denoted by FX (x), is defined as the probability
of the event {X ≤ x} = {ζ ∈ S|X(ζ) ≤ x} for any value of x.
Proof:
lim FX (−x) = lim P [{X ≤ −x}] = P [ lim {X ≤ −x}] = P [∅] = 0
x→∞ x→∞ x→∞
pX (x)
1
2
1
4
1
4
0 1 2
x
Dr. Babar Mansoor EEE251 Probability Methods in Engineering 8 / 31
Cumulative Distribution Function (CDF)
FX (x) = P (X ≤ x) = 0, 1
2
1
Next, if 0 ≤ x < 1, 4
1
1 4
FX (x) = P (X ≤ x) = P (X = 0) = ,
4 0 1 2
x
Next, if 1 ≤ x < 2,
1 1 3
FX (x) = P (X ≤ x) = P (X = 0) + P (X = 1) = + =
4 2 4
Next, if x ≥ 2,
FX (x) = P (X ≤ 2) = P (X = 0) + P (X = 1) + P (X = 2)
1 1 1
= + + =1
4 2 4
Dr. Babar Mansoor EEE251 Probability Methods in Engineering 9 / 31
Cumulative Distribution Function (CDF)
pX (x) 𝐹 𝑥
1
2 1
1 3
4
4
1 𝑃 𝑋 1
4 1
4
0 1 2 𝑥
x 0 1 2 3
Example
Suppose that a discrete RV has the following PMF
1 1 1 1
pX (1) = , pX (2) = , pX (3) = , pX (4) =
2 4 8 8
Example
Next, if 2 ≤ x < 3,
1 1 3
FX (x) = P (X ≤ x) = P (X = 1)+P (X = 2) = + = , for 2 ≤ x < 3.
2 4 4
Next, if 3 ≤ x < 4,
1 1 1 7
FX (x) = P (X ≤ x) = P (X = 1)+P (X = 2)+P (X = 3) = + + = , f
2 4 8 8
0 x<1
1
1≤x<2
2 3
FX (x) = P [X ≤ x] = 4 2≤x<3
7
8 3≤x<4
1 x≥4
@^
Cumulative Distribution Function
%2 02*
2
2-"2+""2 ,$,2
Example
%%2 02*
2
2
(b)
−222/ /' 2 "^
(i) P [X < 1] = FX (1
2 )=0
2 2 2
.KJ^
Dr. Babar Mansoor EEE251 Probability Methods in Engineering 14 / 31
Cumulative Distribution Function
Homework
Let X be a discrete RV with the following PMF
0.2 for x = −2
0.3 for x = −1
0.2 for x = 0
pX (x) =
0.2 for x = 1
0.1 for x = 2
0 otherwise.
Example
Let X be a discrete RV with the following CDF
0 for x < 0
1
for 0≤x<1
16
FX (x) = 2 for 1 ≤ x < 2
3
4 for 2 ≤ x < 3
1 for x ≥ 3.
𝑓 𝑥
1
𝑏 𝑎
𝑎 𝑏 𝑥
Dr. Babar Mansoor EEE251 Probability Methods in Engineering 19 / 31
CDF of Continuous RVs
X ∼ U (a, b)
From the definition of CDF, FX (x) = P (X ≤ x) we get
Zx
FX (x) = fX (u)du = 0 for x < a
−∞
Zx Zx
1
FX (x) = fX (u)du = du, a ≤ x ≤ b
b−a
−∞ a
x−a
= , a≤x≤b
b−a
and
FX (x) = 1, x ≥ b
Therefore,
0 for x < a
x−a
FX (x) = b−a for a ≤ x ≤ b
1 for x > b
Dr. Babar Mansoor EEE251 Probability Methods in Engineering 20 / 31
CDF of Continuous RVs
X ∼ U (a, b)
𝑓 𝑥
𝐹 𝑥
1
1
𝑏 𝑎
𝑎 𝑏 𝑥 𝑎 𝑏 𝑥
F(t)
1
t
10 10.5
FX (x) = P (X ≤ x) = 0, for x ≤ 0
and
Zx x
FX (x) = λe−λt dt = −e−λt = 1 − e−λx , for x > 0
0
0
So,
1 − e−λx , x > 0,
FX (x) = P (X ≤ x) =
0, x ≤ 0.
CDF of X ∼ Exp(λ).
Example
The transmission time X of messages in a communication system has an
exponential distribution:
Example
dFX (x)
As the PDF fX (x) = dx , therefore,
λe−λx , x ≥ 0,
fX (x) =
0, x < 0.
Example
The lifetime in hours of a component is represented by the random
variable X whose PDF is given by fx (x) = 0.1e−0.1x for x ≥ 0 ?
(a) What is the CDF of x.
(b) What is the probability that the component will last at least 5 hours?
Solution:
(a) The CDf is
Zx Zx (
1 − e−0.1x , x ≥ 0,
−0.1u
FX (x) = fX (u)du = 0.1e du =
0, x < 0.
−∞ 0
Homework
The PDF of the time T it takes a bank teller to serve a customer is
defined by ( 1
6, 2 ≤ t ≤ 8,
fT (t) =
0, otherwise.
(a) What is the CDF of T ?
(b) What is the probability that a customer is served in less than 5
minutes?
0, t<2
t−2
ANS: (a) FT (t) = , 2 ≤ t < 8,
6
1, t > 8.
(b) P [T < 5] = 0.5