Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the right input to EfficientSemivariance? #597

Open
codemaniac opened this issue May 19, 2024 · 0 comments
Open

What is the right input to EfficientSemivariance? #597

codemaniac opened this issue May 19, 2024 · 0 comments
Labels
question Further information is requested

Comments

@codemaniac
Copy link

I am confused what is the right input to pass to EfficientSemivariance.

The documentation says Instead of passing in a covariance matrix, you should past in a dataframe of historical/simulated returns (this can be constructed from your price dataframe using the helper method expected_returns.returns_from_prices())

But, the example code uses mu = expected_returns.mean_historical_returns(df) as the first argument to EfficientSemivariance.

By my understanding, expected_returns.returns_from_prices() returns daily percentage change using prices.pct_change() but expected_returns.mean_historical_returns(df) returns annualized returns by default.

Please help! What is the correct input?

@codemaniac codemaniac added the question Further information is requested label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant