qis.compute_ewm_corr_single¶
- qis.compute_ewm_corr_single(returns, ewm_lambda=0.94, span=None, time_period=None)[source]¶
uncentred EWM correlation path of a two-column return panel.
The two-column case of
compute_ewm_corr_df(), with its zero seed.- Parameters:
returns (DataFrame) – returns with exactly two columns
ewm_lambda (float) – EWM decay, used when
spanis Nonespan (int | None) – if given, overrides
ewm_lambdavialambda = 1 - 2 / (span + 1)time_period (TimePeriod) – restrict the output dates; the estimation runs over the whole sample
- Returns:
the correlation path, named
"<second column> - <first column>"- Raises:
ValueError – if
returnsdoes not have exactly two columns- Return type: