qis.compute_ewm_score¶
- qis.compute_ewm_score(data, ewm_lambda=0.94, is_clip=True, clip_quantile=0.16)[source]¶
Contemporaneous EWM score
(x_t - m_t) / max(sigma_t, c)of each column.m_tis theX0-seeded EWM mean andsigma_tthe EWM volatility about zero ofcompute_ewm_vol(); both include x_t, so the score is bounded by sqrt(λ/(1-λ)).cis the full-sampleclip_quantilequantile of the column’s ownsigma, a look-ahead floor.- Parameters:
- Returns:
the EWM mean and the score, each shaped like
data; the score is NaN where x_t is- Return type: