Unit II (Part B) Random Variable
Unit II (Part B) Random Variable
Random variable: A random variable is a function defined over sample space of a random
experiment which relates the sample points to a real number line. A random variable is denoted by
capital letters like X, Y, Z etc
Example: A coin is tossed three times. S is the sample space showing sample points. Let X is a
random variable denoting number of heads then X can take values 0, 1, 2, 3. The mapping from S
to X is as shown in Fig. 2.1. Now whenever the experiment of tossing three coins can be conducted
one can observe the number of Heads. Accordingly X will change randomly from one trail to next
trail.
TTT,
TTH, 0
THT, 1
HTT,
THH, 2
HTH,
3
HHT,
HHH
Page | 1
Unit 2 (Part B)
P(X < 0) = 0
P(X = 0) = 0.85 =0.32768
4
P(X = 1) = 5(0.2)(0.8) =0.40960
2 3
P(X = 2) = 10(0.2) (0.8) =0.2048
P(X = 3) = 10(0.2)3(0.8)2 =0.0512
P(X = 4) = 5(0.2)4(0.8) =0.0064
P(X = 5) = (0.2)5 =0.00032
P (X > 5)= 0
The pdf of this example is shown in Fig. 2.2(b)
fx(x) fx(x)
0 1 2 3 x 0 1 2 3 4 5 x
(a) (b)
A discrete random variable has discrete pdf and a continuous random variable has continuous
pdf. The pdfs shown above are discrete type. Mathematically a discrete pdf can be expressed as
N
f X ( x) P(k ) ( x k )
X k
A continuous random variable has continuous pdf. It may be uniform, increasing, decreasing or
partly increasing and partly decreasing.
Properties of pdf:
Properties of fX(x) are as given below
(i) pdf of random variable is a positive function
f X ( x) 0
(ii) The total area under a pdf function is unity
f
X ( x) dx 1
(iv) Probability that a random variable lies between x1 and x2 is equal to the area under
pdf from x1 to x2.
Page | 2
Unit 2 (Part B)
x2
P ( x1 X x2 ) f
x1
X ( x) dx
FX ( x0 ) f
X ( x) dx
The PDF of above two examples are sketched in Fig. 3(a) and (b).
Fx(x)
Fx(x)
0 1 2 3 x 0 1 2 3 4 5 x
(a) (b)
The PDF of a discrete random variable is a staircase function and for continuous random variable
the PDF is a continuous increasing function.
Properties of PDF:
The properties of PDF are
(i) FX () 0
(ii) FX () 0
(iii) 0 FX ( x) 1
(iv) If x1 ≤ x2 then FX ( x1 ) FX ( x2 )
(v) P( x1 X x2 ) FX ( x2 ) FX ( x1 )
fX(x)
x
a b
FX(x) 1
x
a b
Page | 4
Unit 2 (Part B)
1 1
n
n
1 e
n
e
k
Hence P( X k )
k!
The Poisson distribution has number of applications.
Page | 5
Unit 2 (Part B)
Page | 6
Unit 2 (Part B)
The pdfs represented in Figure 3 have the same mean, µ = 2, and σ12>σ22> σ32showing that the
larger the variance the greater the dispersion around the mean.
Figure 2: Gaussian pdf with different variances (σ12 = 32, σ22 = 22, σ32 = 1)
This is not a close form integral and can be evaluated only through numerical methods. The
results can be tabulated for different combinations of (m, σ). This will require infinite number of
tables. However using normalization procedure only one single table that of standard Gaussian
function can be used for all combinations of (m, σ). This is achieved by change of variables as
explained below.
xm
Put z
1
dz dx
Z z2
1
Fz ( z )
2 e
x
2
dz (3)
xm
Hence FX ( x) FZ ( z ) F (4)
Because of symmetry of Gaussian density function we have
FZ ( 0) 0.5
FZ ( z ) 1 Fz ( z ) (5)
Another function Q(z) is defined as
Z z2
1
Q( z ) 1 Fz ( z )
2 e
x
2
dz
Page | 7
Unit 2 (Part B)
Page | 8