qis.regimes.compute_regime_premium_bootstrap

qis.regimes.compute_regime_premium_bootstrap(returns, benchmark, af, q=None, block_size=8, n_boot=2000, seed=7, ci=0.95)[source]

Stationary block-bootstrap standard error and interval of each asset’s convexity premium.

Each asset is resampled jointly with the benchmark over their common periods with BootstrapType.STATIONARY (geometric blocks of mean block_size, circular wrap), and the regimes are reclassified inside every resample by qis.utils.quantile_buckets, so the interval includes the sampling error of the regime cutoffs. Every asset uses the same seed.

Parameters:
  • returns (DataFrame) – periodic returns, one column per asset, including the benchmark

  • benchmark (str) – name of the benchmark column

  • af (float) – annualisation factor of the periodic returns

  • q (Sequence[float] | ndarray | None) – partition probabilities; None is the one-sigma cut

  • block_size (int) – mean block length in periods; the default 8 is two years of quarterly returns, and 12 on monthly returns is the block length of the regime-beta bootstrap of Sepp and Kastenholz (2026, Appendix D)

  • n_boot (int) – number of resamples

  • seed (int) – seed of the resampling indices

  • ci (float) – coverage of the percentile interval

Returns:

one row per asset other than the benchmark and the columns premium_se, the standard deviation of the resampled premia with ddof=1, premium_ci_low and premium_ci_high

Raises:

ValueError – if an asset has fewer than five blocks of common periods

Return type:

DataFrame