Calculates the correlation coefficient as the covariance ÷ (standard deviation of x × standard deviation of y). It lies between −1 and 1: near 1 means a strong positive relationship, near −1 a strong negative one.
The correlation coefficient expresses the strength of a straight-line relationship between two variables as a number between and . It is the covariance with the units divided out.
As a rough reading guide:
With = 1, 2, 3, 4, 5 and = 2, 4, 5, 4, 5, the covariance is 1.2 and the standard deviations are
That is a fairly strong positive correlation.
Correlation is not causation. Ice cream sales and drownings both rise in summer and are strongly correlated, but ice cream does not drown anyone. A common cause — the temperature — sits behind both.
The coefficient also only detects straight-line relationships. Data following over a range of from to has an almost perfect relationship yet a correlation near zero. Always look at the scatter plot.