qis.plot_model_layer_rolling_ewma_regression_alpha¶
- qis.plot_model_layer_rolling_ewma_regression_alpha(attribution, model_name='Model', colors=None, detailed_mode=True, title=None, ax=None, start_date=None)[source]¶
Plot expanding-prefix EWMA-WLS annualised alpha paths.
The plotted estimates are descriptive contemporaneous regressions. They are distinct from lagged-beta realised alpha, and their final values exactly match the gross current EWMA attribution bars.
- Parameters:
attribution (ModelLayerEwmaRegressionAttribution) – Current EWMA regression attribution defining the sample and estimator.
model_name (str) – Model name used in the title.
colors (Optional[Mapping[str, str]]) – Optional semantic colour overrides; supported keys are documented by the return bridge.
start_date (Optional[pd.Timestamp]) – Optional first displayed date. Estimation always uses the complete history; slicing occurs only after every expanding-prefix estimate has been computed.
detailed_mode (bool) – Whether to draw the title, subtitle and methodology note.
title (Optional[str]) – Detailed-mode title. None uses a frequency-aware rolling EWMA-WLS title.
ax (Optional[plt.Axes]) – Existing axis. None creates a new report-sized figure.
- Returns:
The created figure, or None when drawing on a supplied axis.
- Raises:
TypeError – If
attributionis not a model-layer EWMA regression result.ValueError – If the rolling alpha output is missing a required series or
start_dateleaves no observations to display.
- Return type:
Optional[Figure]