qis.SignalDiagnosticsResult

class qis.SignalDiagnosticsResult(pooled_universe, per_group, pairs=<factory>, horizon_labels=<factory>, group_order=<factory>, start_date=None, end_date=None, fit_intercept=False)[source]

Bases: object

Container for cross-sectional signal diagnostic outputs.

Variables:
  • pooled_universe (pandas.DataFrame) – DataFrame indexed by horizon label (e.g. ‘1’, ‘3’, ‘6’ or ‘YE’); columns are SignalDiagnosticsColumns. Each row is the universe-pooled regression for that horizon.

  • per_group (pandas.DataFrame) – DataFrame indexed by (horizon, group) MultiIndex with the same columns. Each row is the within-group regression. Empty DataFrame when no group_data was passed.

  • pairs (Dict[str, pandas.DataFrame]) – dict keyed by horizon label, each value a long-format DataFrame with columns [‘date’, ‘asset’, ‘asset_freq’, ‘group’, ‘z’, ‘r’, ‘r_norm_univ’, ‘r_norm_group’], ordered by date and then asset: z is the lagged signal, r the raw forward return and the last two the forward return normalised across the universe and within the asset’s group. The underlying (signal, return) panel consumed by both regressions and by the plotting layer.

  • horizon_labels (List[str]) – ordered list of horizon labels (matches index order of pooled_universe).

  • group_order (List[str]) – ordered list of group labels present in per_group.

  • end_date (start_date,) – span of the pairs sample.

  • fit_intercept (bool) – whether the pooled and per-group regressions were fitted with an intercept.

Parameters:
__init__(pooled_universe, per_group, pairs=<factory>, horizon_labels=<factory>, group_order=<factory>, start_date=None, end_date=None, fit_intercept=False)
Parameters:
Return type:

None

Methods

__init__(pooled_universe, per_group[, ...])

Attributes

pooled_universe: DataFrame
per_group: DataFrame
pairs: Dict[str, DataFrame]
horizon_labels: List[str]
group_order: List[str]
start_date: Timestamp | None = None
end_date: Timestamp | None = None
fit_intercept: bool = False