Skip to content

Instantly share code, notes, and snippets.

@ssrosa
Created September 19, 2019 21:49
Show Gist options
  • Select an option

  • Save ssrosa/79ef965d04ff255390cdc0e898b8e1ca to your computer and use it in GitHub Desktop.

Select an option

Save ssrosa/79ef965d04ff255390cdc0e898b8e1ca to your computer and use it in GitHub Desktop.
For a Medium post on correlation in Python
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