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_betasin shape — consumes aSignalDiagnosticsResultand loopsresult.horizon_labels. Useful for plotting the IC time series / cumulative IC and inspecting IC decay across horizons.- Parameters:
result (SignalDiagnosticsResult) –
SignalDiagnosticsResultfromestimate_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
methodis neither ‘spearman’ nor ‘pearson’.- Return type: