qis.compute_conditional_scenario_band

qis.compute_conditional_scenario_band(covariance, betas, residual_variances, weights, anchors, centres, horizon_years, confidence=0.95)[source]

Compute analytical conditional-factor plus independent-residual prediction bounds.

Parameters:
  • covariance (DataFrame) – Annualised factor log-return covariance.

  • betas (DataFrame) – Assets by factors, exactly matching the covariance order.

  • residual_variances (Series) – Nonnegative annual asset residual variances in asset order.

  • weights (Series) – Signed baseline MTM/NAV weights in asset order, without renormalisation.

  • anchors (Sequence[str]) – Fixed factors; all remaining factor dispersion enters the band.

  • centres (Series) – Finite scenario NAV returns indexed by scenario.

  • horizon_years (float) – Positive horizon in years for covariance scaling.

  • confidence (float) – Central Gaussian probability strictly between zero and one.

Returns:

Pointwise additive bounds centred on supplied scenarios. Width uses baseline exposures and the same covariance at all grid points. It excludes parameter, covariance-regime and tail uncertainty and is not a regression confidence interval.

Return type:

ConditionalScenarioBand