Covariance

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Covariance

urvashi
How to compute cov (x+y,x-y )
Reply | Threaded
Open this post in threaded view
|

Re: Covariance

Akash
Imagine 2 new random variables u=x+y and v=x-y.
avg(u)=avg(x)+avg(y) avg(v)=avg(x)-avg(y)
Var(u)=var(x) +var(y)  Var(v)=var(x) +var(y)

Cov(u,v) is calculated using above. Does that help?
Reply | Threaded
Open this post in threaded view
|

Re: Covariance

Dr. Strange
Var(u)=var(x) +var(y) + 2 cov(x,y)
Reply | Threaded
Open this post in threaded view
|

Re: Covariance

Amit Goyal
Administrator
In reply to this post by urvashi
cov(X+Y,X-Y)
= cov(X,X) + cov(X,-Y) + cov(Y,X) + cov(Y,-Y)
= cov(X,X) - cov(X,Y) + cov(Y,X) - cov(Y,Y)
= cov(X,X) - cov(Y,Y)
= var(X) - var(Y)
Reply | Threaded
Open this post in threaded view
|

Re: Covariance

Akash
In reply to this post by Dr. Strange
Shit I always forgot the 2xy term.
Reply | Threaded
Open this post in threaded view
|

Re: Covariance

urvashi
In reply to this post by Amit Goyal
Thank you