Correlation
Applies to: general, python, finance
Correlation measures linear association scaled to the range -1 to 1.
corr = np.corrcoef(x, y)[0, 1]
See also: covariance, standard-deviation
Applies to: general, python, finance
Correlation measures linear association scaled to the range -1 to 1.
corr = np.corrcoef(x, y)[0, 1]
See also: covariance, standard-deviation