Pearson product-moment correlation coefficient
The Correlation coefficients (ρx,y) usually known as Pearson’s product moment correlation coefficients, provide a measure of the strength of the linear relationship between two variables. The correlation coefficient between two N-dimensional vectors x and y is defined by:
where xbar and ybar are defined as the mean of x and y respectively.
The correlation coefficient could also be reformulated as:
ρx,y = cov(x,y)/(σ(x)σ(y))
where cov(x,y) is the covariance between the data sets x and y and σ(x) and σ(y) are the sampled standard deviations.
The correlation coefficient is then the normalized covariance between the two data sets and (as SRC) produces a unitless index between -1 and +1. Correlation coefficient is equal in absolute value to the square root of the model coefficient of determination R2 associated with the linear regression.