Covariance
One way of quantifying the strength of the relationship between two variables is their covariance. This measures the tendency of two variables to change together.
If we have two series, X and Y, their deviations from the mean are:
Where xi is the value of X at index i, yi is the value of Y at index i, is the mean of X, and is the mean of
Get Clojure for Data Science now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.