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

ffn.core.calc_erc_weights: Define lookback period for risk weights #65

Open
liquidrates opened this issue Oct 18, 2018 · 2 comments
Open

Comments

@liquidrates
Copy link

is maximum_iterations the look back period for defining risk weights? default of 100 equal to last 100 days?

ffn.core.calc_erc_weights(returns, initial_weights=None, risk_weights=None, covar_method='ledoit-wolf', risk_parity_method='ccd', maximum_iterations=100, tolerance=1e-08)

@mirca
Copy link
Contributor

mirca commented Oct 7, 2019

@liquidrates maximum_iterations has nothing to do with the look back period. It is just the max. number of iterations for the coordinate descent algorithm to compute the ERC weights.

@FinQuest
Copy link
Contributor

@liquidrates the function uses all the returns to calculate the covar. You could truncate the input if required returns.tail(100).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants