Covariance and Correlation
CS 70, Summer 2019 Lecture 22, 7/31/19
1 / 27Last Time...
I Variance measures deviation from mean I Variance is additive for independent RVs I Use linearity of expectation and indicator variables Today: I Proof that var. is additive for ind. RVs I Talk about covariance and correlation I Some RV practice (if time)
2 / 27Product of RVs
Let X be a RV with values in A. Let Y be a RV with values in B. What does the distribution of XY look like? What if X, Y are independent?
3 / 27xx
- . Yawning
:#
" " ' III"*aia
PEX
= a,Y=bI=P[
X- a)
Pff b)
will treat things like f- 1,4=2 vs 7=1 , X- 2
VAEA
, BE B as 2 separate cases .For Independent RVs...
If X and Y are independent, we can show that: E[XY ] = E[X] · E[Y ]
4 / 27¢ Definition
IRHI Efx I EH ] =face ,
A PCX- a ])(ftp.b.PEF-bD
Distribute
- ¥⇒
.by?bybyinde#=?afcab7.lPCX=a,Y=b3=fECXY
]
t seepre v
slide , when Xy 's dist . defined .Variance is Additive for Ind. RVs
If X and Y are independent, we can show that: Var(X + Y ) = Var[X] + Var[Y ]
5 / 27⇐
Efcxty )
2 ]- CECXTYIJZ
Efx ]
- Tin
E[X2t2XYtY2 ]
- fifty
#
ECXZ]t2E¥tECY2
]- Mf
- 2¥
- UE
- ECXJECY ]
tvarcy )
* for multiple RVs : induction ! !Can You Multiply?
If X and Y are independent, then: E[XY ] = Is the converse true?
6 / 27ECXTECY ]
EAT
Nd . =o . Etc- DE -11147
410,17
ELY ]=O
.st.is/!-.miY-
" ""TEE
÷÷÷÷
:* ¥ :na÷
PEX
= 0,4=0 ] # Paco ] p[y=o ]