Source: https://spss-tutorials.com
It's worth restating that r is used to detect association between variables when the data is interval or ratio and we anticipate a linear association between the variables. Under these circumstances, correlation is calculated as,