qis.StressTestConfig¶
- class qis.StressTestConfig(historical_count=10, horizon_years=0.08333333333333333, confidence=0.95, include_conditional_comparison=True, ordinary_asset_bands=True, historical_selection=None)[source]¶
Bases:
objectNumerical analysis settings with explicit covariance horizon.
- Variables:
historical_count (int) – Number of worst complete historical months to present.
horizon_years (float) – Positive risk-band horizon in years.
confidence (float) – Central probability for exported quantile bounds and OLS mean-fit CIs. Plotted volatility bands always use exactly one and two standard deviations.
include_conditional_comparison (bool) – Also evaluate joint conditional completion.
ordinary_asset_bands (bool) – Legacy switch enabling conditional local-risk bands for all supported holdings, including derivatives. False disables risk-band calculations.
historical_selection (qis.portfolio.stress.historical.HistoricalScenarioSelection | None) – Optional factor-ranking policy with its own scenario window.
- Parameters:
- __init__(historical_count=10, horizon_years=0.08333333333333333, confidence=0.95, include_conditional_comparison=True, ordinary_asset_bands=True, historical_selection=None)¶
Methods
__init__([historical_count, horizon_years, ...])Attributes
- historical_selection: HistoricalScenarioSelection | None = None¶