Random Variables: X X X X X X PX X P P P P
Random Variables: X X X X X X PX X P P P P
Random Variables
Study Material for Week 5
Lecture Three
Let X be a discrete random variable taking values x1 , x2 ,, xn with probability mass
function
X xi x1 x2 x3 xn
p( X xi ) p1 p2 p3 pn
i 1
n
Var ( X ) E ( X 2 ) E ( X ) , where E ( X 2 ) xi 2 pi
2
i 1
Results : Let X and Y be two random variables. Let a and b be any non zero constants.
i) E (a) a
ii) E (aX b) aE ( X ) b
iii) E ( X Y ) E ( X ) E (Y )
v) sd (aX b) a sd ( X )
Example
1. A box contains 8 items of which 2 are defective. A person draws 3 items from
the box. Determine the expected number of defective items he has drawn.
n
Sol . Let X be the number of defective items drawn by a person. The pmf of X is
Random Variables
0 1 2
1
2. A random variable has mean 2 and standard deviation . Find
2
i) E (2 X 1)
ii) Var ( X 2)
3X 1
iii) sd
4
1 1
Soln. Given E ( X ) 2 and sd ( X ) Va r( X )
2 4
i) E (2 X 1) 2 E ( X ) 1 2*2 1 3 .
1
ii) Var ( X 2) Var ( X ) .
4
3X 1 3 3 1 3
iii) sd sd ( X ) * .
4 4 4 2 8
3. A sample space of size 3 is selected at random from a box containing 12 items of
which 3 are defective. Let X denote the number of defective items in the sample.
Write the probability mass function and distribution function of X. Find the expected
number of defective items.
Soln. X be the number of defective items in the sample.
0 1 2 3
84/220 108/220 27/220 1/220
84/220 192/220 219/220 220/220=1
4. A player tosses two fair coins. The player wins $2 if two heads occur, and $1 if one
head occur. On the other hand, the player losses $3 if no heads occur. Find the
expected gain of the player. Is the game fair?
Soln. The sample space is HH , HT , TH , TT . Since coins are fair,
Random Variables
1
p HH p HT p TH p TT .
4
Let X be the player’s gain. Then X takes values 3, 1 and 2 with
1 2 1
p 3 , p 1 and p 2 .
4 4 4
1 2 1 1
Expected gain E X 3 1 2 0.25 .
4 4 4 4
Thus the expected gain of the player is $ 0.25 . Further E X 0 , the game is