qis.compute_ic_timeseries

qis.compute_ic_timeseries(result, method='spearman', return_col='r_norm_univ', min_obs_per_date=5)[source]

Per-date IC series for every horizon in a diagnostic result.

Mirrors compute_per_asset_betas in shape — consumes a SignalDiagnosticsResult and loops result.horizon_labels. Useful for plotting the IC time series / cumulative IC and inspecting IC decay across horizons.

Parameters:
  • result (SignalDiagnosticsResult) – SignalDiagnosticsResult from estimate_signal_diagnostics.

  • method (str) – ‘spearman’ (default) or ‘pearson’ for the per-date IC.

  • return_col (str) – ‘r_norm_univ’ (default) or ‘r_norm_group’.

  • min_obs_per_date (int) – Minimum cross-section per date.

Returns:

{horizon_label: DataFrame[date -> (n, IC)]} in horizon order.

Raises:

ValueError – if method is neither ‘spearman’ nor ‘pearson’.

Return type:

Dict[str, DataFrame]