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
min_cov_det is giving values several orders of magnitude below the other methods. There is an error in the code where we set NaNs to 0, but even after fixing this to dropna, the result is still far too low:
I think the implementation of MCD is misguided – I only included it (many years ago) because I wanted as many risk models as possible, without really thinking too much about their applicability.
I will be deprecating it for v1.4.1, and removing in v1.5.
The text was updated successfully, but these errors were encountered:
@robertmartin8 I tested min_cov_det on a few different samples, sometimes the covariances were in a similar range, sometimes a lot smaller. I also compared it against skleanrn's MinCovDet(random_state=8).fit(returns_df).covariance_ * 252, which again gave quite different results.
I am not very familiar with this method but at first glance, there seem to be some issues. I would also be in favor of deprecating it 👍
Describe the bug
The minimum covariance determinant method gives nonsensical covariance matrices.
Compare with sample covariance:
min_cov_det
is giving values several orders of magnitude below the other methods. There is an error in the code where we set NaNs to 0, but even after fixing this to dropna, the result is still far too low:I think the implementation of MCD is misguided – I only included it (many years ago) because I wanted as many risk models as possible, without really thinking too much about their applicability.
I will be deprecating it for v1.4.1, and removing in v1.5.
The text was updated successfully, but these errors were encountered: