Lecture 10
Lecture 10
I. 0 ≤ FX (x) ≤ 1
...
The cdf has the following properties which allow us to calculate the
probability of events involving intervals and single values of X:
VI. P [a < X ≤ b] = FX (b) − FX (a)
VII. P [X = b] = FX (b) − FX (b− )
VIII. P [X > x] = 1 − FX (x)
Example
Let X be the number of heads in three tosses of a fair coin. Use
the cdf to find the probability of the events A = {1 < X ≤ 2},
B = {0.5 ≤ X < 2.5} and C = {1 ≤ X < 2}
Solution:
P [1 < X ≤ 2] = FX (2) − FX (1) = 7/8 − 4/8 = 3/8
P [0.5 ≤ X < 2.5] = FX (2.5) − FX (0.5) = 7/8 − 1/8 = 6/8
P [1 ≤ X < 2] = FX (2− ) − FX (1− ) = 4/8 − 1/8 = 3/8
Dr. Bakhtiar Ali 4/10
4 One Random Variable
4.1 The cumulative distribution function
End of Chapter problems
Example
An information source produces binary pairs that we designate as
SX = {1, 2, 3, 4} with the following pmf 0 s:
i. pk = p1 /k for all k in SX
ii. pk+1 = pk /2 for k = 2, 3, 4
iii. pk+1 = pk /2k for k = 2, 3, 4
Example
An urn contains 8 $1 bills and two $5 bills. Let X be the total
amount that results when two bills are drawn from the urn without
replacement, and let Y be the total amount that results when two
bills are drawn from the urn with replacement.
a. Plot and compare the CDF 0 s of the random variables.
b. Use the CDF to compare the probabilities of the following
events in the two problems: {X = $2}, {X < $7} and
{X ≥ $6}
Example
The random variable X is uniformly distributed in the interval
[−1, 2]
a. Find and plot the cdf of X
b. Use the cdf to find the probabilities of the following events:
{X ≤ 0}, {|X − 0.5| < 1} and {X > −0.5}
Example
The cdf of the random variable X is given by:
0 x < −1
0.5 −1 ≤ x ≤ 0
FX (x) =
(1 + x)/2 0≤x≤1
1 x≥1
Example
A random variable X has cdf :
0 x<0
FX (x) = 1
1 − e−2x x≥0
4