Created
September 19, 2019 21:49
-
-
Save ssrosa/79ef965d04ff255390cdc0e898b8e1ca to your computer and use it in GitHub Desktop.
For a Medium post on correlation in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def find_corr(X, Y): | |
| correlation = find_cov(X, Y) / (X.std() * Y.std()) | |
| return correlation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment