how to find the correlation between x and y?
The correlation of X and Y is the normalized covariance: Corr(X,Y) = Cov(X,Y) / σXσY . The correlation of a pair of random variables is a dimensionless number, ranging between +1 and -1.