qis.compute_model_layer_ewma_sharpe_contributions

qis.compute_model_layer_ewma_sharpe_contributions(attribution)[source]

Compute additive current EWMA return-to-volatility contributions.

The benchmark reference divides its annualised EWMA log return by benchmark EWMA volatility. Every model contribution divides the corresponding return-bridge numerator by one common endpoint-model EWMA volatility, so systematic, risk, signal, integration and optional cost contributions add exactly to the endpoint model’s log-return Sharpe ratio. This common-risk bridge is distinct from the order-dependent stage Sharpes returned by compute_model_layer_ewma_stage_sharpes().

Parameters:

attribution (ModelLayerEwmaRegressionAttribution) – Current EWMA regression attribution containing return contributions and the common periodic return sample.

Returns:

Current benchmark reference, additive model contributions and full-model endpoint ratio.

Raises:
  • TypeError – If attribution is not a model-layer EWMA regression result.

  • ValueError – If required returns or annualised components are missing or volatility is not finite and positive.

  • RuntimeError – If the common-denominator model contributions do not reconstruct the total.

Return type:

Series