Prove Linear Correlation: m/sqrt(m^2) = sgn(m)

rwinston
Messages
36
Reaction score
0
I am going through some of the problems in a statistical physics book. I am stuck on the following question:

If we have two random variables X and Y, related by Y=mX + b => y(i) = mx(i) + b, where b and m are deterministic, prove that corr(X,Y) = m/sqrt(m^2) = sgn(m), where sgn(m) is the sign function of m.

I can see that this is perfect linear correlation, but I am not sure as to what is the obvious proof...I know that corr(X,Y) = (E(XY) - E(X)E(Y))/sd(X)*sd(Y)...

Is the following derivation even logically valid?
E(XY)-E(X)E(Y)
= E(X(mX+b)) - E(X)E(mX+b)
=E(mX^2 + bX)-E(X)E(mX+b)
=mE(X^2)+bE(X)-mE(X)E(X)+b
=m(E(X^2)-E(X)E(X))+bE(X)+b
=m(Var(X))+bE(X) +b

Thanks!
 
Physics news on Phys.org
Your approach is valid. Your arithmetic is wrong.

E(XY)-E(X)E(Y)=m(Var(X)). The b terms cancel when you do it right!

The denominator will be |m|Var(X).
 
Thank you!
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Back
Top