A correlation coefficient lies between −1 and 1
The product moment correlation coefficient is always between and . That is not a convention about how the number is written. It is a consequence of an inequality that holds for any two lists of numbers.
Before you start
Write the two variables as and , with means and . The deviations are and .
The correlation coefficient is
The numerator is the covariance and the denominator is the product of the two standard deviations, so is the covariance measured in units of both spreads.
The proof
Cauchy–Schwarz. For any real number ,
because every term is a square. Expand the left side:
This is a quadratic in that never goes below zero. Its discriminant is therefore at most zero:
Divide by and take square roots:
Divide both sides by the positive denominator of :
That is the whole proof. It uses nothing about the data beyond the fact that the deviations are real numbers.
When the ends are reached
Equality holds exactly when the quadratic has a double root, which happens when for every . That is the case where every point lies on one straight line through .
If the line slopes up and . If it slopes down and . So the two extreme values are not a separate rule; they are the equality case of the inequality.
What this does not say
A value of near says there is no linear pattern. It does not say the variables are unrelated. A perfect curve can have and still be a perfect relationship.
The coefficient also does not tell you which variable causes the other, and it does not survive a change of which points are included. It is a summary of the linear part of one sample.