ffn icon indicating copy to clipboard operation
ffn copied to clipboard

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

Open liquidrates opened this issue 6 years ago • 2 comments

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)

liquidrates avatar Oct 18 '18 16:10 liquidrates

@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.

mirca avatar Oct 07 '19 04:10 mirca

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

FinQuest avatar Oct 16 '19 21:10 FinQuest