Skip to content

Instantly share code, notes, and snippets.

@PyDataBlog
Last active October 1, 2017 09:31
Show Gist options
  • Select an option

  • Save PyDataBlog/1506428c501ce184323b6cacf7b4fa4f to your computer and use it in GitHub Desktop.

Select an option

Save PyDataBlog/1506428c501ce184323b6cacf7b4fa4f to your computer and use it in GitHub Desktop.
# covariance matrix given probabilities
cov_matrix = np.cov(rate_1, rate_2, ddof=0, aweights=prob)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment