Professional Documents
Culture Documents
5.1 Introduction
In this chapter we will discuss some probability distributions of random variables.
There are discrete and continuous probability distributions.
Example 5.1 Find the formula for the probability distribution of a total number of
heads obtained by tossing a fair coin three times.
Solution
The following tree diagram is used to obtain the sample space S
H
T
H
HHH
HHT
HTH
T
H
HTT
THH
T
H
THT
TTH
TTT
0
1/8
1
3/8
2
3/8
3
1/8
Pa X b f x dx
b
2.
f x dx 1
Some special continuous random variables will be discussed in the next chapter.
EX
x p x
all x
Var X Ex E X E X 2 E X
2
x px
where, E X 2
all x
SD X Var X
Example 5.2 The five days incomes of a certain firm in thousands of dollars with
their associated probabilities were given as follows:
Income
Probability
1.2
0.3
3.3
0.15
1.8
0.2
0.9
0.15
2.8
0.2
Find the expected income and the standard deviation of the firm.
Solution
Let X be a daily income of the firm. We summarize the required sums in the following
table
x
p(x)
x p(x)
x2p(x)
1.2
0.30
0.36
0.432
3.3
0.15
0.495
1.6335
1.8
0.20
0.36
0.648
0.9
0.15
0.135
0.1215
2.8
SUM
0.20
0.56
1.91
1.568
4.403
Then,
E X xpx 1.91
f x, y 1
x
Example 5.3 Find the value of k if the following is a joint probability distribution
for x 1, 2,3; y 2, 3
otherwise
kxy
f x, y
0
Solution
f x, y 1 .
x
It implies that,
2k 3k 4k 6k 6k 9k 1
So that 30k 1 or k
1
30
for each x within the range of X is called the marginal distribution of X, similarly,
the function
h y f x, y
x
5.5 Covariance
Covariance is a measure of how two random variables change together. If one
random variable varies directly to the other, we get a positive covariance. However,
if they vary inversely, they give a negative covariance. We can precisely define the
covariance as follows;
Definition 5.8 If X and Y are two random variables, their covariance denoted by
COV X , Y or X , Y is given by
COV X , Y E X E X Y EY E XY E X EY
Where E XY is a joint expectation, and E X and E Y are marginal expectations
of X and Y respectively.
For discrete random variables we define E XY as
E XY xyf x, y
x
5.6 Correlation
(, )
()()
5.7 Independence
Definition 5.10 Two jointly distributed random variables are said to be linearly
independent if
E XY E X EY
It follows from the definition that two random variables are said to be linearly
independent if their covariance is equal to zero.
In general, the term independence implies that two or more random variables do not
have any kind of relationship. i.e. neither linear nor non-linear relationships.
Example 5.4 Two cash flows are jointly distributed as shown below
2
10
20
25
10
0.10
0.10
0.10
1
15
0.10
0.20
0.10
20
0.15
0.10
0.05
(a) Find marginal distribution of 1 and hence expected value and standard
deviation.
(b) Find marginal distribution of 2 and hence expected value and standard
deviation.
(c) Compute the covariance, correlation coefficient between these cash flows
and comment on the results.
(d) Are 1 and 2 linearly independent?
Solution
(a) Marginal distribution of 1 is given below
1
Prob.
10
0.3
15
0.4
20
0.3
Then,
(1 ) = 1 (1 ) = 10(0.3) + 15(0.4) + 20(0.3) = 3 + 6 + 6 = 15
(1 ) = (12 ) ((1 ))
But,
(12 ) = 12 (1 ) = 102 (0.3) + 152 (0.4) + 202 (0.3)
= 30 + 90 + 120 = 240
It follows that
(1 ) = 240 152 = 240 225 = 15
Therefore, (1 ) = (1 ) = 15 = 3.873
(b) Marginal distribution of 2 is given below
2
Prob.
10
0.35
20
0.4
25
0.25
Then,
(2 ) = 2 (2 ) = 10(0.35) + 20(0.4) + 25(0.25)
= 3.5 + 8 + 6.25 = 17.75
2
(2 ) = (22 ) ((2 ))
But,
(22 ) = 22 (2 ) = 102 (0.35) + 202 (0.4) + 252 (0.25)
= 35 + 160 + 156.25 = 351.25
It follows that
(2 ) = 351.25 17.752 = 36.1875
Therefore, (2 ) = (2 ) = 36.1875 = 6.016
(c) Covariance between the two cash flows is given by
(1 , 2 ) = (1 2 ) (1 )(2 )
First we need to find the distribution of the product 1 2 for combination of
these two random variables. This is shown below
1 2
100
150
200
200
300
400
250
375
500
Prob.
0.10
0.10
0.15
0.10
0.20
0.10
0.10
0.10
0.05
Then,
(1 2 ) = 1 2 (1 , 2 )
= 100(0.10) + 150(0.10) + 200(0.15) + 200(0.10) + 300(0.20)
+ 400(0.10) + 250(0.10) + 375(0.10) + 500(0.05)
= 10 + 15 + 30 + 20 + 60 + 40 + 25 + 37.5 + 25
= 262.5
It follows that
(1 , 2 ) = (1 2 ) (1 )(2 ) = 262.5 (15)(17.75) = 3.75
This indicates an inverse relationship between the cash flows
Correlation coefficient is given by
(1 , 2 )
3.75
(1 , 2 ) =
=
= 0.161
(3.873)(6.016)
(1 )(2 )
This indicating weak inverse correlation between the cash flows.
(d) Since the covariance between these cash flows is not zero, the cash flows are
not linearly independent.
Y ai X i
i 1
Y ai X i
i 1
i 1
i 1
i j i j
Y ai X i
i 1
Var Y ai2Var X i
i 1
a1
EX 1
a and E X
a
E X
n
n
Y ai X i is given by E Y a' E X a1
i 1
EX 1
a n
E X
n
Cov X 1 , X 2
Var X 1
Var X 2
Cov X 2 , X 1
M
Cov X , X Cov X , X
n
1
n
2
Cov X 1 , X n
Cov X 2 , X n
Var X n
Var Y a' M a a1
Cov X 1 , X 2
Var X 1
Var X 2
Cov X 2 , X 1
a n
Cov X , X Cov X , X
n
1
n
2
Cov X 1 , X n
a1
Cov X 2 , X n
a n
Var X n
Example 5.5 Given the random variables X, Y, and Z with the following expected
2
2
2
values x 2 , y 5 , z 2 , variances x 1, y 4, z 2 and co-variances
4
2
2
1 3
a 3 , E X 5 and M 3 4 2
1
2
4 2 2
2
E W a' E X 2 3 1 5 4 15 2 21.
2
The variance of W is given by
4 2
1 3
Var W a ' M a 2 3 1 3 4 2 3
4 2 2 1
294
2 3 1 6 12 2
862
7
2 3 1 20 14 60 0 74
0