Professional Documents
Culture Documents
3.1 Introduction
In the last unit we studied about Random variables of single and double
variables. In this unit based on these types of random variables we will
study their expected values. Expectation is used almost in every sphere of
life. For example, in a year what is the expectation of getting good rain, a
gambler might be interested in his average winnings at a game, for a
business person he will be interested in his average profits on a product, all
these answers can be well given with the help of expectation. Mathematical
expectation is the average value of a random phenomenon.
Objectives:
At the end of the unit the student should be able to :
explain the concept of expectation of random variables
explain variance and covariance of functions of one and two dimensional
random variables.
3.2 Expectaion
3.2.1 Mathematical expectation of one dimensional random variable
Let X be a discrete random variable and be probability mass function
(p.m.f.). Then the mathematical expectation or expectation of is defined
as
(3.1)
Sikkim Manipal University Page No.: 49
Probability and Statistics Unit 3
provided that the integral and summation of (3.1) and (3.2) converges
absolutely. It is also known as mean of random variable X.
Example: Suppose a dice is tossed and let the random variable X denotes
the numbers on the dice i.e., X = 1,2,3,4,5,6. The p.m.f of X is
Then,
Then,
X f(x)
2 1/6
3 1/2
4 1/3
(b) E(X2) =
(c) E( 2X+1)2 =
Example: Find the expected values of the sum of numbers of points when
two unbiased dices are thrown simultaneously.
E(X) =
3 2 1
10. 11. 12.
36 36 36
=
Example: An urn contains 7 white and three red balls. Two balls are drawn
together, at random from this urn. Compute the probability that (a) neither of
them is white (b) one white one red. Hence compute the expected number
of white balls drawn.
Solution: let x denotes the number of white balls drawn. Then the
probability of X is
X : 0 1 2
f(x) :
Solution:
There are three following possibilities of drawing two coins at random.
2
C2 1
(1) both of these coins be rupee-coins, its probability = =
5C 2 10
3 18 26
= 1 twenty paise coins
5 5 5
26
= 20 paise
5
=104 paise
SAQ 1: Two coins are thrown simultaneously and let X denotes the number
of heads. Calculate all possible outcomes and find probability distribution of
X. Also calculate the expected values of X.
Find expectation of X.
SAQ 4: Given that . Find the expected value.
x
f ( x) , if 0 x 2
2
by 0 otherwise
3.3.1 Variance
Another important measure of variability of a random variable is variance.
Let X be a random variable with probability distribution and mean .
Then the variance of X is defined as
where X is discrete
= X is continuous
Note:
=
Hence, .
Properties
1. If X is a random variable, then where a and b are
constants.
Proof: Let . Then
So lets calculate
Therefore,
Find the value of k and calculate mean, variance and standard deviation.
= > k = 0.1
Now mean = E(X) =
= (-2)(0.1) + (-1) (0.1)+ 1(0.2) + 2(0.3) + 3(0.1)
= 0.8
Variance =
=
= (4)(0.1) + (1) (0.1)+ 1(0.2) + 4(0.3) + 9(0.1)
= 2.8
Therefore,
Standard Deviation =
Solution: Here X = 0, 1, 2
E(X) = 0(p) + 1(1-2p) + 2(p)= 1
Example: The weather bureau classifies the type of sky that is visible in
terms of degree of cloudiness. A scale of 11 categories is used: 0, 1, 2, ,
10, where 0 represents a perfectly clear sky, 10 represents a completely
overcast sky, while the other values represent various intermediate
conditions. Suppose that such a classification is made at a particular
weather station on a particular day and time. Let X be the random variable
assuming one of the above 11 values. Suppose that the probability
distribution of X is
p0 = p10 = 0.5
p1 = p2 = p8 = p9 = 0.15
p3 = p4 = p5 = p6 = p7 = 0.06
Hence
E(x) = 1 (0.15) + 2(0.15) + 3(0.06) + 4(0.06) + 5(0.06) + 6(0.06) + 7(0.06) +
8(0.15) + 9(0.15) + 10(0.05) = 5.0
Solution: We have
E(X) = (a + b)/2
b
1
x
2 2
E(X ) = dx
b a
a
1 b 3 a 3
=
b a 3
Hence
V(X) = E(X2) (E(X))2
1 b 3 a 3 a b
2
=
b a 3 2
V(X) =
b a 2
12
(a) find the value of constant k, (b) Find P(X )(c) Find E(X) and Var(X)
SAQ 10: Find the mean of the random variable X, if its pdf is given by
f(x)= 6x(1-x), 0x1.
3.4 Covariance
It is a measure of association between two random variables.
Let X and Y be two random variables. Then the covariance is defined as
Cov (X,Y) = E[{X-E(X)}{Y-E(Y)}]
= E[XY-XE(Y)-YE(X) +E(X)E(Y)]
= E(XY) E(Y)E(X) E(X)E(Y)+E(X)E(Y)
= E(XY)-E(X)E(Y)
Note: If X and y are independent random variables ,then Cov (X,Y) = 0
Properties:
1. Cov (aX,bY) = ab Cov(XY)
2. Cov(X+a, Y+b) = Cov (X,Y)
3. Cov ( , )=
=(
integral, t = xy)
integration)
= ( integrating by parts)
E(X| )=
E(X| )=
Similarly, E(Y| )=
Solution:
(a) E (Y | X = x) =
(c) E(Y2 | X = x) =
Example: Let X and Y be two random variables each taking three values -1,
0 and 1, and having the joint probability distribution
X
-1 0 1 Total
Y
-1 0 0.1 0.1 0.2
0 0.2 0.2 0.2 0.6
1 0 0.1 0.1 0.2
Total 0.2 0.4 0.4 1.0
Find
(a) Expectation of X , Y
(b) Cov (X,Y)
(c) Find Var X and Var Y
(d) Find Var (Y | X = -1)
=
Cov (X,Y) = E(XY) E(X)E(Y)
=0
SAQ 12: Two random variables X and Y have the following joint probability
density function:
=
Find (i) Var(X) and Var (Y)
(ii) Cov (X,Y)
SAQ 13: If the joint pdf of (X,Y) is given by f(x,y)= 24y(1-x), 0yx1, find
E(XY).
SAQ 14: If X and Y are independent random variables with joint probability
x(1 3 y 2 )
f ( x, y ) , 0 x 2, 0 y 1
density 4
0 otherwise
Show that E(XY)=E(X) E(Y).
SAQ 15: Assume two random variables X and Y jointly distributed with
density function f(x,y)= x+y 0x1, 0y1. Find Cov(X,Y).
3.6 Summary
In this unit we studied expectation, variance and covariance of one
dimensional and two dimensional random variables with sufficient number of
examples.
7. If E(X) = 10, Var(X) = 25, find the positive values of a and b such that
E(aX-b) = 0 and Var(aX-b) = 1.
8. A and B throw with one dice for a prize of Rs.11 which is to be won by a
player who first throws 6. if A has the first throw, what are their
respective expectation?
9. Thirteen cards are drawn simultaneously from a pack of cards. If aces
count 1, face cards 10 and others according to denomination, find the
expectation of the total score on 13 cards.
3.7 Answers
Self Assessment Questions
1. Let H denotes the head and T denotes the tail. So all possible outcomes
after tossing two coins simultaneously are
Outcomes Number of heads Probability of occurrence
HH 2 2/4 = 1/2
Sikkim Manipal University Page No.: 68
Probability and Statistics Unit 3
HT 1 1/4
TH 1 1/4
TT 0 0
So, E(X) = 0.f(x) + 1.f(x) + 2.f(x) = 1. 2/4 + 2. = 3/2
2. (n+1)/2
3. 2
4. Let X denotes the discrete random variable.
Here n = 5. So the possible values of X are 0,1,2,3,4,5. The probability
distribution is
X 0 1 2 3 4 5
f(x)
5. E(X)=5
6. E(X)=4/3 and Var(X)=2/9
7. A=1 and Mean=1
8. E(X) =
Put we get
=
= =
=
=
Sikkim Manipal University Page No.: 69
Probability and Statistics Unit 3
Hence, Var(X) =
=
So,
So,
=
Var(X) = E(X2) {E(X)}2
E(X) =
E(Y) =
E(X2) =
E(Y2) =
13. E(XY)=4/15
14. E(XY)=E(X)E(Y)
15. -1/144.
Terminal Questions
1. (i) 0.385 (ii) 2.285 (iii) 6.115 (iv) 2.545
2. E(X) = 2.
3. E(C(X)) = 27.6
4. K = , E(X) = 3, Var(X) = 3
5. Rs 340
Hint:
X X1 = 1000 X2 = -100
P 0.4 0.6
6. 4.5, 2.
7. a = 1/5, n = 2.
8. As= Rs.6 , and Bs = Rs. 5
9. 85