qis.compute_model_layer_cumulative_alpha_after_warmup¶
- qis.compute_model_layer_cumulative_alpha_after_warmup(attribution, base_date, warmup_periods=12)[source]¶
Rebase cumulative lagged-beta alpha after a point-in-time warm-up.
The base date is the final estimator-only observation. Cumulative alpha is zero on that date, and the first accrued residual uses the beta available on the base date. With a one-period beta lag this is the base-date estimate, or the explicit prior if that estimate is unavailable.
- Parameters:
attribution (ModelLayerEwmaAlphaAttribution) – Point-in-time EWMA-beta attribution containing realised alpha residuals.
base_date (Timestamp | str) – Date on which cumulative alpha is rebased to zero.
warmup_periods (int) – Minimum estimator observations through
base_date. Defaults to 12. Zero allows an exact reporting base, including the validated initial NAV date. The applied beta is the prior until a lagged estimate is available; the prior also remains in later estimates with EWMA weight.
- Returns:
Post-warm-up alpha returns and their unannualised cumulative sums.
- Raises:
ValueError – If settings, dates or available warm-up observations are invalid.
RuntimeError – If the first post-warm-up return does not use the base-date beta.
- Return type: