Given a data set with
n points
{(x1,y1),…,(xn,yn)}, the
Pearson correlation coefficient can be found by dividing the covariance of
x and
y by the product of their .
r=σ(x)σ(y)Cov(x,y)
Alternatively, the formula can be rewritten as follows.
Although there are different types of correlation coefficients, the most commonly used is the Pearson correlation coefficient.