qis.plot_signal_diagnostics_beta_boxplot

qis.plot_signal_diagnostics_beta_boxplot(asset_returns_dict, signal, *, horizons=(1, 2, 3, 6), group_data=None, is_log_returns=True, min_obs_per_asset=12, hue='asset_freq', hue_display_label='Asset returns sampling', title=None, figsize=(12, 7))[source]

Boxplot of per-asset β across horizons.

For each horizon, estimates one β per asset (no-intercept regression on that asset’s (z, r_norm_univ) pairs) and visualises the cross-asset distribution as boxes. Boxes are optionally coloured by the asset’s native cadence (asset_freq column on the underlying pairs frame); the legend exposes this with a user-facing label rather than the internal column name.

Parameters:
  • asset_returns_dict (Dict[str, DataFrame]) – Per-frequency returns dict.

  • signal (DataFrame) – Signal panel.

  • horizons (Sequence[int | str]) – Forward-return horizons.

  • group_data (Series | None) – Optional asset → group-label Series. Doesn’t affect the boxplot but populates the group column on the underlying per-asset table.

  • is_log_returns (bool) – True if returns dict contains log returns.

  • min_obs_per_asset (int) – Minimum observations per asset per horizon.

  • hue (str | None) – Column to use for box colouring. Default 'asset_freq'; also supports 'group'. Pass None to disable.

  • hue_display_label (str) – User-facing legend title for hue. Default 'Asset returns sampling'.

  • title (str | None) – Figure title. Auto-generated when None.

  • figsize (Tuple[float, float]) – Figure dimensions in inches.

Returns:

Matplotlib Figure.

Return type:

Figure