qis.regimes.compute_null_regime_contributions¶
- qis.regimes.compute_null_regime_contributions(sr, rho, af, q=None, nu=None, regime_ids=None)[source]¶
Null regime contributions
p_s SR + rho k_sof an asset, which sum to its Sharpe ratio.- Parameters:
sr (float) – annualised Sharpe ratio of the asset
rho (float) – correlation of the asset with the benchmark
af (float) – annualisation factor of the periodic returns
q (Sequence[float] | ndarray | None) – partition probabilities; None is the one-sigma cut
nu (float | None) – degrees of freedom of a joint Student-t null; None is the Gaussian null
regime_ids (Sequence[str] | None) – ids of the buckets; None uses the defaults of
get_regime_ids
- Returns:
null contribution per regime id
- Raises:
ValueError – if
rhois outside [-1, 1]- Return type: