Professional Documents
Culture Documents
Applications
O NE -D IMENSIONAL R ANDOM VARIABLES
Fx (x) , P (X ≤ x) ∀x ∈ R
T HEOREM
X
If X is a DRV. Fx (x) = px (xi ), xi ∈ RX .
xi ≤x
a b c d
0 10 110 111
Let X be a RV denoting the length of the code, that is, the number of binary symbols
(bits).
(a) What is the Range of X
(b) Find the PMF of X
(c) Find the CDF of X
(d) Sketch both PMF and CDF
(e) Find
(i) P (X ≤ 1)
(ii) P (1 < X ≤ 2)
(iii) P (X > 1)
(iv) P (1 ≤ X ≤ 2)
0 x<1
1 1
0 + 2 = 2 1≤x<2
Fx (x) = 1 1 3
+ = 2≤x<3
2 4 4
3 + 1 = 1
x≥3
4 4
(d) The Sketch of PMF and CDF
(iii) P (X > 1) = 1 − P (X ≤ 1)
= 1 − Fx (1)
= 1 − 21 = 12