Let’s examine the range of Corr(X,Y)
Let X∗,Y∗ be X and Y in standard units, that is,
X∗=σxX−μx,Y∗=σyY−μy Then X∗ and Y∗ would have the following property
E(X)=E(Y)=0,SD(X)=SD(Y)=1 And
Corr(X,Y)=Cov(X∗,Y∗)=E(X∗Y∗)
So we know that
E[(X∗−Y∗)2]=1+1−2E(X∗Y∗)≥0E(X∗Y∗)≤1 E[(X∗+Y∗)2]=1+1+2E(X∗Y∗)≥0E(X∗Y∗)≥−1 Therefore,
−1≤Corr(X,Y)≤1 Moreover, if Corr(X,Y)=±1, then either
E[(X∗−Y∗)2]=0 or
E[(X∗+Y∗)2]=0 That means every time either X∗=Y∗ or X∗=−Y∗
So we can conclude that
and the sign of a is determined by the sign of the correlation.