Let’s examine the range of Corr(X,Y)
Let X∗,Y∗ be X and Y in standard units, that is,
Then X∗ and Y∗ would have the following property
And
So we know that
Therefore,
Moreover, if Corr(X,Y)=±1, then either
or
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.