Professional Documents
Culture Documents
SESSION 4*
EXPECTATION,
VARIANCE &
COVARIANCE
Chapter 5 of Notes
Recap
2
SMU Classification: Restricted
Recap
3
SMU Classification: Restricted
Learning Objectives
Expectation & Variance of a Discrete Random
Variable
Expectation & Variance of a Continuous Random
Variable
Covariance and Correlation Coefficient
4
SMU Classification: Restricted
,…,
i.e., a weighted average of all possible values of X. It is also
called mean of the population represented by X.
Expected value of a discrete r.v. is just the weighted average
of the possible values of X, weighted by their chances to
occur. 5
SMU Classification: Restricted
Example 1
Suppose X is the number of heads in 2 tosses of a fair
coin. What is the expected number of heads?
Example 2
A firm believes it has a 50–50 chance of winning an $80,000
contract if it spends $5,000 on the proposal. If the firm spends
twice this amount on the proposal, it feels its chances of
winning the contract will improve to 60%. If the firm bases its
decision solely on expected value, how much should it spend
on the proposal?
Solution: Let X = Revenue at start of project
+ …
+ …
9
SMU Classification: Restricted
Example 1 (continued)
Suppose X is the number of heads in 2 tosses of a fair
coin. What is the expected number of heads?
Solution: Let X = # of heads, recall E(X) = 1.0
x P(x)
0 0.25
1 0.50
2 0.25
Possible number of
heads = 0, 1, or 2 10
SMU Classification: Restricted
11
SMU Classification: Restricted
12
SMU Classification: Restricted
13
SMU Classification: Restricted
Example 3
The monthly sales at a computer store have a mean of $25,000
and a standard deviation of $4,000. Profits are 30% of the sales
less fixed costs of $6,000. Find the mean and standard
deviation of the monthly profit.
Solution: Let X = Sales. E(X) = 25,000, and Var(X) = 4,0002
Let Y = Profit. Then, Y = .30(X) – 6,000.
E(Profit) = E(Y)
= .30 E(X) – 6,000
= (.30)(25,000) – 6,000 = 1,500.
Var(Profit) = Var(Y)
= Var[(.30)(X) – 6,000]
= (.30)2Var(X) = 1,440,000
(Profit) = (Y) = 0.3(X) = 1,200. 14
SMU Classification: Restricted
Learning Objectives
Expectation & Variance of a Discrete Random
Variable
Expectation & Variance of a Continuous
Random Variable
Covariance and Correlation Coefficient
15
SMU Classification: Restricted
Example 4
2
𝑓 ( 𝑥 )= 3 𝑥 ,
0< 𝑥 <1
Let X have density function {
0, otherwise
1 1 4 1
3𝑥 3
0
2
E ( X ) =∫ 𝑥 ( 3 𝑥 ) 𝑑𝑥=∫ 3 𝑥 𝑑𝑥=
0 4
3
[ ] 0
=
4
1 1 5 1
3𝑥 3
( 2
) 2
( 2
)
0
4
E X =∫ 𝑥 3 𝑥 𝑑𝑥=∫ 3 𝑥 𝑑𝑥=
0
[ ] 5 0
=
5
2
4 3
2 2
Var ( X )= 𝐸 ( 𝑋 ) − 𝐸 ( 𝑋 ) = −
5 4
=0.2375 ()
17
SMU Classification: Restricted
Example 5
Example 6. The time elapsed, in minutes, between the
placement of an order of pizza and its delivery is a
random variable with pdf
1
{
𝑓 ( 𝑥 )= 15 if
0
25< 𝑥 <40
otherwise
18
SMU Classification: Restricted
Example 5 (continued)
Solution: Let X be the time between order and delivery.
40
1
(i) 𝐸 ( 𝑋 ) =∫ 𝑥
25
( )
15
𝑑𝑥=32.5
40
1
𝜎 2 =Var ( X )=∫ ( 𝑥 − 32.5 )
25
2
( ) 15
𝑑𝑥=18.75
𝜎 =4.33
(ii) The time it takes for the delivery person to deliver
pizza is Y = X – 12. Therefore,
40
1
𝐸 ( 𝑌 ) = 𝐸 ( 𝑋 − 12 )=∫ ( 𝑥 − 12 )
25 15
𝑑𝑥=32.5 −12=20.5 ( )
2
𝑉𝑎𝑟
( 𝑌 )= 𝐸 [ ( 𝑋 − 12− 20.5 ) ]
40
1
¿∫ ( 𝑥 −12 − 20.5 )
25
2
( ) 15
𝑑𝑥 ¿ 18.75
19
SMU Classification: Restricted
Learning Objectives
20
SMU Classification: Restricted
22
SMU Classification: Restricted
∞ ∞
𝐶𝑜𝑣 ( 𝑋 , 𝑌 ) =∫ ∫ ( 𝑥 − 𝜇 𝑋 ) ( 𝑦 − 𝜇𝑌 ) 𝑓 ( 𝑥 , 𝑦 ) 𝑑𝑥𝑑𝑦
−∞ −∞
∞ ∞
¿∫ ∫ 𝑥𝑦𝑓 ( 𝑥 , 𝑦 ) 𝑑𝑥𝑑𝑦 − 𝜇 𝑋 𝜇 𝑌
−∞ −∞
23
SMU Classification: Restricted
Interpreting Covariance
24
SMU Classification: Restricted
Example 6
An insurance agent offers two types of product: life insurance
and life annuity. Let X be the number of insurance policies sold
per month and Y be number of annuity policies sold per month.
Let the joint probability distribution between X and Y be:
X
Y 1 2 3 Total
1 0.1 0.2 0.3 0.6
2 0.1 0.1 0.2 0.4
Total 0.2 0.3 0.5 1
𝑃 ( 𝑌 =1 )=0.6 , 𝑃 ( 𝑌 =2 )= 0.4
25
SMU Classification: Restricted
Example 6 (continued)
𝐄 ( 𝐗 ) =𝟏 ( . 𝟐 ) +𝟐 ( . 𝟑 )+ 𝟑 ( . 𝟓 ) =𝟐 .𝟑
𝐚𝐫 ( 𝐗 ) =𝟏𝟐 × 𝑷 ( 𝑿 =𝟏 ) +𝟐𝟐 × 𝑷 ( 𝑿=𝟐 )+ 𝟑𝟐 × 𝑷 ( 𝑿=𝟑 ) − 𝑬 (𝑿 )𝟐
𝐕
𝟐 𝟐 𝟐 𝟐
𝟏 ( . 𝟐 ) +𝟐 ( .𝟑 ) +𝟑 ( . 𝟓 ) − 𝟐 .𝟑 =. 𝟔𝟏
¿
𝐄 ( 𝐘 ) =𝟏 ( . 𝟔 ) + 𝟐 ( . 𝟒 )=𝟏 . 𝟒
𝟐 𝟐 𝟐
𝐕
𝐚𝐫 ( 𝐘 ) =𝟏 ( . 𝟔 ) +𝟐 ( . 𝟒 ) −𝟏 . 𝟒 =. 𝟐𝟒
𝑪𝒐𝒗
( 𝑿 , 𝒀 ) =( 𝟏− 𝟐 .𝟑 ) ( 𝟏 −𝟏 . 𝟒 ) 𝑷 ( 𝑿=𝟏 ,𝒀 =𝟏 ) + ( 𝟐 −𝟐 .𝟑 )( 𝟏 −𝟏 . 𝟒 ) 𝑷 ( 𝑿 =𝟐 ,𝒀 =𝟏 )+¿
( 𝟑 − 𝟐 .𝟑 )( 𝟏 − 𝟏 . 𝟒 ) 𝑷 ( 𝑿 =𝟑 ,𝒀 =𝟏 )+ ( 𝟏 −𝟐 . 𝟑 ) ( 𝟐− 𝟏. 𝟒 ) 𝑷 ( 𝑿=𝟏 , 𝒀 =𝟐 ) +¿
( 𝟐 −𝟐 .𝟑 ) ( 𝟐 −𝟏 . 𝟒 ) 𝑷 ( 𝑿 =𝟐 , 𝒀 = 𝟐 )+ (𝟑 − 𝟐. 𝟑 ) ( 𝟐 −𝟏 . 𝟒 ) 𝑷 ( 𝑿 =𝟑 ,𝒀 =𝟐 )
¿ ( 𝟏− 𝟐 .𝟑 ) ( 𝟏 −𝟏 . 𝟒 ) ( . 𝟏 )+ ( 𝟐− 𝟐. 𝟑 ) ( 𝟏− 𝟏 , 𝟒 ) ( . 𝟐 )+ ( 𝟑− 𝟐 .𝟑 ) ( 𝟏 −𝟏 . 𝟒 ) ( . 𝟑 )+ ¿
( 𝟏− 𝟐 .𝟑 ) ( 𝟐 − 𝟏 . 𝟒 ) ( . 𝟏 ) + ( 𝟐− 𝟐 .𝟑 ) ( 𝟐 − 𝟏 . 𝟒 ) ( . 𝟏 )+ ( 𝟑− 𝟐 .𝟑 ) ( 𝟐 − 𝟏 . 𝟒 ) ( .𝟐)
¿ −. 𝟎𝟐 26
SMU Classification: Restricted
Investment
P(XiYi) Economic condition Passive Fund X Aggressive Fund Y
.2 Recession - $ 25 - $200
.5 Stable Economy + 50 + 60
.3 Expanding Economy + 100 + 350
μY = 95 > μX = 50
but
30
SMU Classification: Restricted
E(X Y) E( X) E( Y )
Var(X Y) σ 2
X Y σ σ 2σ XY
2
X
2
Y
σ X Y σ 2X Y
31
SMU Classification: Restricted
E(P) w E( X) (1 w ) E( Y )
• Portfolio risk (weighted variability):
σ P w 2σ 2X (1 w )2 σ 2Y 2w(1 - w)σ XY
Where w = portion of portfolio value in asset X
(1 - w) = portion of portfolio value in asset Y
32
SMU Classification: Restricted
Portfolio Example
Investment X: μX = 50 σX = 43.30
Investment Y: μY = 95 σY = 193.21
σXY = 8250
Suppose 40% of the portfolio is in Investment X and
60% is in Investment Y:
E(P) .4 (50) (.6) (95) 77
Correlation Coefficient
Definition. The correlation coefficient between any two
jointly distributed r.v.s X and Y, denoted by (X, Y), is
defined by Cov( X , Y )
( X ,Y )
Var( X ) Var( Y )
35
SMU Classification: Restricted
X X X
r = -1 r = -.6 r=0
Y Y
X X
r = +1 r = +.3
36