You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a bad interaction between Statistics and StatsBase. In Statistics, cov(X, Y) takes the covariance between X and Y. In StatsBase, cov(X, w) takes the weighted covariance of X with itself using weights w. Unfortunately, in some cases it's ambiguous which method you can to call, and Julia ends up calling the former or the latter depending on which method signatures are more specific.
The solution is to use a weights keyword argument instead.
The text was updated successfully, but these errors were encountered: